Represents on OAuth error that is being thrown. OAuth error responses have additional fields that need to be present in the JSON response, as described in RFC 6749, ยง4.1.2.1.

Hierarchy (view full)

Constructors

Properties

cause?: unknown
errorCode: string
mandatoryFields: OAuthErrorFields
message: string
name: string
stack?: string
statusCode: number
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