Auto Refresh token is not working #1575
Replies: 4 comments 1 reply
-
Connecting #1694 |
Beta Was this translation helpful? Give feedback.
-
Can you send us a example of the token issued? auth: {
// ...
strategies: {
local: {
scheme: 'refresh',
tokenType: 'JWT',
token: {
property: 'token',
maxAge: 60 * 60, // 60 Minutes
global: true,
},
refreshToken: {
tokenRequired: true,
property: 'refreshToken',
data: 'refreshToken',
maxAge: 60 * 60 * 24 * 30 // 30 Days
},
// ...
}
}
// ...
} |
Beta Was this translation helpful? Give feedback.
-
Also make sure the autoLogout property is set to false
|
Beta Was this translation helpful? Give feedback.
-
does not work, even if the max age is far lower than the actual exp of the token. |
Beta Was this translation helpful? Give feedback.
-
Hello to everyone, I set up my refresh scheme as the official docs said but I still have issues when my token expires...
For example when my token expire I would like to have my token refreshed without the need of a new login.
Is it possible to do it?
Thanks in advanced for your time.
Beta Was this translation helpful? Give feedback.
All reactions