authentication

Guide authentication system design from threat modeling to token mechanisms.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/Emmraan/agent-skills --skill authentication-emmraan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: authentication
Source: https://github.com/Emmraan/agent-skills/tree/main/skills/authentication
Command: npx skills add https://github.com/Emmraan/agent-skills --skill authentication-emmraan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive framework for designing, implementing, and securing authentication systems, ensuring robust identity verification and credential management.

Core Features & Use Cases

  • End-to-End Authentication Design: Guides through requirements, threat modeling, strategy selection (build vs. buy), and implementation details for various authentication patterns (session-based, token-based, OAuth/OIDC, mTLS, API keys).
  • Secure Credential Management: Details best practices for password hashing, policies, and account recovery.
  • JWT & Token Security: Covers JWT structure, signing algorithms, token lifetimes, refresh token mechanics, and revocation strategies.
  • Use Case: Design a secure authentication system for a new SaaS application, including user registration, password policies, MFA, and API authentication for microservices.

Quick Start

Use the authentication skill to design a secure authentication system for a new web application that requires passwordless login and MFA.

Frequently Asked Questions about authentication

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

FAQPage Schema
How do I design a secure authentication system for a new SaaS application?

Designing a secure authentication system requires threat modeling, strategy selection, and implementing credential management. The framework covers user registration, password hashing, multi-factor authentication, and API authentication for microservices.

What is the best way to implement JWT signing and refresh token mechanics?

Implementing JWT security involves selecting signing algorithms, defining token lifetimes, and establishing refresh token mechanics. A robust design also includes specific revocation strategies to invalidate compromised tokens effectively.

How does OAuth 2.0 and OIDC flow integration work for passwordless login?

OAuth 2.0 and OIDC flows enable passwordless login by delegating identity verification to external providers. This approach manages credentials securely without handling raw passwords directly in your application database.

Do I need multi-factor authentication and account recovery for my web application?

Multi-factor authentication and account recovery are essential for robust identity verification. Implementing them ensures secure access control and provides safe credential restoration paths if users lose access.

When should I choose building custom authentication versus buying a managed identity service?

Choosing between building or buying authentication depends on your threat model and resource constraints. Building custom offers granular control over credential management, while buying reduces implementation overhead for standard OAuth and mTLS flows.

What are the best practices for secure password hashing and API authentication?

Secure password hashing and API authentication require strong password policies and pattern-specific implementations. Best practices include using dedicated hashing algorithms and securing microservices with mTLS or API keys.