NestJS Auth Module
nestjs-auth-module is a lightweight authentication module for NestJS.
It provides a simple, provider-based structure so your applications can:
- generate tokens
- verify/decode incoming Bearer tokens
- protect HTTP routes via a guard
- access the decoded payload from the request
Supported versions
- NestJS: v10.x (package dependencies target
@nestjs/commonand@nestjs/core^10) - Node.js: the version supported by your NestJS v10 setup
note
If you need NestJS v9 (or earlier) support, the package needs dependency adjustments and compatibility testing.
Features
- ✅ Pluggable auth provider design (current provider: JWT)
- ✅ Bearer-token flow (
Authorization: Bearer <token>) - ✅ Ready-to-use guard + request payload extraction
- ✅ Built on
josefor JWT operations