Skip to main content
Module

x/deno_kv_oauth/dev_deps.ts>Tokens

High-level OAuth 2.0 powered by Deno KV.
Go to Latest
interface Tokens
import { type Tokens } from "https://deno.land/x/deno_kv_oauth@v0.7.0/dev_deps.ts";

Tokens and associated information received from a successful access token request.

Properties

accessToken: string
tokenType: string

The type of access token received.

See https://tools.ietf.org/html/rfc6749#section-7.1 Should usually be "Bearer" for most OAuth 2.0 servers, but don't count on it.

optional
expiresIn: number

The lifetime in seconds of the access token.

optional
refreshToken: string

The optional refresh token returned by the authorization server.

Consult your OAuth 2.0 Provider's documentation to see under which circumstances you'll receive one.

optional
scope: string[]

The scopes that were granted by the user.

May be undefined if the granted scopes match the requested scopes. See https://tools.ietf.org/html/rfc6749#section-5.1