nest-auth

Generate a JWT authentication module for NestJS applications.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/rladydqls99/claude-marketplace --skill nest-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nest-auth
Source: https://github.com/rladydqls99/claude-marketplace/tree/main/plugins/dev-team-plugin/skills/nest-auth
Command: npx skills add https://github.com/rladydqls99/claude-marketplace --skill nest-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the generation of a complete JWT authentication module for NestJS applications, saving developers significant time and effort in setting up secure login and registration systems.

Core Features & Use Cases

  • JWT Strategy Generation: Creates a reusable JWT strategy for Passport.js.
  • Auth Service Implementation: Provides a service for user registration and login, including password hashing and JWT token generation.
  • DTOs and Decorators: Generates necessary Data Transfer Objects (DTOs) for requests and responses, along with custom decorators like @Public() and @CurrentUser().
  • Use Case: When starting a new NestJS project that requires user authentication, use this Skill to quickly scaffold the entire authentication layer, ensuring security best practices are followed from the start.

Quick Start

Generate the JWT authentication module for a NestJS application.

Frequently Asked Questions about nest-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up JWT authentication in a NestJS application?

To set up JWT authentication in a NestJS application, you need to implement a module with strategies, guards, services, decorators, and DTOs. This module handles secure user login and registration endpoints using bcrypt for password hashing and environment-based secrets for token validation.

What is the best way to generate a NestJS authentication module with login and registration?

The best way to generate a NestJS authentication module is to scaffold a comprehensive structure including JWT strategies for Passport.js, an auth service for password hashing and token generation, and necessary DTOs and custom decorators for secure user login and registration.

Does NestJS JWT authentication require bcrypt for password handling?

Yes, secure NestJS JWT authentication requires bcrypt for password handling. The authentication service uses bcrypt to hash passwords during user registration and validate them during login, ensuring secure credential storage before issuing JWT tokens.

Can I use custom decorators like @Public and @CurrentUser with NestJS JWT strategies?

Yes, you can use custom decorators like @Public and @CurrentUser with NestJS JWT strategies. Generating these custom decorators alongside your JWT module allows you to easily expose public endpoints and access the authenticated user object within your protected route handlers.

How does token validation work with environment-based JWT secrets in NestJS?

Token validation with environment-based JWT secrets in NestJS works by verifying the signature of incoming JWTs against a secret stored in your environment configuration. The Passport.js JWT strategy extracts the token, validates it using this secret, and authorizes the request.

What are the limitations of using a generated NestJS JWT authentication module?

A generated NestJS JWT authentication module provides a foundational layer for login and registration but does not include advanced limitations handling like refresh token rotation, role-based access control, or third-party OAuth integration out of the box, requiring manual extension for these complex authentication flows.