nestjs-authentication
OfficialSecure NestJS APIs, manage user access.
AuthorAgentiveCity
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Designing, implementing, or refactoring authentication and authorization in NestJS TypeScript backends, including JWT, sessions, refresh tokens, guards, and roles, can be complex and security-critical. This Skill automates the setup of robust auth modules and secure API endpoints, reducing development time and ensuring best practices.
Core Features & Use Cases
- Comprehensive Auth Module Setup: Create or refactor auth modules with login, signup, and logout endpoints, integrating with
UsersServiceand password hashing. - JWT & Token Management: Implement JWT access tokens (and optional refresh tokens) using
@nestjs/jwtandpassport-jwtfor stateless API authentication. - Role-Based Access Control (RBAC): Implement guards and decorators for role-based and permissions-based access control, securing routes at class or method level.
Quick Start
Implement JWT login and protect /admin routes in this NestJS app, adding signup, login, and me endpoints, and refactor our existing auth module to use guards and decorators cleanly.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: nestjs-authentication Download link: https://github.com/AgentiveCity/SkillFactory/archive/main.zip#nestjs-authentication Please download this .zip file, extract it, and install it in the .claude/skills/ directory.