live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/vault-core


@orangecheck/vault-core / VaultClientOptions

Interface: VaultClientOptions

Defined in: vault-core/src/sync.ts:48

Properties

PropertyTypeDescriptionDefined in
<a id="property-baseurl"></a> baseUrl?stringAPI origin. Default https://vault.ochk.io.vault-core/src/sync.ts:50
<a id="property-credentials"></a> credentials?RequestCredentialsCookie mode — browser callers using the oc_session cookie pass 'include'.vault-core/src/sync.ts:56
<a id="property-fetch"></a> fetch?&#123; (input: RequestInfo | URL, init?: RequestInit): Promise&lt;Response>; (input: string | Request | URL, init?: RequestInit): Promise&lt;Response>; &#125;Injectable fetch, for testing or non-standard runtimes.vault-core/src/sync.ts:58
<a id="property-headers"></a> headers?Record&lt;string, string>Extra request headers.vault-core/src/sync.ts:54
<a id="property-token"></a> token?stringAn ocvt_… access token — sent as Authorization: Bearer.vault-core/src/sync.ts:52