Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oauth4webapi/mod.ts>authorizationCodeGrantRequest

Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
Latest
function authorizationCodeGrantRequest
import { authorizationCodeGrantRequest } from "https://deno.land/x/oauth4webapi@v3.1.2/mod.ts";

Performs an Authorization Code grant request at the AuthorizationServer.token_endpoint | as.token_endpoint.

Parameters

Authorization Server Metadata.

client: Client

Client Metadata.

clientAuthentication: ClientAuth

Client Authentication Method.

callbackParameters: URLSearchParams

Parameters obtained from the callback to redirect_uri, this is returned from validateAuthResponse, or validateJwtAuthResponse.

redirectUri: string

redirect_uri value used in the authorization request.

codeVerifier: string

PKCE code_verifier to send to the token endpoint.