docs: req. interceptor overview

This commit is contained in:
ae 2025-04-12 16:49:41 +03:00
parent a6918b9206
commit 298aca465e
Signed by: ae
GPG Key ID: 995EFD5C1B532B3E

View File

@ -76,6 +76,6 @@ All notes related endpoints are protected with `requireAccessToken` middleware,
## Necessary client interceptors ## Necessary client interceptors
- Requests: Add Authorization header with either `access_token` or `request_token` - Requests: Add authorization (access token as bearer) or CSRF token header
- Responses: Handle 401 -> Attempt to automatically rotate the tokens - Responses: Handle 401 -> Attempt to automatically rotate the tokens
- Errors: Handle network errors + [aforementioned](#error-cases) API error formats - Errors: Handle network errors + [aforementioned](#error-cases) API error formats