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

x/oauth4webapi/mod.ts>authorizationCodeGrantRequest

OAuth 2 / OpenID Connect for JavaScript Runtimes
Go to Latest
function authorizationCodeGrantRequest
import { authorizationCodeGrantRequest } from "https://deno.land/x/oauth4webapi@v2.8.0/mod.ts";

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

Parameters

Authorization Server Metadata.

client: Client

Client Metadata.

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.