Skip to content

setApiBase

const setApiBase: (base, opts?) => void = client.setApiBase;

Defined in: src/ui/api.ts:42

Point the API client at a base URL (used by @xtandard/entitlements/react/embed).

Point the client at a base URL (a trailing / is dropped), optionally with credentials/fetch.

Parameter Type
base string
opts? ApiClientOptions

void