nean-add-auth

Automates adding Passport.js and JWT authentication to NEAN projects with optional OAuth providers.

3|1|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/edfenton/claude-skills --skill nean-add-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nean-add-auth
Source: https://github.com/edfenton/claude-skills/tree/main/nean/nean-add-auth
Command: npx skills add https://github.com/edfenton/claude-skills --skill nean-add-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

NEAN projects often lack a secure, scalable authentication layer. This Skill provides a Passport.js + JWT based solution with optional OAuth to secure APIs and user sessions.

Core Features & Use Cases

  • Implement login, registration, and protected routes using JWTs and refresh tokens.
  • Support local authentication and optional OAuth providers (Google, GitHub) across server and web clients.
  • Enable secure token rotation, RBAC guards, and easy environment-based configuration.

Quick Start

Configure an existing NEAN project to authenticate users with Passport.js and JWT, then test login and protected routes.

Frequently Asked Questions about nean-add-auth

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

FAQPage Schema
How do I add JWT authentication to a NEAN stack project?

You can add JWT authentication to a NEAN project by applying this Skill, which automates the creation of an auth module with Passport.js strategies, guards, and decorators. It securely handles login, registration, and protected routes across server and web layers.

Can I set up Google and GitHub OAuth providers in a NEAN application?

Yes, you can set up Google and GitHub OAuth providers in a NEAN application using this Skill. It supports optional OAuth provider integration alongside local authentication, managing the necessary environment variables and Passport.js strategies for secure third-party login.

How does token rotation work for JWT refresh tokens in Passport.js?

JWT refresh tokens in Passport.js are managed through this Skill to enable secure token rotation. It implements an auth module that issues and refreshes JWTs, ensuring secure API sessions without requiring users to re-authenticate frequently.

Do I need an existing NEAN app to configure RBAC guards and secure routes?

Yes, you need an existing NEAN app to configure RBAC guards and secure routes. This Skill applies to existing NEAN projects, adding an auth module with role-based access control guards and environment-based configuration to protect your API endpoints.

What is the best way to secure API endpoints using JWT and Passport.js?

The best way to secure API endpoints with JWT and Passport.js in a NEAN project is using this Skill. It automates the implementation of authentication controllers and guards, providing scalable security through JWTs, refresh tokens, and optional OAuth integration.

Are there limitations when adding local authentication to a NEAN server and web client?

When adding local authentication to a NEAN server and web client, this Skill focuses on Passport.js and JWT implementations. It does not natively support alternative security protocols outside of JWT and the specified Google or GitHub OAuth providers.