LastFM authorization format; Sharing config working
This commit is contained in:
@ -54,12 +54,11 @@ const SpotifyMiddleware = (function(){
|
||||
// Flush out the previous user's library
|
||||
store.dispatch(spotifyActions.flushLibrary());
|
||||
|
||||
// Pass to reducer
|
||||
// Wait a few moments before we fetch, allowing the import to complete first
|
||||
// TODO: Use callbacks for better code accuracy
|
||||
setTimeout(() => {store.dispatch(spotifyActions.getMe())}, 100);
|
||||
|
||||
next(action);
|
||||
|
||||
// Then get the new user
|
||||
store.dispatch(spotifyActions.getMe());
|
||||
|
||||
break;
|
||||
|
||||
case 'SPOTIFY_RECOMMENDATIONS_LOADED':
|
||||
|
||||
@ -43,7 +43,7 @@ export default function reducer(spotify = {}, action){
|
||||
access_token: action.authorization.access_token,
|
||||
refresh_token: action.authorization.refresh_token,
|
||||
token_expiry: action.authorization.token_expiry,
|
||||
me: false
|
||||
me: action.me
|
||||
});
|
||||
|
||||
case 'SPOTIFY_TOKEN_REFRESHING':
|
||||
|
||||
Reference in New Issue
Block a user