Skip to Content
Packages@tuwaio/siwx-coreClassesSiwxIssuedAtStaleError

SiwxIssuedAtStaleError

Defined in: errors.ts:198 

Policy violation: the message issuedAt is older than the allowed maximum age. Code: SIWX_ISSUED_AT_STALE. Not thrown by SIWX itself; see SiwxPolicyViolationError.

Extends

Constructors

Constructor

new SiwxIssuedAtStaleError(issuedAt, maxAgeSeconds): SiwxIssuedAtStaleError

Defined in: errors.ts:203 

Parameters

issuedAt

string

The issuedAt found in the message.

maxAgeSeconds

number

The allowed maximum age, in seconds.

Returns

SiwxIssuedAtStaleError

Overrides

SiwxPolicyViolationError.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

SiwxPolicyViolationError.code


issuedAt

readonly issuedAt: string

Defined in: errors.ts:204 

The issuedAt found in the message.


maxAgeSeconds

readonly maxAgeSeconds: number

Defined in: errors.ts:205 

The allowed maximum age, in seconds.

Last updated on