Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.74 KB

validateAuthResponse.md

File metadata and controls

30 lines (20 loc) · 1.74 KB

Function: validateAuthResponse

💗 Help the project

validateAuthResponse(as, client, parameters, expectedState?): URLSearchParams | OAuth2Error

Validates an OAuth 2.0 Authorization Response or Authorization Error Response message returned from the authorization server's as.authorization_endpoint.

Parameters

Name 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

URLSearchParams | OAuth2Error

Validated Authorization Response parameters or Authorization Error Response.

See