Login Flows
CRYMBO Connect provides a secure login system using email and password authentication combined with JWT (JSON Web Tokens) for session management.
Endpoints
| Endpoint | Method | Purpose |
|---|---|---|
/v1/auth/login | POST | Authenticate user and issue JWT token |
/v1/auth/logout | POST | Invalidate session token |
/v1/auth/refresh-token | POST | Obtain a new access token (session refresh) |
Flow Overview
-
Login
- User submits email and password.
- If valid, a JWT token is issued.
- Token must be included in Authorization headers (
Bearer <token>) for all protected API calls.
-
Logout
- Client calls
/v1/auth/logoutto invalidate the token. - Session is securely closed.
- Client calls
-
Refresh Token
- Clients may call
/v1/auth/refresh-tokenbefore token expiration to refresh their session without requiring re-login.
- Clients may call
Security Notes
- All tokens are time-limited and cryptographically signed.
- MFA can be enforced after password verification.
- Refresh tokens can be disabled institution-wide for enhanced security if needed.