graphql-jwt-tutorial icon indicating copy to clipboard operation
graphql-jwt-tutorial copied to clipboard

Alternative to storing refresh_token in DB

Open dalalRohit opened this issue 5 years ago • 1 comments

Hey @vnovick

Loved your blog post as everything is mentioned very clearly.

I'd like to ask is there any other alternative to storing refresh_token in DB? I think it goes against the idea of having a stateless JWT mechanism. For every API call, we are checking the DB for the token.

How do I do it purely stateless without DB checks?

Thank you,

dalalRohit avatar Aug 23 '20 06:08 dalalRohit

did you read https://hasura.io/blog/best-practices-of-using-jwt-with-graphql/#jwt_persist ?

FDiskas avatar Nov 09 '20 19:11 FDiskas