Tokens
import type { Tokens } from "https://raw.githubusercontent.com/cmd-johnson/deno-oauth2-client/master/mod.ts";
Tokens and associated information received from a successful access token request.
interface Tokens {
accessToken: string;
expiresIn?: number;
refreshToken?: string;
scope?: string[];
tokenType: string;
}§Properties
§
refreshToken?: string
[src]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.
§
scope?: string[]
[src]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
§
tokenType: string
[src]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.