Skip to main content

Class: OAuthError

Defined in: oauth.ts:102

Structured OAuth 2.x error with an RFC 6749 error code.

Extends

  • Error

Constructors

Constructor

new OAuthError(args): OAuthError

Defined in: oauth.ts:106

Parameters

ParameterTypeDescription
args{ code: "invalid_request" | "invalid_client" | "invalid_grant" | "unsupported_grant_type" | "access_denied" | "server_error"; description: string; }-
args.code"invalid_request" | "invalid_client" | "invalid_grant" | "unsupported_grant_type" | "access_denied" | "server_error"RFC 6749 error value.
args.descriptionstringHuman-readable error_description.

Returns

OAuthError

Overrides

Error.constructor

Properties

code

readonly code: "invalid_request" | "invalid_client" | "invalid_grant" | "unsupported_grant_type" | "access_denied" | "server_error"

Defined in: oauth.ts:104

RFC 6749 error code.