Today's rabbit hole: securing JWTs for authentication, httpOnly cookies, CSRF tokens, secrets & more
The post walks through storing JWTs in httpOnly cookies, protecting routes with a separate login flag, handling logout server-side, and adding CSRF protection with csurf, CORS, SameSite, and headers.