Package version:

Interface AccessToken

Represents an access token with an expiration time.

interface AccessToken {
    expiresOnTimestamp: number;
    refreshAfterTimestamp?: number;
    token: string;
    tokenType?: "Bearer" | "pop";
}

Properties

expiresOnTimestamp: number

The access token's expiration timestamp in milliseconds, UNIX epoch time.

refreshAfterTimestamp?: number

The timestamp when the access token should be refreshed, in milliseconds, UNIX epoch time.

token: string

The access token returned by the authentication service.

tokenType?: "Bearer" | "pop"

Type of token - Bearer or pop