From 4cb6acda1094892e9019f8f482f79564d328d998 Mon Sep 17 00:00:00 2001 From: Elena Makarova Date: Thu, 24 Jul 2025 17:05:57 +0300 Subject: [PATCH] feat(api): use custom axios defaults --- src/services/api/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/api/index.ts b/src/services/api/index.ts index 5ef6f5fb48..3ba6bfb483 100644 --- a/src/services/api/index.ts +++ b/src/services/api/index.ts @@ -31,12 +31,14 @@ export class YdbEmbeddedAPI { webVersion = false, withCredentials = false, csrfTokenGetter = () => undefined, + defaults = {}, }: { webVersion?: boolean; withCredentials?: boolean; csrfTokenGetter?: () => string | undefined; + defaults?: AxiosRequestConfig; } = {}) { - const config: AxiosRequestConfig = {withCredentials}; + const config: AxiosRequestConfig = {withCredentials, ...defaults}; this.auth = new AuthAPI({config}); if (webVersion) {