A generic error that conforms [rfc6749] OAuth2 error.

see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2

Hierarchy

  • Error
    • OAuth2Error

Constructors

  • Parameters

    • error: string
    • error_description: string

    Returns OAuth2Error

Properties

error: string
error_description: string
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • Parameters

    • __namedParameters: {
          error: string;
          error_description: string;
      }
      • error: string
      • error_description: string

    Returns OAuth2Error