# WhoamiResult

Defined in: setup.ts:39

## Properties

### enforcement

> **enforcement**: `"off"` \| `"log"` \| `"required"` \| `null`

Defined in: setup.ts:55

***

### key

> **key**: `object`

Defined in: setup.ts:45

#### env

> **env**: `"live"` \| `"test"` \| `null`

#### present

> **present**: `boolean`

#### valid

> **valid**: `boolean`

***

### ok

> **ok**: `boolean`

Defined in: setup.ts:43

What the embed gate would decide for this key and origin. False when not reached.

***

### organizationId

> **organizationId**: `string` \| `null`

Defined in: setup.ts:44

***

### origin

> **origin**: `object`

Defined in: setup.ts:46

#### allowed

> **allowed**: `boolean`

#### value

> **value**: `string` \| `null`

#### via

> **via**: `"registered"` \| `"brand-domain"` \| `"platform"` \| `"test-key"` \| `null`

***

### protocol

> **protocol**: \{ `current`: `number`; `supported`: `number`[]; \} \| `null`

Defined in: setup.ts:56

***

### reached

> **reached**: `boolean`

Defined in: setup.ts:41

True when the edge answered with a whoami document.

***

### reason

> **reason**: [`WhoamiReason`](https://docs.sparkletree.io/developers/api/core/type-aliases/whoamireason.md) \| [`CheckSetupFailureReason`](https://docs.sparkletree.io/developers/api/core/type-aliases/checksetupfailurereason.md) \| `string` & `object` \| `null`

Defined in: setup.ts:52

Null when ok. An embed auth reason from the edge, or an SDK reason when not reached.

***

### remedy

> **remedy**: `string` \| `null`

Defined in: setup.ts:54

One sentence that fixes `reason`, when there is one.

***

### sdk

> **sdk**: \{ `vendored`: `string`; \} \| `null`

Defined in: setup.ts:57

***

### status?

> `optional` **status?**: `number`

Defined in: setup.ts:61

The HTTP status, when the edge answered.

***

### time

> **time**: `string` \| `null`

Defined in: setup.ts:59

The edge's clock, ISO 8601.
