Auto refresh token clarification #1694
Replies: 5 comments 3 replies
-
Connecting #1653 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
First, to prevent F5 issue, I disabled the user endpoint (just
does not work, it fetches after F5 if user endpoint is not disabled. Maybe Bug Maybe could be better written in the Docs. But for the point, I just idle in my dashboard for the time the JWT is available, the module does not refresh the token. Is there any Option for the refresh time? or is this even possible with this module? |
Beta Was this translation helpful? Give feedback.
-
this.$auth.strategy.token.status() |
Beta Was this translation helpful? Give feedback.
-
Hello,
we have implemented token refresh.
The tokens (access and refresh token) are set correctly and the max-age is set.
I think I understood the Module wrong. I thought the module will automatically send refresh requests just before the access token gets invalid.
I signed in and waited for the expiration of the access token. ( no auto-refresh/ no backend request ), I waited for the expiration of the refresh token, also no auto-refresh / no backend request.
If the user is signed in and does not close the web application, assuming he idles on an auth page, I thought his session gets refreshed as long as he doesn't hit sign out.
Could you confirm auto-refresh works, or is my knowledge about the token refresh wrong?
EDIT:
Some configs and version
Config
Version
"nuxt": "^2.15.3",
"@nuxtjs/auth-next": "5.0.0-1621716493.b9b36c6",
Beta Was this translation helpful? Give feedback.
All reactions