Skip to content

authClientFor

authClientFor(opts): AuthClient<{ baseURL: string; fetchOptions: { auth: { token: () => string | undefined; type: "Bearer"; }; customFetchImpl?: (input, init?) => Promise<Response>; headers?: Record<string, string>; }; plugins: ({ } | { } | { } | { } | { } | { } | { })[]; }>

Pick<GymClientOptions, "baseUrl" | "token" | "fetch" | "headers">

AuthClient<{ baseURL: string; fetchOptions: { auth: { token: () => string | undefined; type: "Bearer"; }; customFetchImpl?: (input, init?) => Promise<Response>; headers?: Record<string, string>; }; plugins: ({ } | { } | { } | { } | { } | { } | { })[]; }>