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
| Parameter | Type | Description |
|---|---|---|
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.description | string | Human-readable error_description. |
Returns
OAuthError
Overrides
Error.constructor
Properties
code
readonlycode:"invalid_request"|"invalid_client"|"invalid_grant"|"unsupported_grant_type"|"access_denied"|"server_error"
Defined in: oauth.ts:104
RFC 6749 error code.