WhoamiResult
Defined in: setup.ts:39
Properties
Section titled “Properties”enforcement
Section titled “enforcement”enforcement:
"off"|"log"|"required"|null
Defined in: setup.ts:55
key:
object
Defined in: setup.ts:45
env:
"live"|"test"|null
present
Section titled “present”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
Section titled “organizationId”organizationId:
string|null
Defined in: setup.ts:44
origin
Section titled “origin”origin:
object
Defined in: setup.ts:46
allowed
Section titled “allowed”allowed:
boolean
value:
string|null
via:
"registered"|"brand-domain"|"platform"|"test-key"|null
protocol
Section titled “protocol”protocol: {
current:number;supported:number[]; } |null
Defined in: setup.ts:56
reached
Section titled “reached”reached:
boolean
Defined in: setup.ts:41
True when the edge answered with a whoami document.
reason
Section titled “reason”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
Section titled “remedy”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
status?
Section titled “status?”
optionalstatus?: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.