bytesbay / web3-token

Web3 Token is a new way to authenticate users in a hybrid dApps using signed messages. Implementation of EIP-4361.
380 stars 50 forks source link

Fix/expiration field #19

Closed AtelyPham closed 2 years ago

AtelyPham commented 2 years ago

Hello, I found that the Token expired error cannot throw because of the expiration field does not match in the sign and the verify function.

This PR update expiration-date field in the verify function to expiration-time to match the param object in the sign function.