Class ErrorResponse

Error class thrown in case of an authentication error.

Hierarchy

  • Error
    • ErrorResponse

Constructors

  • Parameters

    • args: {
          error?: null | string;
          error_description?: null | string;
          error_uri?: null | string;
          session_state?: null | string;
          url_state?: string;
          userState?: unknown;
      }
      • Optionalerror?: null | string
      • Optionalerror_description?: null | string
      • Optionalerror_uri?: null | string
      • Optionalsession_state?: null | string
      • Optionalurl_state?: string
      • OptionaluserState?: unknown
    • Optionalform: URLSearchParams

      The x-www-form-urlencoded request body sent to the authority server

    Returns ErrorResponse

Properties

error: null | string

An error code string that can be used to classify the types of errors that occur and to respond to errors.

error_description: null | string

additional information that can help a developer identify the cause of the error.

error_uri: null | string

URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.

form?: URLSearchParams

The x-www-form-urlencoded request body sent to the authority server

message: string
name: string = "ErrorResponse"

Marker to detect class: "ErrorResponse"

session_state: null | string
stack?: string
state?: unknown

custom state data set during the initial signin request

url_state?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void