Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oauth2_client/src/implicit_grant.ts>GetTokenOptions

Minimalistic OAuth 2.0 client for Deno.
Go to Latest
interface GetTokenOptions
import { type GetTokenOptions } from "https://deno.land/x/oauth2_client@v0.3.0/src/implicit_grant.ts";

Properties

optional
state: string

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.

optional
stateValidator: (state: string | null) => boolean

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.

optional
requestOptions: RequestOptions

Request options used when making the access token request.