Class: GNAPError

GNAPError(opts)

The authorization server answered with a GNAP error response (RFC 9635 section 3.6): { "error": { "code", "description" } }, or the bare-string form { "error": "code" }. error is the GNAP error code (user_denied, invalid_client, too_fast, ...).

Constructor

new GNAPError(opts)

Parameters:
Name Type Description
opts Object

(TypeScript: { error: string, error_description?: string, status?: number, response?: unknown, continue?: Record<string, any> })

Source:

Classes

GNAPError

Members

continue

The continue object an error response may carry (section 3.6), when the grant can go on.

Source:

error

The GNAP error code. @type {string}

Source:

error_description :string|undefined

Type:
  • string | undefined
Source: