# CheckSetupOptions

Defined in: setup.ts:64

## Properties

### apiBase

> **apiBase**: `string`

Defined in: setup.ts:65

***

### apiBaseProvenance?

> `optional` **apiBaseProvenance?**: `"explicit"` \| `"key"`

Defined in: setup.ts:76

Where `apiBase` came from; see `FetchFragmentsOptions.apiBaseProvenance`. Defaults to "explicit".

***

### fetchImpl?

> `optional` **fetchImpl?**: (`input`, `init?`) => `Promise`\<`Response`\>

Defined in: setup.ts:85

Test seam; defaults to the platform fetch.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch)

#### Parameters

##### input

`URL` \| `RequestInfo`

##### init?

`RequestInit`

#### Returns

`Promise`\<`Response`\>

***

### organizationId?

> `optional` **organizationId?**: `string`

Defined in: setup.ts:69

When given, it must match the key's organization.

***

### origin?

> `optional` **origin?**: `string`

Defined in: setup.ts:74

The origin to check, for example `https://shop.example`. Without it the
edge reads the request's `Origin` header (a browser sends its own page's).

***

### publishableKey?

> `optional` **publishableKey?**: `string`

Defined in: setup.ts:67

`st_pk_…`. Sent as `Authorization: Bearer <key>`.

***

### signal?

> `optional` **signal?**: `AbortSignal`

Defined in: setup.ts:77

***

### timeoutMs?

> `optional` **timeoutMs?**: `number`

Defined in: setup.ts:83

How long the check waits for the whole answer, in milliseconds. Default
10000. Past it the request is stopped and the result is not reached,
with `reason: "timeout"`. `0` or `Infinity` turns the deadline off.
