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

Constructors

Properties

cause?: unknown
details?: Dict<unknown>
errorCode: string
mandatoryFields: OAuthErrorFields
message: string
name: string
stack?: string
statusCode: number
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void