Function: validateJwtAuthResponse()

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.


โ–ธ validateJwtAuthResponse(as, client, parameters, expectedState?, options?): Promise<URLSearchParams>

Same as validateAuthResponse but for signed JARM responses.

Parameters

ParameterTypeDescription
asAuthorizationServerAuthorization Server Metadata.
clientClientClient Metadata.
parametersURLSearchParams | URLJARM authorization response.
expectedState?string | typeof expectNoState | typeof skipStateCheckExpected state parameter value. Default is expectNoState.
options?ValidateSignatureOptions & JWEDecryptOptions-

Returns

Promise<URLSearchParams>

Validated Authorization Response parameters. Authorization Error Responses are rejected using AuthorizationResponseError.

See

JWT Secured Authorization Response Mode for OAuth 2.0 (JARM)