SessionStatus
SessionStatus = {
expiresAtMs:number;principal:Principal;state:"signed-in"; } | {expiresAtMs:number;principal:Principal;state:"signed-in-elsewhere"; } | {expiresAtMs:number;principal:Principal;state:"expired"; } | {state:"signed-out"; }
Defined in: src/client/auth-client.ts:296
Who is signed in for this origin, and until when.
principal and expiresAtMs are present in every case where a record
exists, so an application can name the account and count down to the end of a
sign-in without reading the store itself.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ expiresAtMs: number; principal: Principal; state: "signed-in"; }
Type Literal
Section titled “Type Literal”{ expiresAtMs: number; principal: Principal; state: "signed-in-elsewhere"; }
Someone is signed in on this domain, but this origin holds no credential for them, so it cannot act yet. Acquire one silently, or ask the user.
Type Literal
Section titled “Type Literal”{ expiresAtMs: number; principal: Principal; state: "expired"; }
Type Literal
Section titled “Type Literal”{ state: "signed-out"; }