This topic was originally posted by alex3 on 10/29/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.
We are using web3auth-auth0-twitter-sapphire verifier with twitter user ID as VerifierID and let users login only with twitter. Recently I noticed that I have 2 records in the database with the same twitter ID but different addresses. I am using example from here to get the user address -Social Login Users | Documentation | Web3Auth. The only way I think this can happen, is if the wallets array has multiple entities, because we take the item at index zero. If it is true, how can should I handle this and what wallet to use?
This is the code on the frontend that is executed after redirect from the web3auth. Can it be because 235519 curve instead of default secp256k1? The main issue that it happened to 4 users out of thousands.
const userInfo = await web3auth.authenticateUser()
if (!userInfo.idToken) throw new Error('User info not found!')
I checked the ID token that user sends on the backend and it has only one public key, not 2. But it is different public key. Can you please check on your side if it is possible to generate different public key. The backend was running untouched all this time, so no changes in auth flow happened.
Can also provide the JWT token from your side if it can help, the only difference inside is the different wallet for same data. Can send it over email.
Same problem here, I’m running with twitter and auth0, library @web3auth/no-modal@7.0.1
web3auth giving me 2 different public key, just logging in and out and then I have a different public key/wallet address
I’m using through ZeroDev, but please don’t tell me to ask them. It’s web3auth instance giving me 2 different public key (decoded from JWT, from web3Auth.getUserInfo() ).
The point here is only my account has a problem, not others.
The code is unchanged, the libraries are unchanged, the twitter account is unchanged, but web3auth gave me different public key just by logging in and out.
So I think it’s on the servers, load balancers, …
@thanks.tet173 Please navigate to the left hand side Menu . Scroll down to find Messages > Inbox > New Message and send me a DM to share your Dapp URL privately. Please also share your implementation code including Web3Auth login, Initialization code as well.