-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Randomly, TOKEN_REFRESHED and SIGNED_IN events both fire #535
Comments
Hey I believe this "problem" should be getting addressed with #564. |
This may have also been because my laptop was connected to wired and wireless networks at the same time. I haven't gone back and verified whether that might have been the cause. |
I don't think that would have any effect. The browser doesn't really know about how many networks you're connected to. |
i think we can close this one, we only fire either the |
Bug report
Low priority. Just documenting.
Describe the bug
Sometimes a SIGNED_IN event is fired along with the TOKEN_REFRESHED event. Both access_token outputs have the same
expires_at
and token value.This happens randomly - or seems to. During one test, after initial sign in, it didn't happen until the 5th token refresh. Then the 2nd and 3rd after that. But on a second test, it happened on the 2nd token refresh after initial sign in.
To Reproduce
Currently unsure if this is reproducible. But I have a basic client setup, with no explicit options. In
onAuthStateChange
, log theevent
andsession
. Then login and observe the browser console.Expected behavior
Only see TOKEN_REFRESHED event when a token is refreshed.
Screenshots
System information
Additional context
Github OAuth, SvelteKit. No auth helpers.
The text was updated successfully, but these errors were encountered: