Skip to Content
Packages@tuwaio/siwx-coreClassesSiwxExpiredSessionError

SiwxExpiredSessionError

Defined in: errors.ts:79 

Signals that the message expirationTime has passed. Code: SIWX_EXPIRED_SESSION.

Not thrown by SIWX itself: expired messages are reported by validateMessage and returned as error by the verifiers. Provided for applications that want to throw a typed error from their own checks.

Extends

Constructors

Constructor

new SiwxExpiredSessionError(expirationTime): SiwxExpiredSessionError

Defined in: errors.ts:83 

Parameters

expirationTime

string

The ISO 8601 timestamp when the session expired.

Returns

SiwxExpiredSessionError

Overrides

SiwxError.constructor

Properties

code

readonly code: string = 'SIWX_ERROR'

Defined in: errors.ts:18 

Machine-readable error code, for example SIWX_PARSE_ERROR. Each subclass passes its own code; SIWX_ERROR is used only by the base class.

Inherited from

SiwxError.code


expirationTime

readonly expirationTime: string

Defined in: errors.ts:83 

The ISO 8601 timestamp when the session expired.

Last updated on