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
With two or more tabs running with a shared refresh token from localStorage, setSession will get a new refresh token and invalidate the first shared token if after the reuse window. Then the 2nd tab will try and refresh with the original shared token and get 400 error. This will invalidate all tokens and clear localStorage.
To Reproduce
This is run in two tabs, refreshing the 2nd tab 20 seconds or so after starting, so that it staggers the setSession after the reuse window.
Bug report
Describe the bug
With two or more tabs running with a shared refresh token from localStorage, setSession will get a new refresh token and invalidate the first shared token if after the reuse window. Then the 2nd tab will try and refresh with the original shared token and get 400 error. This will invalidate all tokens and clear localStorage.
To Reproduce
This is run in two tabs, refreshing the 2nd tab 20 seconds or so after starting, so that it staggers the setSession after the reuse window.
Expected behavior
Either document you can't use setSession in a multitab environment or handle refresh token changes like in v1 (or similar method).
Screenshots
System information
Javascript
supabase-js-2.0.0-rc.10
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: