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
It can be easily reproduced by running playground-local
Describe the bug
Steps to reproduce:
Run playground-local
Sign in
Open one more tab with the app
Return to the previous one
Error is thrown: ofetch.03887fc3.mjs?v=00ccaa94:316 Uncaught (in promise) FetchError: [POST] "/api/auth/refresh": 401 Tokens mismatch - this is not good at async Object.refresh
I would expect that refresh would update token and refresh token in all the open tabs.
As I workaround for my app I implemented custom refresh handler and when refresh occurs I trigger local storage event that enables me to reload and update other tabs (not sure if this is the best approach but it works).
It would be nice if there would be solution for this in the package itself :)
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
It can be easily reproduced by running playground-local
Describe the bug
Steps to reproduce:
ofetch.03887fc3.mjs?v=00ccaa94:316 Uncaught (in promise) FetchError: [POST] "/api/auth/refresh": 401 Tokens mismatch - this is not good at async Object.refresh
I would expect that refresh would update token and refresh token in all the open tabs.
As I workaround for my app I implemented custom refresh handler and when refresh occurs I trigger local storage event that enables me to reload and update other tabs (not sure if this is the best approach but it works).
It would be nice if there would be solution for this in the package itself :)
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: