Skip to main content

AccessToken

An access token together with the moment it stops being valid.

The expiry travels with the token so that whoever holds a copy — a service worker, say — can tell on its own when the copy needs replacing, rather than finding out from a 401.

Index

Properties

Properties

readonlyexpiresAt

expiresAt: number

When the token expires, in milliseconds since the epoch (comparable with Date.now()).

readonlyvalue

value: string

The bearer token itself, without the Bearer prefix.

Page Options