Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oauth2_server/models/token.ts>AccessToken

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
interface AccessToken
import { type AccessToken } from "https://deno.land/x/oauth2_server@0.12.0/models/token.ts";

Type Parameters

Client extends ClientInterface
User
Scope extends ScopeInterface

Properties

accessToken: string

The access token.

optional
accessTokenExpiresAt: Date | null

The expiration time for the access token.

client: Client

The client associated with the token.

user: User

The user associated with the token.

optional
scope: Scope | null

The scope granted to the token.

optional
code: string | null

The authorization code used to issue the token.