Interface: AuthClientOptions
Options configuring the same-origin BFF transport used by AuthClient.refreshSession.
GraphQL auth operations (login/register/getCustomer) keep using the injected
StorefrontClient; only refreshSession talks to the same-origin route.
Properties
authBasePath?
optionalauthBasePath?:string
Base path of the SDK-BFF auth route handlers (default /api/auth).
fetch?
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Custom fetch (tests, non-standard runtimes). Defaults to globalThis.fetch.
Call Signature
(
input,init?):Promise<Response>
Parameters
input
RequestInfo | URL
init?
RequestInit
Returns
Promise<Response>
Call Signature
(
input,init?):Promise<Response>
Parameters
input
string | Request | URL
init?
RequestInit
Returns
Promise<Response>