Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oauth2_server/authorization_server.ts>GenerateAuthorizationCodeOptions

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
interface GenerateAuthorizationCodeOptions
import { type GenerateAuthorizationCodeOptions } from "https://deno.land/x/oauth2_server@0.12.0/authorization_server.ts";

Type Parameters

Client extends ClientInterface
User
Scope extends ScopeInterface

Properties

client: Client

The client associated with the authorization code.

user: User

The user associated with the authorization code.

optional
scope: Scope

The scope granted to the authorization code.

optional
redirectUri: string | null

Redirect URI for the authorization code.

optional
challenge: string | null

The code challenge used for PKCE.

optional
challengeMethod: string | null

The code challenge method used for PKCE.