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

x/oauth2_server/authorization_server.ts>AuthorizationCodeGrantInterface

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

Type Parameters

Client extends ClientInterface
User
Scope extends ScopeInterface

Methods

getClient(clientId: string): Promise<Client>
getChallengeMethod(challengeMethod?: string): ChallengeMethod | undefined
validateChallengeMethod(challengeMethod?: string): boolean
verifyCode(code: AuthorizationCode<Client, User, Scope>, verifier: string): Promise<boolean>