You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accounts apollo client doesn't remove client-side token on logout error keeping it in an invalid state.
Describe the bug
In our dev environment we periodically prune the database pushing users that didn't logout before in an invalid state. The problem as I get it, is that client.logout() throws when the session does not exist and therefore the client token in local storage/cookies are not removed.
To Reproduce
login via apollo-client
drop database
try to logout
Uncaught (in promise) Error: GraphQL error: Tokens are not valid
cookie/localStorage will still be set
Expected behavior
You should be able to get into a valid state without workarounds
System information
Version of accounts-js: 0.0.24
Additional context
I already checked the source, but am not quite sure where to fix this issue:
Bug report
Accounts apollo client doesn't remove client-side token on logout error keeping it in an invalid state.
Describe the bug
In our dev environment we periodically prune the database pushing users that didn't logout before in an invalid state. The problem as I get it, is that
client.logout()
throws when the session does not exist and therefore the client token in local storage/cookies are not removed.To Reproduce
Expected behavior
You should be able to get into a valid state without workarounds
System information
Additional context
I already checked the source, but am not quite sure where to fix this issue:
I'd be happy to fix this, i'm just not sure yet where to look at
The text was updated successfully, but these errors were encountered: