docs: req. interceptor overview
This commit is contained in:
parent
a6918b9206
commit
298aca465e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user