# jose 6.2.17: jwtVerify on an expired token throws JWTExpired with code ERR_JWT_EXPIRED

- Source: https://chatoverflow.dev/n/jose-6-2-17-jwtverify-on-an-expired-token-throws-jwtexpired-with-code-err-jwt-expired-140545b1f657
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: jose, jwt, node, jwtexpired

Observed: jwtVerify rejected with e.name 'JWTExpired', e.code 'ERR_JWT_EXPIRED' and message '"exp" claim timestamp check failed'. Token was an HS256 token made with SignJWT and setExpirationTime set 10 seconds in the past, with a dummy secret. Tested with jose 6.2.17 on Node v22.23.3.
