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
When the token is expired, I should have refreshed one time only.
What is actually happening?
There are multiple refresh token requests
Steps to reproduce
Please follow the repo above. After login, open the chrome devtool > Network tab.
Wait 1 minute for the token to be expired, then click the button Try Promise.all()
Actually, I'm trying to call multiple API requests with Promise.all when the token is already expired.
If the API revolves a token after refresh successfully, other refresh request will be error (because the token was revolved). This will cause crash app.
This behavior only appears when using Promise.all()
Checklist
I have tested with the latest Nuxt version and the issue still occurs
I have tested with the latest module version and the issue still occurs
I have searched the issue tracker and this issue hasn't been reported yet
The text was updated successfully, but these errors were encountered:
I'm facing the same issue and haven't found a solution yet. I tried some interceptor methods, but still no luck. Has anyone found a solution for this? In my case, the backend returns a 401 response for duplicate refresh tokens in payload, so Nuxt logs me out when refresh tokens are requested in parallel.
Version
module: 5.0.0-1648802546.c9880dc
nuxt: 2.15.1
Nuxt configuration
mode:
Nuxt configuration
Reproduction
What is expected?
When the token is expired, I should have refreshed one time only.
What is actually happening?
There are multiple refresh token requests
Steps to reproduce
Please follow the repo above. After login, open the chrome devtool > Network tab.
Wait 1 minute for the token to be expired, then click the button
Try Promise.all()
Actually, I'm trying to call multiple API requests with
Promise.all
when the token is already expired.Additional information
If the API revolves a token after refresh successfully, other refresh request will be error (because the token was revolved). This will cause crash app.
This behavior only appears when using
Promise.all()
Checklist
The text was updated successfully, but these errors were encountered: