Send authorization via pusher (partial), need to fetch me on acceptance

This commit is contained in:
James Barnsley
2016-12-11 21:09:50 +13:00
parent c1ea65666c
commit ba5bd5c91d
11 changed files with 126 additions and 22 deletions

View File

@ -12,7 +12,7 @@ const localstorageMiddleware = (function(){
// append our state to a global variable. This gives us access to debug the store at any point
window._store = store
//console.log(action)
console.log(action)
switch( action.type ){
@ -70,6 +70,7 @@ const localstorageMiddleware = (function(){
Object.assign(
spotify,{
authorized: true,
authorization: action.data,
access_token: action.data.access_token,
refresh_token: action.data.refresh_token,
token_expiry: action.data.token_expiry