CODING WITH JAY LIBRARY
Tag: MongoDB

NestJS Authentication with PostgreSQL, JWT & Refresh Tokens
NestJS authentication looks simple in most tutorials: create a login endpoint, compare a password, generate a JWT, and protect a route. That is enough to understand the basic idea, but it is not enough for a real application. Once authentication reaches production, you also need to think about password hashing, database constraints, token expiration, refresh…