auth-patterns

Documents JWTs, OAuth flows, RBAC mapping and password handling for authentication architecture decisions.

2|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/BigPapiCB/Universal-Claude-Skills --skill auth-patterns-bigpapicb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-patterns
Source: https://github.com/BigPapiCB/Universal-Claude-Skills/tree/main/auth-patterns
Command: npx skills add https://github.com/BigPapiCB/Universal-Claude-Skills --skill auth-patterns-bigpapicb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Authentication and authorization patterns are often implemented inconsistently across services, leading to security gaps, token mismanagement, and RBAC drift. This Skill provides vetted guidelines for JWT vs sessions, OAuth flows, and RBAC to help teams design secure, scalable authentication architectures.

Core Features & Use Cases

  • Guidance on choosing JWTs vs server-side sessions for web, mobile, and API services
  • Password handling, RBAC mapping, and token lifecycle recommendations
  • OAuth 2.0 / OpenID Connect flow references and secure integration patterns
  • Use Case: Architect a login and access-control system for a multi-service application

Quick Start

Identify your application's authentication and authorization requirements and select the recommended patterns for your stack.

Frequently Asked Questions about auth-patterns

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

FAQPage Schema
How do I choose between JWT and server-side sessions for my application?

Choosing between JWT and server-side sessions depends on your architecture. This Skill provides vetted guidelines for JWT versus sessions across web, mobile, and API services to ensure secure, scalable authentication.

What is the best way to implement OAuth 2.0 and OpenID Connect flows?

The best way to implement OAuth 2.0 is by following standardized integration patterns. This Skill provides OAuth 2.0 and OpenID Connect flow references to guide secure authorization design across your services.

How do I set up RBAC and token lifecycle management across multiple services?

Setting up RBAC and token lifecycles requires standardized patterns to prevent authorization drift. This Skill offers RBAC mapping, password handling, and robust token lifecycle recommendations for multi-service applications.

Does this authentication pattern guidance work for both mobile and web apps?

Yes, this authentication guidance works for mobile and web apps. It facilitates secure authentication and authorization design decisions across web, mobile, and API services needing standardized access control.

Why does RBAC drift happen and how can I prevent it in my auth architecture?

RBAC drift happens when authentication patterns are implemented inconsistently across services. You can prevent it by applying this Skill's vetted guidelines for standardized RBAC mapping and token management.

What are the limitations of using JWT for server-side authorization checks?

JWT limitations include token mismanagement if not handled properly. This Skill enforces server-side checks, safe credential handling, and robust token lifecycles to mitigate security gaps in JWT implementations.