Class: AuthorizationResponseError
March 19, 2026 Ā· 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.
Thrown when OAuth 2.0 Authorization Error Response is encountered.
Example
HTTP/1.1 302 Found
Location: https://client.example.com/cb?error=access_denied&state=xyz
Properties
cause
⢠cause: URLSearchParams
Authorization Response parameters as URLSearchParams
code
⢠code: "OAUTH_AUTHORIZATION_RESPONSE_ERROR"
error
⢠error: string
Error code given in the Authorization Response
error_description?
⢠optional error_description?: string
Human-readable text providing additional information, used to assist the developer in understanding the error that occurred, given in the Authorization Response