[V4] Setting Google provider access type to offline for refresh token causes JWT session error #3016
-
Question 💬I am attempting to use the V4 beta with Google as a provider and with refresh token rotation. I had to improvise since it appears that https://next-auth.js.org/tutorials/refresh-token-rotation is outdated. Logging in with Google works fine but I get this error the next time I reach out to next auth (through use of getSession): How to reproduce ☕️I have tried this and this And both yield the error. Contributing 🙌🏽Yes, I am willing to help answer this question in a PR |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 20 replies
-
|
@agusterodin i am doing something similar as well, if you find a work around can you post it here as well? |
Beta Was this translation helpful? Give feedback.
-
|
@balazsorban44 one thing i noticed is if i use authorizationUrl instead of authorization i tend to not get JWEDecryptionFailed. Ive tried it in this app and another which doesnt really need the google specific access_type or connection_scope stuff. Any insight on what is going on between these 3? Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
|
authorizationUrl does nothing in v4. there is no reference to it in the core |
Beta Was this translation helpful? Give feedback.
@agusterodin i am doing something similar as well, if you find a work around can you post it here as well?