Function: processAuthorizationCodeResponse()

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.


โ–ธ processAuthorizationCodeResponse(as, client, response, options?): Promise<TokenEndpointResponse>

Validates Authorization Code Grant Response instance to be one coming from the as.token\_endpoint.

Parameters

ParameterTypeDescription
asAuthorizationServerAuthorization Server Metadata.
clientClientClient Metadata.
responseResponseResolved value from authorizationCodeGrantRequest.
options?ProcessAuthorizationCodeResponseOptions-

Returns

Promise<TokenEndpointResponse>

Resolves with an object representing the parsed successful response. OAuth 2.0 protocol style errors are rejected using ResponseBodyError. WWW-Authenticate HTTP Header challenges are rejected with WWWAuthenticateChallengeError.

See