-
Notifications
You must be signed in to change notification settings - Fork 927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth store property undefined when logging out with $auth.logout() #589
Comments
Hi @Skylercrane23! Thank you for reporting this issue. Sorry for closing it. EDIT: Strange, now I couldn't reproduce it anymore... I'll let it open for now. Could you try to reproduce it using latest version of v5 and see if persist? |
Closing here, due to inactivity. Feel free to reopen if the issue persist. |
What seem to be the issue is that
|
I have the same issue |
Version
v4.9.0 / 5.0.0-1608347545.4014627
Reproduction link
https://github.com/Skylercrane23
Steps to reproduce
Use a property from the auth store like $auth.user.email (or whatever property exists) on a page where you are logging out. Right after logging out a console error displays saying the property is undefined. What I am guessing is the store is being cleared before actually being logged out by clearing tokens.
What is expected ?
if I log out, it should clear tokens and then the auth store to not have any undefined properties.
What is actually happening?
My references to auth module properties are coming back undefined for a brief second right after logging out with $auth.logout()
Additional comments?
Sorry I don't have a reproduction link.
The text was updated successfully, but these errors were encountered: