Tag
jwt
Published articles tagged jwt.
Authentication in NestJS
NestJS authentication is built from guards: one checks a password and issues a token, another verifies that token on every later request. This chapter wires Passport's local and JWT strategies into a Nest app, then protects every route by default with a global guard and a @Public() opt-out.
JWT, JWS, JWE, and JOSE
JOSE is the specification family for signing and encrypting a set of claims in a URL-safe token. This page separates JWT, JWS, JWE, and JWK, shows how the compact forms are assembled, and lists the checks a recipient makes before trusting those claims.