Refresh Token Rotation -- access Token Expiry #5184
Unanswered
dhavalveera
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
using NextAuth, and Google Login as a provider, I need to use the Refresh Token Rotation for my Web App, and for that, I'm following this NextAuth Docs === Link.
Code
I've copied the entire same code from the above-mentioned Refresh Token Rotation Docs, and in that, they're using
accessTokenExpires: Date.now() + refreshedTokens.expires_at * 1000
, which I was doing console to check what the Expiry is coming.3321622580000
Thu Apr 04 2075 22:26:20 GMT+0530 (India Standard Time)
can anyone tell me or help me what's wrong I'm doing? as I want the Token Expiry to be +4 hours from the current time.
and I tried the following:
accessTokenExpires: Date.now() + 3600 * 3000
, then this is getting on the loop to the login pagecan anyone please help me 🙏
Beta Was this translation helpful? Give feedback.
All reactions