Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 2.53 KB

File metadata and controls

38 lines (26 loc) · 2.53 KB

Function: authorizationCodeGrantRequest()

💗 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

Parameter Type Description
as AuthorizationServer 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 | typeof nopkce PKCE code_verifier to send to the token endpoint.
options? TokenEndpointRequestOptions -

Returns

Promise<Response>

Resolves with a Response to then invoke processAuthorizationCodeResponse with

See