Files
OllaHub/.agent/skills/api-patterns/auth.md
T
evandro 861af0bb9f
release.yml (push) Invalid workflow file
wip: snapshot das alterações não commitadas (2026-10-20)
Origem: D:/Documents/Github/OllaHub
Arquivos omitidos (segredos, bancos de dados, logs, >50 MB): 0
2026-10-20 00:49:46 -03:00

576 B

Authentication Patterns

Choose auth pattern based on use case.

Selection Guide

Pattern Best For
JWT Stateless, microservices
Session Traditional web, simple
OAuth 2.0 Third-party integration
API Keys Server-to-server, public APIs
Passkey Modern passwordless (2025+)

JWT Principles

Important:
├── Always verify signature
├── Check expiration
├── Include minimal claims
├── Use short expiry + refresh tokens
└── Never store sensitive data in JWT