Skip to content

fix: show WalletConnect instead of MetaMask on mobile MetaMask browser for non-FULL sign-in modes#342

Open
braianj wants to merge 2 commits intomainfrom
fix/wallet-connect-mobile-metamask-browser
Open

fix: show WalletConnect instead of MetaMask on mobile MetaMask browser for non-FULL sign-in modes#342
braianj wants to merge 2 commits intomainfrom
fix/wallet-connect-mobile-metamask-browser

Conversation

@braianj
Copy link
Contributor

@braianj braianj commented Mar 10, 2026

  • On mobile MetaMask browser, when sign-in mode is ONE or TWO, the login page incorrectly showed MetaMask as the wallet option
  • Since mobile connections should use WalletConnect, the hook now detects the MetaMask in-app browser (via window.ethereum.isMetaMask + mobile user agent) and swaps MetaMask for WalletConnect as the preferred wallet option
  • FULL mode remains unchanged

@vercel
Copy link

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
auth Ready Ready Preview, Comment Mar 12, 2026 9:50pm

Request Review

Copy link
Collaborator

@LautaroPetaccio LautaroPetaccio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might be over engineering this hook. The targetConfig.ts file already checks if the user is on mobile or not, and the adjustWeb3OptionsForMobile() adjusts it as well, so by the time the connection options arrive to this hook, they're already set.
If we want to change what is seeing in each one, we should modify those files. This hook can either show one, two or no options depending on what's received from the connections options.
WDYR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants