mirror of
https://github.com/danbulant/jose
synced 2026-05-21 21:39:04 +00:00
51 lines
1.1 KiB
Markdown
51 lines
1.1 KiB
Markdown
# Class: JWTInvalid
|
|
|
|
[util/errors](../modules/util_errors.md).JWTInvalid
|
|
|
|
An error subclass thrown when a JWT is invalid.
|
|
|
|
## Hierarchy
|
|
|
|
* [*JOSEError*](util_errors.joseerror.md)
|
|
|
|
↳ **JWTInvalid**
|
|
|
|
## Table of contents
|
|
|
|
### Constructors
|
|
|
|
- [constructor](util_errors.jwtinvalid.md#constructor)
|
|
|
|
### Properties
|
|
|
|
- [code](util_errors.jwtinvalid.md#code)
|
|
|
|
## Constructors
|
|
|
|
### constructor
|
|
|
|
\+ **new JWTInvalid**(`message?`: *string*): [*JWTInvalid*](util_errors.jwtinvalid.md)
|
|
|
|
#### Parameters:
|
|
|
|
Name | Type |
|
|
:------ | :------ |
|
|
`message?` | *string* |
|
|
|
|
**Returns:** [*JWTInvalid*](util_errors.jwtinvalid.md)
|
|
|
|
Inherited from: [JOSEError](util_errors.joseerror.md)
|
|
|
|
Defined in: [util/errors.ts:11](https://github.com/panva/jose/blob/v3.9.0/src/util/errors.ts#L11)
|
|
|
|
## Properties
|
|
|
|
### code
|
|
|
|
• **code**: *string*= 'ERR\_JWT\_INVALID'
|
|
|
|
A unique error code for the particular error subclass.
|
|
|
|
Overrides: [JOSEError](util_errors.joseerror.md).[code](util_errors.joseerror.md#code)
|
|
|
|
Defined in: [util/errors.ts:87](https://github.com/panva/jose/blob/v3.9.0/src/util/errors.ts#L87)
|