auth-expert

Implement JWT, OAuth 2.0, RBAC, and session management for web applications.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/hung14vnn/MedManagerFE --skill auth-expert-hung14vnn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-expert
Source: https://github.com/hung14vnn/MedManagerFE/tree/main/.agent/skills/auth-expert
Command: npx skills add https://github.com/hung14vnn/MedManagerFE --skill auth-expert-hung14vnn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Authentication and authorization expert specializing in JWT, OAuth 2.0, session management, RBAC, and password security. Use for auth implementation, token management, or security issues.

Core Features & Use Cases

  • JWT-based authentication design and token lifecycle management
  • OAuth 2.0 integration and session control across API boundaries
  • RBAC-based access control, password hashing, and security best practices

Quick Start

Implement a secure JWT-based authentication flow with refresh tokens in a Node.js API.

Frequently Asked Questions about auth-expert

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

FAQPage Schema
How do I implement JWT-based authentication with refresh tokens in a Node.js API?

JWT-based authentication is implemented by issuing short-lived access tokens and long-lived refresh tokens, validating signatures upon each API request, and rotating refresh tokens to maintain secure session control across backend boundaries.

What's the best way to set up role-based access control (RBAC) for API endpoints?

Role-based access control is best set up by defining least-privilege roles, mapping them to specific API endpoints, and enforcing permission checks during token validation to ensure users only access authorized resources.

How does OAuth 2.0 integration work for web application session management?

OAuth 2.0 integration works by delegating authentication to an external provider, obtaining access tokens via authorization flows, and managing local sessions to control access across API boundaries without handling direct credential storage.

What are the security best practices for password hashing and credential storage?

Password hashing best practices involve using strong, adaptive hashing algorithms to securely store credentials, never storing plaintext passwords, and validating credentials against stored hashes during the authentication process.

When do I need token rotation and validation in production-grade services?

Token rotation and validation are needed whenever managing JWT lifecycles in production-grade services to prevent unauthorized access, ensure tokens are refreshed securely, and validate token integrity on every request.

Can I use this approach for both API backends and front-end clients?

Yes, this approach covers secure authentication and authorization patterns across both API backends and front-end clients, enabling token handling, session control, and access control for full-stack web applications.