This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk / Session

Session ​

Current session, derived from the access token. session.get() returns an Object.freezed object — the fields are readonly so the type reflects that immutability at compile time.

Properties ​

expiresAt? ​

readonly optional expiresAt?: number

Access token expiry in milliseconds since the epoch.


operatorId? ​

readonly optional operatorId?: string

Operator id (operator_id).


sessionId? ​

readonly optional sessionId?: string

Session id at the gateway (sid).


status ​

readonly status: SessionStatus

authenticated when there are tokens.


userId? ​

readonly optional userId?: string

User id (sub).