Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AuthorizationCodeTokenOptions

import type { AuthorizationCodeTokenOptions } from "https://raw.githubusercontent.com/cmd-johnson/deno-oauth2-client/master/mod.ts";
interface AuthorizationCodeTokenOptions {
codeVerifier?: string;
requestOptions?: RequestOptions;
state?: string;
stateValidator?: (state: string | null) => Promise<boolean> | boolean;
}

§Properties

§
codeVerifier?: string
[src]

When using PKCE, the code verifier that you got by calling getAuthorizationUri

§
requestOptions?: RequestOptions
[src]

Request options used when making the access token request.

§
state?: string
[src]

The state parameter expected to be returned by the authorization response.

Usually you'd store the state you sent with the authorization request in the user's session so you can pass it here. If it could be one of many states or you want to run some custom verification logic, use the stateValidator parameter instead.

§
stateValidator?: (state: string | null) => Promise<boolean> | boolean
[src]

The state validator used to verify that the received state is valid.

The option object's state value is ignored when a stateValidator is passed.