Skip to content

WhoamiResult

Defined in: setup.ts:39

enforcement: "off" | "log" | "required" | null

Defined in: setup.ts:55


key: object

Defined in: setup.ts:45

env: "live" | "test" | null

present: boolean

valid: boolean


ok: boolean

Defined in: setup.ts:43

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


organizationId: string | null

Defined in: setup.ts:44


origin: object

Defined in: setup.ts:46

allowed: boolean

value: string | null

via: "registered" | "brand-domain" | "platform" | "test-key" | null


protocol: { current: number; supported: number[]; } | null

Defined in: setup.ts:56


reached: boolean

Defined in: setup.ts:41

True when the edge answered with a whoami document.


reason: WhoamiReason | CheckSetupFailureReason | 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: string | null

Defined in: setup.ts:54

One sentence that fixes reason, when there is one.


sdk: { vendored: string; } | null

Defined in: setup.ts:57


optional status?: number

Defined in: setup.ts:61

The HTTP status, when the edge answered.


time: string | null

Defined in: setup.ts:59

The edge’s clock, ISO 8601.