Skip to main content
function withAuth(axiosClient: AxiosInstance, options: AuthInterceptorOptions): AxiosInstance;
Defined in: hooks/axios/withAuth.ts:52 Axios interceptor for adding the JWT to the Authorization header.

Parameters

axiosClient

AxiosInstance The Axios client instance to add the interceptor to

options

AuthInterceptorOptions Options for the request including API keys and debug flag

Returns

AxiosInstance The modified request configuration with the Authorization header added