Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid uncaught "SyntaxError: Unexpected token ͧ" error.
When .verify() a corrupted JWS (e.g.: malicious user add extra characters in the middle of token) an error is thrown: `` [ERROR] console - SyntaxError: Unexpected token ͧ at Object.parse (native) at Object.jwsDecode [as decode] (/www/socketio-jwt/node_modules/jsonwebtoken/node_modules/jws/lib/verify-stream.js:71:20) at Object.module.exports.verify (/www/socketio-jwt/node_modules/jsonwebtoken/index.js:120:26)` ``
- Loading branch information