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

x/oauth2_server/services/test_services.ts>AuthorizationCodeService

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
class AuthorizationCodeService
import { AuthorizationCodeService } from "https://deno.land/x/oauth2_server@0.12.0/services/test_services.ts";

Constructors

new
AuthorizationCodeService(options?: { client: Client; })

Methods

get(code: string): Promise<AuthorizationCode<Client, User, Scope> | undefined>

Retrieves an existing authorization code.

revoke(_authorizationCode: AuthorizationCode<Client, User, Scope>): Promise<boolean>

Revokes an authorization code.

Saves an authorization code.