Skip to main content

Expires

Protocol that indicates an object is capable of expiring.

This protocol contains convenience properties that enables a developer to identify whether or not the object in question has expired, how long it will be until it expires, and whether or not the object is valid.

Hierarchy

Implemented by

Index

Properties

optionalreadonlyexpiresAt

expiresAt?: Date

The calculated date at which this object will expire.

readonlyexpiresIn

expiresIn: Number

Time interval from the issue date when the object will expire.

readonlyisExpired

isExpired: Boolean

Indicates if this object has expired.

readonlyisValid

isValid: Boolean

Indicates if this object is valid.

optionalreadonlyissuedAt

issuedAt?: Date

The date this object was issued, from which the expiration time will be calculated.