Closed cwe-dev closed 2 years ago
I’m also not sure if I’m doing something wrong but I'm experimenting the same problem using version "@nuxtjs/auth-next": "^5.0.0-1643365392.dae6516"
.
When I manually call refreshTokens()
(I would expect the method to be called automatically but not) is not sent because token expired but indeed is valid.
could it be related to - https://github.com/nuxt-community/auth-module/pull/1417
Hi all. i have a problem with refresh tokens. i tried do local scheme \ laravel/jwt scheme and broke at enable refresh tokens.
"@nuxtjs/auth-next": "^5.0.0-1624817847.21691f1"
Task: Enable autorefresh token when access token is expired.
Scheme:
When access token is expired i haven't autorefresh and redirected to authorization page.
Also i tried manually request
refreshTokens()
method,handleRefresh()
method. When i got new pair tokens, but when is first expiration time is gone - i unauthorized and redirected on login page. How can i manually change expiration date on tokens. I've triedsetToken
andsetUserToken
, andToken.sync
, but it didnt work, when themaxAge
innuxt.config.js
is expired - i lost connection.What do i do wrong. It seems to be working on auto mode via documentation, but not