WarmHubClientOptions
Options for constructing a WarmHubClient.
Properties
Section titled “Properties”apiUrl?
Section titled “apiUrl?”
optionalapiUrl?:string
Override the WarmHub API URL. Defaults to the public WarmHub API.
fetch?
Section titled “fetch?”
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Custom fetch implementation for non-standard runtimes or tests.
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”URL | RequestInfo
RequestInit
Returns
Section titled “Returns”Promise<Response>
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”string | Request | URL
RequestInit
Returns
Section titled “Returns”Promise<Response>
accessToken?
Section titled “accessToken?”
optionalaccessToken?:AccessTokenProvider
Static token or sync/async token provider used for authenticated requests.
optionalauth?:object
Authentication provider object. Prefer auth.getToken when integrating with an existing session system.
getToken
Section titled “getToken”getToken: () =>
Promise<string|undefined>
Returns
Section titled “Returns”Promise<string | undefined>
functionLogs?
Section titled “functionLogs?”
optionalfunctionLogs?:FunctionLogMode
Control replay of backend function log lines. Defaults to off.
Hit a problem or have a question? Get in touch.