auth-implementation-patterns

Implement JWT authentication with refresh tokens and RBAC for APIs.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/mwathiben/PropManager --skill auth-implementation-patterns-mwathiben
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-implementation-patterns
Source: https://github.com/mwathiben/PropManager/tree/main/.claude/skills/auth-implementation-patterns
Command: npx skills add https://github.com/mwathiben/PropManager --skill auth-implementation-patterns-mwathiben

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Securely authenticate users and enforce fine-grained authorization across APIs, services, and multi-tenant environments.

Core Features & Use Cases

  • JWT-based authentication with short-lived access tokens and refresh tokens to manage sessions.
  • Role-based access control (RBAC) and permission-based checks to enforce least-privilege access.
  • OAuth2/OpenID Connect integration for social login and enterprise SSO.
  • Password security best practices, including hashing, salting, and secure storage.
  • Token lifecycle management, session handling, and basic rate limiting for protection against abuse.
  • Resource ownership checks and per-resource authorization to protect user data.

Quick Start

Implement JWT authentication with refresh tokens and RBAC in your API to begin securing access and enforcing permissions.

Frequently Asked Questions about auth-implementation-patterns

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

FAQPage Schema
How do I implement JWT authentication with refresh tokens in my API?

RBAC assigns permissions to roles rather than individuals, enforcing least-privilege access. You combine role checks with per-resource ownership validation to ensure users can only interact with data they are authorized to access across services.

Can I integrate OAuth2 and OpenID Connect for enterprise SSO?

Password security requires hashing, salting, and secure storage practices. Combined with rate limiting, these defenses protect authentication endpoints from brute-force attacks and credential stuffing attempts during API authentication flows.

What is the best way to handle authorization in multi-tenant apps?

Token lifecycle management governs JWT issuance, refresh, and revocation. Handling short-lived access tokens and rotating refresh tokens prevents stale session exploitation and maintains scalable session management across enterprise workloads.

Why does my API need both authentication and authorization checks?

Authentication verifies user identity while authorization enforces what resources they can access. APIs need both to confirm identity via tokens and then apply RBAC or permission checks to protect user data and prevent privilege escalation.