API Authentication
Intotes uses JWT tokens delivered as HTTP-only cookies for authentication.
Token Types​
| Token | Cookie Name | TTL | Purpose |
|---|---|---|---|
| Access token | access_token | 20 minutes | Authenticate API requests |
| Refresh token | refresh_token | 72 hours | Obtain new access tokens |
How It Works​
- Sign in via
POST /api/v1/auth/sign-in(or sign-up, OAuth) - Server sets
access_tokenandrefresh_tokenas HTTP-only cookies - Cookies are sent automatically with every request — no manual header needed
- When the access token expires, call
POST /api/v1/auth/refreshto get a new one