bytesbay / web3-token

Web3 Token is a new way to authenticate users in a hybrid dApps using signed messages. Implementation of EIP-4361.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to retrieve nonce in the token verification

riowelfaleno opened this issue · comments

commented

Hi, I've put in the nonce and request_id during the Web3Token.sign, but the nonce and the request_id was not returned during Web3Token.verify. Any ideas on how to solve this?

@xymontana Hey let me check

Fixed in 57a09e1. Thanks alot for the report. Just update the package to 1.0.4.

commented

thank you!

commented

Fixed in 57a09e1. Thanks alot for the report. Just update the package to 1.0.4.

Hi I see that you've fixed the request-id. But regarding the nonce, shouldn't it be like this:

   if (params.nonce) {
        body.nonce = params.nonce;
    }