Skip to main content

@authgear/capacitor / OAuthError

Class: OAuthError

OAuthError represents the oauth error response. https://tools.ietf.org/html/rfc6749#section-4.1.2.1

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new OAuthError(«destructured»): OAuthError

Parameters

NameType
«destructured»Object
› errorstring
› error_description?string
› error_uri?string
› state?string

Returns

OAuthError

Overrides

AuthgearError.constructor

Defined in

packages/authgear-capacitor/index.d.ts:122

Properties

error

error: string

Defined in

packages/authgear-capacitor/index.d.ts:119


error_description

Optional error_description: string

Defined in

packages/authgear-capacitor/index.d.ts:120


error_uri

Optional error_uri: string

Defined in

packages/authgear-capacitor/index.d.ts:121


state

Optional state: string

Defined in

packages/authgear-capacitor/index.d.ts:118


underlyingError

Optional underlyingError: unknown

underlyingError is the underlying error. The type is unknown because it is possible to throw anything in JavaScript. Use ordinary approaches, such as instanceof operator, to identify what it is.

Inherited from

AuthgearError.underlyingError

Defined in

packages/authgear-capacitor/index.d.ts:14