Skip to main content
Module

x/oauth4webapi/mod.ts>authorizationCodeGrantRequest

OAuth 2 / OpenID Connect for Web Platform API JavaScript runtimes
Go to Latest
function authorizationCodeGrantRequest
import { authorizationCodeGrantRequest } from "https://deno.land/x/oauth4webapi@v2.3.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.