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?
readonlyoptionalexpiresAt?:number
Access token expiry in milliseconds since the epoch.
operatorId?
readonlyoptionaloperatorId?:string
Operator id (operator_id).
sessionId?
readonlyoptionalsessionId?:string
Session id at the gateway (sid).
status
readonlystatus:SessionStatus
authenticated when there are tokens.
userId?
readonlyoptionaluserId?:string
User id (sub).