Auth implementation

From rnavarych/alpha-engineer · View interactive version

Auth implementation is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Implements authentication and authorization systems including JWT token management, session handling, OAuth2 flows, OpenID Connect, RBAC/ABAC enforcement, API key management, multi-tenancy auth isolation, SSO integration, and refresh token rotation. Use when building login flows, protecting endpoint

How to use this skill

Skill file

Auth Implementation

When to use

Core principles

  1. Tokens contain minimal claims — sub, roles, tenant only; nothing sensitive in JWT payload
  2. Rotate refresh tokens on every use — reuse of an invalidated token signals theft; revoke the family
  3. Enforce server-side at every layer — middleware, service, and data layer; frontend checks are UX only
  4. Hash everything at rest — API keys, refresh tokens; never store plaintext secrets
  5. Deprecated flows stay deprecated — Implicit and ROPC are gone; PKCE is the only option for public clients

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.