Skip to content

Taxum / @taxum/jwt / UnauthorizedError

Class: UnauthorizedError

Defined in: jwt/src/index.ts:175

Error thrown when the JWT is missing or invalid.

Extends

Constructors

Constructor

new UnauthorizedError(reason, expose): UnauthorizedError

Defined in: jwt/src/index.ts:178

Parameters

reason

string

expose

boolean

Returns

UnauthorizedError

Overrides

ClientError.constructor

Properties

debugReason

readonly debugReason: string

Defined in: jwt/src/index.ts:176


message

readonly message: string

Defined in: core/src/util/client-error.ts:21

Inherited from

ClientError.message


status

readonly status: StatusCode

Defined in: core/src/util/client-error.ts:20

Inherited from

ClientError.status

Accessors

name

Get Signature

get name(): string

Defined in: core/src/util/client-error.ts:28

Returns

string

Inherited from

ClientError.name

Methods

[TO_HTTP_RESPONSE]()

[TO_HTTP_RESPONSE](): HttpResponse

Defined in: core/src/util/client-error.ts:32

Returns

HttpResponse

Inherited from

ClientError.[TO_HTTP_RESPONSE]