Genius access_token in URL instead of headers
This commit is contained in:
@ -6,27 +6,28 @@ export default function reducer(genius = {}, action){
|
||||
return Object.assign({}, genius, action.data)
|
||||
|
||||
case 'GENIUS_ME_LOADED':
|
||||
return Object.assign({}, genius, {user: action.user})
|
||||
return Object.assign({}, genius, {
|
||||
me: action.me
|
||||
})
|
||||
|
||||
case 'GENIUS_AUTHORIZATION_GRANTED':
|
||||
return Object.assign({}, genius, {
|
||||
authorizing: false,
|
||||
authorizing: false,
|
||||
authorization: action.data,
|
||||
authorization_code: action.data.authorization_code,
|
||||
access_token: action.data.access_token
|
||||
})
|
||||
|
||||
case 'GENIUS_AUTHORIZATION_REVOKED':
|
||||
return Object.assign({}, genius, {
|
||||
return Object.assign({}, genius, {
|
||||
authorizing: false,
|
||||
authorization_code: false,
|
||||
access_token: false,
|
||||
me: false
|
||||
authorization: null,
|
||||
authorization_code: null,
|
||||
access_token: null,
|
||||
me: null
|
||||
});
|
||||
|
||||
default:
|
||||
return genius
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user