Replies: 1 comment 2 replies
-
Hey there, that error occurs due to there not being any metamask extension installed on the browser. And if I'm not mistaken there is currently no metamask extension for Safari https://metamask.io/download/ EDIT: Answer in comment below |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
Currently having an issue with using @web3auth/core and Metamask. It works fine on desktop browsers, but it fails to redirect to the Metamask app when attempting to authenticate on a mobile browser (eg IOS Safari).
I've got a pretty basic setup with a metamask adapter configured:
const metamaskAdapter = new MetamaskAdapter({})
web3auth.configureAdapter(metamaskAdapter)
and then connecting with
auth.connectTo('metamask')
As I say, this works great on desktop browsers. On mobile, i'd expect metamask to open, ask to connect to the site, and then redirect to the site. However, nothing happens when running 'connectTo'. Social logins work fine, just not Metamask.
Looking at console logs from the mobile browser, it looks like it's not detecting any injected window.ethereum and, as a result, the adapter is not becoming 'ready' to run. Is there a way to get the expected redirect to metamask -> connect -> return to site functionality working?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions