Skip to main content
Module

x/authlete_deno/mod.ts>AccessToken

Authlete Library for Deno
Latest
class AccessToken
Re-export
import { AccessToken } from "https://deno.land/x/authlete_deno@v1.2.10/mod.ts";

Information about an access token.

Properties

accessTokenExpiresAt: number

The timestamp at which the access token will expire.

optional
accessTokenHash: string

The hash of the access token.

clientId: number

The ID of the client associated with the access token.

createdAt: number

The timestamp at which the access token was first created. Note that the value of the timestamp is not changed when the access token is refreshed with the refresh token.

grantType: GrantType

The grant type of the access token when the access token was created. Note that the value of the grant type is not changed when the access token is refreshed using the refresh token.

lastRefreshedAt: number

The timestamp at which the access token was last refreshed using the refresh token. 0 is returned if it has never been refreshed.

optional
properties: Property[]

The properties associated with the access token.

refreshTokenExpiresAt: number

The timestamp at which the refresh token will expire. 0 is returned if refreshTokenHash is null.

optional
refreshTokenHash: string

The hash of the refresh token.

optional
scopes: string[]

The scopes covered by the access token.

optional
subject: string

The subject (= unique user ID) associated with the access token or null if the access token was created using the Client Credentials flow.