Przejdź do głównej zawartości

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?​

optional authBasePath?: string

Base path of the SDK-BFF auth route handlers (default /api/auth).


fetch?​

optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Custom fetch (tests, non-standard runtimes). Defaults to globalThis.fetch.

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

RequestInfo | URL

init?​

RequestInit

Returns​

Promise<Response>

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

string | Request | URL

init?​

RequestInit

Returns​

Promise<Response>