Skip to content

Commit

Permalink
Fix bug with cleaning up store, missing to clean token
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraluiz committed Jun 3, 2019
1 parent c00453e commit 0fe63dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const tokenProvider = new TokenProvider({
}, storedTokenInfo);

function cleanUpSession() {
localStorage.removeItem(tokenInfoStorageName);
localStorage.removeItem(isAuthenticatedStorageName);
return store.dispatch('setAuthenticated', false);
}
Expand Down

0 comments on commit 0fe63dd

Please sign in to comment.