Handling authentication in NodeJS using JWT Tokens 🚀
Introduction
The process of authenticating a user's identity involves obtaining credentials and utilizing those credentials to verify the user's identity. We all authenticate into several services in our day-to-day life, for example logging into pc, ...
jaydeepdey03.hashnode.dev11 min read
José Pablo Ramírez Vargas
Senior Software Developer @ Intel
Hello, I have a question. I see you talk about "refresh tokens stored in the database". Why are you storing tokens in the database? It is as insecure as saving a password in clear text. What is the purpose of having all the tokens saved since it is so risky?