Refresh Token Rotation (https://next-auth.js.org/tutorials/refresh-token-rotation) #5322
Unanswered
mfapproach
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.
-
Your documentation seems to be incorrect regarding the calculation for "accessTokenExpires". Google access_tokens have an expires_at field which is the date it expires expressed in seconds, not the number of seconds until it expires. It should be accessTokenExpires = account.expires_at * 1000. This drove me nuts for awhile, but I just figured it out. I would fork and fix it, but I don't have the time.
Beta Was this translation helpful? Give feedback.
All reactions