Node.js: Build and Ship an API
Exit

Lesson 10 of 14 · Quality and production

Authentication: hashed passwords, sessions or JWT, secure cookies

1 h 5 min Node.js 22 (Debian, git, npm, python3)

Objective

Let a riad manager or a delivery app courier log in without ever putting passwords at risk: store them hashed, verify them correctly, then recognize the user on the following requests with a session or a token, carried in a well-configured cookie.

This lesson is part of the full course

Unlock Node.js: Build and Ship an API to read every lesson, do the exercises, access the simulations and earn your certificate.

Already enrolled? Log in.