authentication-strategies

Implement JWT, session, and OAuth 2.0 authentication in Node.js applications.

2|1|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/MolcajeteAI/plugin --skill authentication-strategies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: authentication-strategies
Source: https://github.com/MolcajeteAI/plugin/tree/main/deprecated/tech-stacks/js/node/skills/authentication-strategies
Command: npx skills add https://github.com/MolcajeteAI/plugin --skill authentication-strategies

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @fastify/jwt, bcrypt, zod, crypto, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive solutions for implementing secure user authentication and authorization in Node.js applications, covering common patterns like JWT, sessions, and OAuth.

Core Features & Use Cases

  • JWT Authentication: Implement secure token-based authentication with short-lived access tokens and refresh tokens.
  • OAuth 2.0 Integration: Easily integrate with third-party providers like Google for user authentication.
  • API Key Management: Securely authenticate services or clients using API keys.
  • Password Security: Enforces strong password policies and secure hashing.

Quick Start

Use the authentication strategies skill to implement JWT authentication in your Fastify application.

Frequently Asked Questions about authentication-strategies

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

FAQPage Schema
How do I implement JWT authentication in a Node.js API?

JWT authentication in a Node.js API is implemented using short-lived access tokens and refresh tokens. This Skill uses @fastify/jwt to handle secure token generation and validation for user sessions.

How does OAuth 2.0 integration work for Node.js applications?

OAuth 2.0 integration for Node.js applications works by connecting with third-party providers like Google for user authentication. This enables delegated authorization, allowing secure third-party access without exposing user credentials.

What's the best way to manage API keys for secure service authentication?

The best way to manage API keys for secure service authentication is to enforce strong policies and secure hashing. This Skill provides API key management to securely authenticate services or clients accessing your APIs.

Does this authentication approach support password hashing and validation?

This authentication approach supports password hashing and validation using bcrypt and zod. It enforces strong password policies and secure hashing to protect user credentials in your Node.js application.

Can I use this strategy to handle both access tokens and refresh tokens?

You can use this strategy to handle both access tokens and refresh tokens. It implements secure token-based authentication designed to manage short-lived access tokens alongside refresh tokens for continuous user sessions.

When do I need API key management instead of OAuth 2.0?

You need API key management instead of OAuth 2.0 when authenticating services or machine-to-machine clients rather than human users. API keys provide secure direct access, whereas OAuth 2.0 handles delegated user authorization.