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

x/oauth2_server/asserts.ts>assertAuthorizationCode

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

Type Parameters

Client extends ClientInterface
User
Scope extends ScopeInterface

Parameters

actual: unknown
expected: Partial<AuthorizationCode<Client, User, Scope>> | null | undefined