Closed AtelyPham closed 2 years ago
That's because of a body parser. But agree that it's not good
But it didn't work for the expired token, the error line below cannot reach.
https://github.com/bytesbay/web3-token/blob/main/src/lib/verify/verify.js#L80
The
expiration
fields in thesign
function isexpiration-time
, but in theverify
function, you are checking theexpiration-date
field.Link code:
sign
functionverify
function