We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2bdf9f commit 7397f5fCopy full SHA for 7397f5f
src/services/api/index.ts
@@ -31,12 +31,14 @@ export class YdbEmbeddedAPI {
31
webVersion = false,
32
withCredentials = false,
33
csrfTokenGetter = () => undefined,
34
+ defaults = {},
35
}: {
36
webVersion?: boolean;
37
withCredentials?: boolean;
38
csrfTokenGetter?: () => string | undefined;
39
+ defaults?: AxiosRequestConfig;
40
} = {}) {
- const config: AxiosRequestConfig = {withCredentials};
41
+ const config: AxiosRequestConfig = {withCredentials, ...defaults};
42
43
this.auth = new AuthAPI({config});
44
if (webVersion) {
0 commit comments