auth

Design authentication and authorization systems for applications and APIs.

26|8|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/arbazkhan971/godmode --skill auth-arbazkhan971
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth
Source: https://github.com/arbazkhan971/godmode/tree/main/skills/auth
Command: npx skills add https://github.com/arbazkhan971/godmode --skill auth-arbazkhan971

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a complete, security-first approach to designing and implementing authentication and authorization for applications and APIs, removing guesswork and preventing common identity-related vulnerabilities.

Core Features & Use Cases

  • Architecture decisions for JWT, OAuth2/OIDC, SAML, API keys, and mTLS based on application type.
  • Session and token lifecycle management including refresh token rotation, revocation, blacklisting, and cookie best practices.
  • MFA and passwordless patterns with TOTP, WebAuthn/passkeys, recovery codes, and fallback guidance.
  • Security hardening and compliance checklists, implementation artifacts, and integration tests for production readiness.
  • Use case: design a secure login and token strategy for an API + SPA with short-lived access tokens, refresh rotation, and TOTP-based MFA.

Quick Start

Use the auth skill to design a JWT-based API authentication strategy with refresh token rotation and TOTP MFA.

Frequently Asked Questions about auth

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

FAQPage Schema
How do I design a JWT authentication strategy with refresh token rotation for an API?

Design a JWT authentication strategy by enforcing short-lived access tokens and implementing refresh token rotation with revocation and blacklisting. This approach ensures secure session management and prevents unauthorized API access.

What is the best way to implement MFA and passwordless login using WebAuthn and TOTP?

Implement MFA using TOTP, WebAuthn passkeys, and recovery codes with fallback guidance. This passwordless pattern secures user identities while providing recovery mechanisms for lost authentication devices.

How does OAuth2 and SAML single sign-on work for web and mobile applications?

OAuth2 and SAML single sign-on architecture decisions depend on application type, managing secure token lifecycles and session strategies across web, mobile, SPA, and SSR environments for federated identity.

Can I use mTLS and API keys for microservice authentication?

Yes, you can use mTLS and API keys for microservice authentication. The system generates architecture decisions and implementation artifacts specifically for API-only backends and microservice environments requiring mutual TLS verification.

When do I need session management and cookie best practices for SPA and SSR backends?

You need session management and cookie best practices for SPA and SSR backends when handling secure token lifecycles. Proper session strategies prevent identity vulnerabilities by enforcing revocation and secure cookie configurations.

What are the limitations of relying solely on JWT without refresh token rotation?

Relying solely on JWT without refresh token rotation limits session revocation and blacklisting capabilities. Security hardening checklists enforce short-lived access tokens and refresh rotation to mitigate token theft and extended unauthorized access.