DEV Community

Discussion on: Build user authentication in Golang with JWT and mongoDB

Collapse
 
topoko123 profile image
topoko123

I have a question, why do we need to store tokens and refresh tokens in the database when we can write a function for decode, how can we revoke tokens?