auth-module
auth-module copied to clipboard
Sync $auth.user object between tabs
Is your feature request related to a problem? Please describe.
Consider this case:
- Open the 1st tab, login to the account#1.
- Open the a new tab (account#1 is already logged in), do logout, then login with another account (account#2).
- Back to the first tab, navigate to any page by clicking nuxt-link (not refresh the whole app), the
$auth.user
object is still the data of account#1, but the tokens are now from account#2.
Describe the solution you'd like to see
Since the application from the first tab never refreshes, the user
object is outdate.
The user
object from the first tab should be the data of account#2 too.