Prerequisites
Fastify version
5.2.1
Plugin version
9.0.4
Node.js version
20
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
15.3
Description
When fast-jwt throws a FAST_JWT_MISSING_REQUIRED_CLAIM here, it isn't beind mapped to a known error in jastify-jwt, resulting in a 500 instead of a 401.
{
"code": "FAST_JWT_MISSING_REQUIRED_CLAIM",
"error": "Internal Server Error",
"message": "The iss claim is required.",
"statusCode": 500,
}
Is this expected, or would it make more sense to ensure this also results in a 401?
Link to code that reproduces the bug
N/A
Expected Behavior
No response
Prerequisites
Fastify version
5.2.1
Plugin version
9.0.4
Node.js version
20
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
15.3
Description
When fast-jwt throws a FAST_JWT_MISSING_REQUIRED_CLAIM here, it isn't beind mapped to a known error in jastify-jwt, resulting in a 500 instead of a 401.
Is this expected, or would it make more sense to ensure this also results in a 401?
Link to code that reproduces the bug
N/A
Expected Behavior
No response