Doesn't Refresh Token When Expired and Tab is Closed #914
Labels
bug
A bug that needs to be resolved
closed-by-bot
Closed by automation
needs-reproduction
Action needed: A valid reproduction of the issue needs to be added
pending
An issue waiting for triage
Environment
Reproduction
Here is my auth config
Describe the bug
Currently, I'm testing what happens when the access token expires by simulating a very short expiration time (10 seconds). If the access token expires while the tab is still open (but I switch to another tab), when I refocus the tab, the access token refreshes fine..
But if the tab is closed when the access token is expired, the refresh mechanism is somehow ignored, and the user is redirected to the login page even though the refresh token still exists in the cookies. Reloading the tab also does not trigger the refresh.
Is this behavior expected? What I expect is that refocusing existing tab, reloading the tab, or opening a new tab should have the same behavior, right?
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: