This tutorial takes a test-first approach to implementing token-based authentication in a Node app using JSON Web Tokens (JWTs) and Postgres. JSON Web Tokens (or JWTs) provide a means of authenticating every request from the client to the server in a stateless, secure way.
Full article