Replies: 3 comments 2 replies
-
Hi @aridgupta, Thanks for raising the question 💚 , we recommend you to follow the question template so it's easier for us maintainers when triaging the issues 🙏🏽 Could you try to reproduce your problem using our template in codesandbox? This would really help us to help you debug your issue 👍🏽 |
Beta Was this translation helpful? Give feedback.
-
Should I provide my google client id and client secret in the codesandbox example? Won't that be a security issue? Also, I didn't encounter any bug while using next-auth, I just wanted help with implementing refresh token when I have custom jwt token setup. |
Beta Was this translation helpful? Give feedback.
-
If you share examples, NEVER provide any secrets, just leave it blank! About token rotation, we currently don't have built-in solution, but here is a tutorial that should get you started: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to make Hasura work with next-auth. Since Hasura needs custom jwt claims, I am encoding my custom token in the encode block and sending the encoded token as a session property so that the client can access the token for making authenticated requests to the server. However, I don't know how to make refresh token work with custom access tokens? Any kind of help would really be great. Here is my [...nextauth].js file
EDIT: Here is a link to my codesandbox
Beta Was this translation helpful? Give feedback.
All reactions