Documentation
README
Auth Security
Core Principles
- OAuth 2.1 โ Follow RFC 9700 (January 2025)
- PKCE Required โ All clients must use PKCE
- Short-lived Tokens โ Access tokens expire in 5-15 minutes
- Token Rotation โ Refresh tokens are single-use
- HttpOnly Storage โ Browser tokens in HttpOnly cookies
- Explicit Algorithm โ Never trust JWT header algorithm
- No backwards compatibility โ Delete deprecated auth flows
OAuth 2.1 Key Changes
Deprecated Flows (DO NOT USE)
| Flow | Status | Replacement |
|---|---|---|
| Implicit Grant | Removed | Authorization Code + PKCE |
| Password Grant | Removed | Authorization Code + PKCE |
| Auth Code without PKCE | Removed | Must use PKCE |
Required: Authorization Code + PKCE
This is the opening of the README. Read the full README on GitHub.