Skip to content
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

[BUG] Hasura NextAuth Refresh token #357

Open
aridgupta opened this issue Apr 30, 2021 · 0 comments
Open

[BUG] Hasura NextAuth Refresh token #357

aridgupta opened this issue Apr 30, 2021 · 0 comments

Comments

@aridgupta
Copy link

How do you handle refresh token with custom jwt token? I have been looking for ways to implement refresh token with next-auth but haven't found anything useful yet. Do you have any suggestion on how to handle refresh tokens once the original token expires?

I am hoping it could be implemented in the jwt/session callback in next-auth as these are called every time the user accesses a session. But how do I send my original refresh token to the client which would last longer than the access token and then once the access token expires I could just verify the refresh token and generate new tokens?

Any kind of help would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant