-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh Token Expire Date #944
Comments
Could you please elaborate why? Is it a technical limitation from JavaScript side, our library or Django? Afaik, browser limits on cookie age are high enough for your usecase |
I want my user to have the refresh token cookie for 90 days. because it's standard to keep the refresh token for this amount of days but I can't set the maxAgeInSeconds to 90 days. so it's gonna be expired after 24 days but it should be kept for 90. |
I don't understand what you mean? You mean that the max nuxt-auth/src/runtime/utils/refreshHandler.ts Lines 46 to 52 in 218a846
Yes, it's logical that you can't set the timer longer than 24 days, but you have to keep in mind that Maybe a better implementation would've been to set the interval to the actual expiry date of the refresh token, but that's another story. Adding to it, I have also checked the Are you getting any errors from |
Environment
Reproduction
Describe the bug
I have Django JWT Backed with access (5 minutes exp) & refresh token (90 days exp)
the refresh token rotation is not active so I used
refreshOnlyToken:true
.I want my refresh token cookie to be expired in 90 days. but I can't set
maxAgeInSeconds
to60 * 60 * 24 * 90
because max time is 24 days.what is the approach here ?
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: