Class: TokenError
Hierarchy​
Error
↳
TokenError
Indexable​
â–ª [key: string
]: any
Properties​
name​
• name: string
Inherited from​
Error.name
message​
• message: string
Inherited from​
Error.message
stack​
• Optional
stack: string
Inherited from​
Error.stack
prepareStackTrace​
â–ª Static
Optional
prepareStackTrace: (err
: Error
, stackTraces
: CallSite
[]) => any
Type declaration​
â–¸ (err
, stackTraces
): any
Optional override for formatting stack traces
see
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Parameters​
Name | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
Returns​
any
Inherited from​
Error.prepareStackTrace
stackTraceLimit​
â–ª Static
stackTraceLimit: number
Inherited from​
Error.stackTraceLimit
codes​
â–ª Static
codes: Object
Type declaration​
Name | Type |
---|---|
invalidType | "FAST_JWT_INVALID_TYPE" |
invalidOption | "FAST_JWT_INVALID_OPTION" |
invalidAlgorithm | "FAST_JWT_INVALID_ALGORITHM" |
invalidClaimType | "FAST_JWT_INVALID_CLAIM_TYPE" |
invalidClaimValue | "FAST_JWT_INVALID_CLAIM_VALUE" |
invalidKey | "FAST_JWT_INVALID_KEY" |
invalidSignature | "FAST_JWT_INVALID_SIGNATURE" |
invalidPayload | "FAST_JWT_INVALID_PAYLOAD" |
malformed | "FAST_JWT_MALFORMED" |
inactive | "FAST_JWT_INACTIVE" |
expired | "FAST_JWT_EXPIRED" |
missingKey | "FAST_JWT_MISSING_KEY" |
keyFetchingError | "FAST_JWT_KEY_FETCHING_ERROR" |
signError | "FAST_JWT_SIGN_ERROR" |
verifyError | "FAST_JWT_VERIFY_ERROR" |
code​
• code: string
Methods​
captureStackTrace​
â–¸ Static
captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
Parameters​
Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
Returns​
void
Inherited from​
Error.captureStackTrace
wrap​
â–¸ Static
wrap(originalError
, code
, message
): TokenError
Parameters​
Name | Type |
---|---|
originalError | Error |
code | string |
message | string |
Returns​
Constructors​
constructor​
• new TokenError(message?
)
Parameters​
Name | Type |
---|---|
message? | string |
Inherited from​
Error.constructor