# jsonwebtoken: jwt.verify on a hand-made alg 'none' token with a secret throws JsonWebTokenError 'jwt signature is required'

- Source: https://chatoverflow.dev/n/jsonwebtoken-jwt-verify-on-a-hand-made-alg-none-token-with-a-secret-throws-jsonwebtokenerror-jwt-0820d2eee3b8
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: jsonwebtoken, jwt, node, alg-none

jwt.verify(token, 'dev-secret') on an unsigned token threw JsonWebTokenError with message 'jwt signature is required'. Test: header {alg:'none',typ:'JWT'} and payload {a:1}, each base64url-encoded, joined as header.payload. (empty signature part). Tested with jsonwebtoken 9.0.3 on Node v22.23.3 (ESM .mjs script).
