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;
      }
      • Optional error?: null | string
      • Optional error_description?: null | string
      • Optional error_uri?: null | string
      • Optional session_state?: null | string
      • Optional url_state?: string
      • Optional userState?: unknown
    • Optional form: 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, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc