An OAuth2 error will come from the authorization server and will have at least an error property which will be the error code. And possibly an error_description property

See: https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.3.1.2.6

Hierarchy

  • Error
    • OAuthError

Constructors

  • Parameters

    • error: string
    • Optional error_description: string

    Returns OAuthError

Properties

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

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void