Patching onmessage from ReactDev tools; Genius auth

This commit is contained in:
James Barnsley
2018-08-16 08:05:06 +12:00
parent b7eb12b4f5
commit 240ebf9391
12 changed files with 958 additions and 3856 deletions

View File

@ -117,6 +117,27 @@ const localstorageMiddleware = (function(){
);
break;
case 'GENIUS_AUTHORIZATION_GRANTED':
helpers.setStorage(
'genius',
{
authorization_code: action.data.authorization_code,
access_token: action.data.access_token
}
);
break;
case 'GENIUS_AUTHORIZATION_REVOKED':
helpers.setStorage(
'genius',
{
me: null,
authorization_code: null,
access_token: null
}
);
break;
case 'CORE_SET':
helpers.setStorage(
'core',