When logging in with MetaMask, the dApp might be switching to the MetaMask provider, which could bypass Web3Auth’s account/address logic.
Solution:
Ensure you are retrieving the address from the correct provider after MetaMask login.
If using Wagmi, check how your provider is set after MetaMask login. You may need to call getAccount() from Wagmi or provider.listAccounts() from ethers.js.
Next Steps:
Please reply with your version numbers, any relevant code snippets, and/or console logs after MetaMask login. This will help us pinpoint the issue and suggest a precise fix!
Thanks for your patience and clear reporting!
Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.
Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. Web3Auth Developer Office Hours