How do I verify user through zerodev?

62 views Asked by At

I have integrated Zero Dev and web3auth sdk in my system. Now I want to verify users in the backend. So I tried to send web3auth.user.idtoken in the backend that verifies users but the wallet address it returns different from the one that I get in front end through zerodev signer. So I am inferring that zerodev's assigned address and web3auth assigned address are not same. So how do I now verify my user in the backend and recive the same address that zerodev provides.

I expecting to verify and register the users in backend.

1

There are 1 answers

0
DeadlyDuck On

zeroDev creates a new wallet, and it is unique so those 2 address would be seperate. By verify if you mean you want to check if the signature is correct and validate it then I suggest you use a nonce to sign it and then verify by decoding/verifying the nonce

*nonce is just a fancy name for a unique_id/value