Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oauth4webapi/mod.ts>AuthorizationResponseError

Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
Latest
class AuthorizationResponseError
extends Error
import { AuthorizationResponseError } from "https://deno.land/x/oauth4webapi@v3.1.2/mod.ts";

Thrown when OAuth 2.0 Authorization Error Response is encountered.

Examples

Example 1

HTTP/1.1 302 Found
Location: https://client.example.com/cb?error=access_denied&state=xyz

Properties

Authorization Response parameters as !URLSearchParams

code: AUTHORIZATION_RESPONSE_ERROR
error: string

Error code given in the Authorization Response

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