-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Description
the cookie access_token will be cleared after refreshing the page. after shooting the problem, the main cause is that reduxStore will check the tokenInStore and decide sign in or sign out.
for the following lines, i think it should check and dispatch tokenInStore instead of token.
Lines 24 to 32 in bc73ff6
| if (typeof token === 'string' && !token.includes('Error')) { | |
| if (token.length) { | |
| store.dispatch(dispatchers.signIn(token)); | |
| } else { | |
| store.dispatch(dispatchers.signOut()); | |
| } | |
| } else { | |
| store.dispatch(dispatchers.signOut()); | |
| } |
sen0va
Metadata
Metadata
Assignees
Labels
No labels