http-client cannot customize #886
Unanswered
sytruong92
asked this question in
Q&A
Replies: 1 comment
-
@sytruong92 hey, this works for me
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to customize fetch to add interceptor but I not work. Can you help me
export interface ApiConfig<SecurityDataType = unknown> {
baseUrl?: string;
baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
interceptors?: Interceptors;
customFetch?: typeof fetch;
}
Beta Was this translation helpful? Give feedback.
All reactions