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

OAuth2ClientConfig

import type { OAuth2ClientConfig } from "https://raw.githubusercontent.com/cmd-johnson/deno-oauth2-client/master/mod.ts";
interface OAuth2ClientConfig {
authorizationEndpointUri: string;
clientId: string;
clientSecret?: string;
defaults?: {
requestOptions?: Omit<RequestOptions, "method">;
scope?: string | string[];
stateValidator?: (state: string | null) => Promise<boolean> | boolean;
}
;
redirectUri?: string;
tokenUri: string;
}

§Properties

§
authorizationEndpointUri: string
[src]

The URI of the authorization server's authorization endpoint.

§
clientId: string
[src]

The client ID provided by the authorization server.

§
clientSecret?: string
[src]

The client secret provided by the authorization server, if using a confidential client.

§
defaults?: {
requestOptions?: Omit<RequestOptions, "method">;
scope?: string | string[];
stateValidator?: (state: string | null) => Promise<boolean> | boolean;
}
[src]
§
redirectUri?: string
[src]

The URI of the client's redirection endpoint (sometimes also called callback URI).

§
tokenUri: string
[src]

The URI of the authorization server's token endpoint.