Function: validateAuthResponse()
August 29, 2025 ยท View on GitHub
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.
โธ validateAuthResponse(as, client, parameters, expectedState?): URLSearchParams
Validates an OAuth 2.0 Authorization Response or Authorization Error Response message returned
from the authorization server's
as.authorization\_endpoint.
Parameters
| Parameter | Type | Description |
|---|---|---|
as | AuthorizationServer | Authorization Server Metadata. |
client | Client | Client Metadata. |
parameters | URLSearchParams | URL | Authorization response. |
expectedState? | string | typeof expectNoState | typeof skipStateCheck | Expected state parameter value. Default is expectNoState. |
Returns
Validated Authorization Response parameters. Authorization Error Responses throw AuthorizationResponseError.