@manujdhull/nestjs-pkce-oauth2
v1.0.3
Published
A NestJS plugin to simplify OAuth2 PKCE flow integration, including decorators, guards, and token/session management.
Maintainers
Readme
@manujdhull/nestjs-pkce-oauth2
A NestJS plugin for OAuth 2.0 with PKCE support, providing decorators, guards, and token/session management to make secure authentication easy — especially with providers like Google, GitHub, or Auth0.
✨ Features
- 🔐 Built-in support for PKCE (Proof Key for Code Exchange)
- ⚙️ Decorators:
@OAuthInitiate()and@OAuthCallback()for easy route integration - 🛡️
StateGuardfor CSRF protection during auth flow - 🧠
TokenStoreServiceabstraction for token persistence - ✅ Works out of the box with
@nestjs/platform-express
📦 Installation
npm install @manujdhull/nestjs-pkce-oauth2