Function: authorizationCodeGrantRequest()

August 29, 2025 ยท View on GitHub

๐Ÿ’— Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


โ–ธ authorizationCodeGrantRequest(as, client, clientAuthentication, callbackParameters, redirectUri, codeVerifier, options?): Promise<Response>

Performs an Authorization Code grant request at the as.token\_endpoint.

Parameters

ParameterTypeDescription
asAuthorizationServerAuthorization Server Metadata.
clientClientClient Metadata.
clientAuthenticationClientAuthClient Authentication Method.
callbackParametersURLSearchParamsParameters obtained from the callback to redirect_uri, this is returned from validateAuthResponse, or validateJwtAuthResponse.
redirectUristringredirect_uri value used in the authorization request.
codeVerifierstring | typeof nopkcePKCE code_verifier to send to the token endpoint.
options?TokenEndpointRequestOptions-

Returns

Promise<Response>

Resolves with a Response to then invoke processAuthorizationCodeResponse with

See