Authentication API
JWT-based authentication for the HoodslyHub API.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/login | Authenticate and get JWT token |
| POST | /api/auth/me | Get current user profile |
| POST | /api/auth/refresh | Refresh JWT token |
| POST | /api/auth/logout | Logout and invalidate token |
Token Usage
After login, include the JWT token in all authenticated requests:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...
Token Expiration
Tokens expire after 1 hour. Use the refresh endpoint to get a new token before expiration.
Request
GET
/api/v1/status
Response