authClientFor
authClientFor(
opts):AuthClient<{baseURL:string;fetchOptions: {auth: {token: () =>string|undefined;type:"Bearer"; };customFetchImpl?: (input,init?) =>Promise<Response>;headers?:Record<string,string>; };plugins: ({ } | { } | { } | { } | { } | { } | { })[]; }>
Parameters
Section titled “Parameters”Pick<GymClientOptions, "baseUrl" | "token" | "fetch" | "headers">
Returns
Section titled “Returns”AuthClient<{ baseURL: string; fetchOptions: { auth: { token: () => string | undefined; type: "Bearer"; }; customFetchImpl?: (input, init?) => Promise<Response>; headers?: Record<string, string>; }; plugins: ({ } | { } | { } | { } | { } | { } | { })[]; }>