Authentication Service API
Welcome to the Auth Service with JWT access and refresh tokens.
Endpoints
- POST /api/register - Register a new user. Body: {"username": "...", "password": "..."}
- POST /api/login - Login and receive access + refresh tokens. Body: {"username": "...", "password": "..."}
- POST /api/refresh - Exchange refresh token for new access token. Body: {"refresh_token": "..."}
- GET /api/profile - View your profile (requires access token)
- GET /api/debug/tokens - Debug endpoint: list stored refresh tokens
- GET /api/admin/flag - Admin-only endpoint (requires admin access token)