From 298aca465ecdd97c47bcc391b53e181d9c9cd00a Mon Sep 17 00:00:00 2001 From: ae Date: Sat, 12 Apr 2025 16:49:41 +0300 Subject: [PATCH] docs: req. interceptor overview --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index 4b5c82a..9889f4f 100644 --- a/docs/API.md +++ b/docs/API.md @@ -76,6 +76,6 @@ All notes related endpoints are protected with `requireAccessToken` middleware, ## 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 - Errors: Handle network errors + [aforementioned](#error-cases) API error formats