auth-expert

Implement JWT, OAuth 2.0, and RBAC authentication patterns for web apps.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams implement robust authentication and authorization controls, reducing security risks and development toil by providing best-practice patterns for token handling, session management, and access control.

Core Features & Use Cases

  • JWT-based authentication: best-practice token issuance and verification.
  • OAuth 2.0 integration: secure delegation and consent flows.
  • RBAC and permissions: role-based access controls for resources.
  • Password security: secure storage and verification of user credentials.

Quick Start

Provide a secure login endpoint with JWT, configure httpOnly cookies, and implement RBAC checks on protected routes.

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 authentication with httpOnly cookies for a secure login endpoint?

JWT authentication requires issuing and verifying tokens using libraries like jsonwebtoken, configuring httpOnly cookies for secure session storage, and applying RBAC checks on protected routes to control access.

What's the best way to set up OAuth 2.0 flows for secure access delegation?

OAuth 2.0 integration provides secure delegation and consent flows using standard client tooling, allowing backend services to securely manage user authorization without handling raw credentials directly.

How does RBAC role-based access control work for protecting API resources?

RBAC role-based access control restricts resource access by assigning permissions to roles, enforcing access policies on protected routes to ensure users only interact with authorized endpoints.

Do I need standard libraries like bcrypt for password hashing and token management?

Yes, secure password storage and verification require standard libraries like bcrypt for hashing, alongside jsonwebtoken for token management and OAuth client tooling to implement robust authentication controls.

Can I use this authentication pattern for security reviews across existing backend services?

Yes, these authentication and authorization patterns apply directly to security reviews across backend services, helping teams validate API design, user session controls, and access management implementations.

Why does token management fail without proper access control and session configuration?

Token management breaks without proper access control because JWT verification, password hashing, and RBAC permissions must align with httpOnly cookie session configurations to maintain secure backend service operations.