Documents for @litert/jwt / Errors / EErrorCode
Enumeration: EErrorCode
Defined in: src/lib/Errors.ts:107
The error codes used in JWT module.
Enumeration Members
DUP_VALIDATOR_NAME
DUP_VALIDATOR_NAME:
"dup_validator_name"
Defined in: src/lib/Errors.ts:182
A validator with duplicated name is added to the verifier.
EMPTY_VALIDATOR_LIST
EMPTY_VALIDATOR_LIST:
"empty_validator_list"
Defined in: src/lib/Errors.ts:192
The validator list provided is empty.
EXPIRED
EXPIRED:
"expired"
Defined in: src/lib/Errors.ts:167
The token is already expired.
INVALID_FORMAT
INVALID_FORMAT:
"invalid_format"
Defined in: src/lib/Errors.ts:112
The input is not a valid JWT string.
INVALID_JWT_CONTENT
INVALID_JWT_CONTENT:
"invalid_jwt_content"
Defined in: src/lib/Errors.ts:197
The signing content is invalid (JSON).
INVALID_KEY_FORMAT
INVALID_KEY_FORMAT:
"invalid_key_format"
Defined in: src/lib/Errors.ts:127
The provided key is invalid about format, can not be used here.
INVALID_KEY_USAGE
INVALID_KEY_USAGE:
"invalid_key_usage"
Defined in: src/lib/Errors.ts:142
Misused private key as public key or vice versa.
INVALID_KEY_WEAK
INVALID_KEY_WEAK:
"invalid_key_weak"
Defined in: src/lib/Errors.ts:137
The size of the provided key is insufficient for secure operation.
INVALID_PAYLOAD_CLAIM
INVALID_PAYLOAD_CLAIM:
"invalid_payload_claim"
Defined in: src/lib/Errors.ts:177
A payload claim has an invalid value.
INVALID_TYP_HEADER
INVALID_TYP_HEADER:
"invalid_typ_header"
Defined in: src/lib/Errors.ts:117
The "typ" header claim is invalid.
KEY_ALGO_MISMATCHED
KEY_ALGO_MISMATCHED:
"invalid_key_algo"
Defined in: src/lib/Errors.ts:132
The provided key is invalid about algorithm, can not be used here.
MISSING_PAYLOAD_CLAIM
MISSING_PAYLOAD_CLAIM:
"missing_payload_claim"
Defined in: src/lib/Errors.ts:172
A required claim is missing in the payload.
NOT_VALID_YET
NOT_VALID_YET:
"not_valid_yet"
Defined in: src/lib/Errors.ts:162
The token is use before its valid time.
SIGN_FAILED
SIGN_FAILED:
"sign_failed"
Defined in: src/lib/Errors.ts:152
Unknown error occurred during signing.
SIGNATURE_ALG_MISMATCH
SIGNATURE_ALG_MISMATCH:
"signature_alg_mismatch"
Defined in: src/lib/Errors.ts:157
The signature algorithm does not match the algorithm indicated in the JWT header.
SIGNATURE_VERIFY_FAILED
SIGNATURE_VERIFY_FAILED:
"signature_verify_failed"
Defined in: src/lib/Errors.ts:147
Failed to verify the signature.
UNKNOWN_DIGEST_TYPE
UNKNOWN_DIGEST_TYPE:
"unknown_digest_type"
Defined in: src/lib/Errors.ts:122
The specified digest type is not supported.
UNKNOWN_ERROR
UNKNOWN_ERROR:
"unknown_error"
Defined in: src/lib/Errors.ts:187
Unexpected error occurred inside the library.