Overview
Zeus uses JWT (JSON Web Tokens) for stateless authentication. Tokens are issued after login and must be included in all API requests.Authentication Flow
Login
Using Tokens
Include the token in the Authorization header:Token Validation
Server validates tokens on each request:Token Expiration
Tokens expire after 24 hours. Refresh by logging in again:Error Responses
Invalid Credentials
Missing Token
Invalid Token
Implementation in Flutter
Security Best Practices
- Store tokens securely - Use platform secure storage
- Refresh before expiry - Don’t wait for 401
- Handle 401 gracefully - Redirect to login
- Use HTTPS - Never send tokens over HTTP
- Short expiration - Balance security vs UX

