Mobile metamask signin

Does moralis authentication support mobile metamask authentication?

When I try to signin on my mobile device, nothing hapoensšŸ‘€

Iā€™m using the metamask app.

Hi @neridonk,

Could you paste your code here to see if we can diagnose the issue?
Also, Let us know which tutorial were you referring to create the authentication feature in your Dapp.

Thanks. :slight_smile:

Code is OS

From the ā€œcrypto loginā€ section in doc.moralis.

Demo can be found here : https://collectordex.vercel.app

Thank you

Iā€™ve tried connecting your hosted website with metamask and it doesnā€™t connect there too. So, Its not a mobile specific issue.
Iā€™ve used your exact logic in my sign in button code and it seems to work. Your logic code ā€“

try {
            let user = Moralis.User.current();
            if (!user) {
                await Moralis.Web3.authenticate();
            }

            this.isLogged$.next(true);
        } catch (error) {
            throw Error(error);
        }

Perhaps investigate whether the onclick function is reaching this logic in the first place.

Also try using await here - let user = await Moralis.User.current();

1 Like

ohhh ah sry Iā€™m ape, didnt try to debug firstly on my hosted site, thank your for your help!

Hm it looks like i still canā€™t login on mobiles cause it doesnt find my mobile metamask appā€¦

Is it possible to use a walletconnect provider or else?
@malik

Does it work with your desktop browser though ?

Yeah works fine on desktop. You can try it out oon my demosite

Im having a similar issue but didnt get a response in my other post: Moralis for apps that want to use other providers beside metamask

is there a way to use another provider besides metamask? as most newbie crypto mobile users may not have metamask.
is it possible to use @truffle/hdwallet-provider with an encrypted private key store on the moralis db?
obviously it would only be used for very small transactions, for security reasons.

Yeah Iā€™d love to see something like that or min.
Walletconnect
https://docs.walletconnect.org/quick-start/dapps/web3-provider

2 Likes

We will add more wallets and more importantly WalletConnect in June.
For now we support Metamask amily.

2 Likes

Hi. Is it will be Upgrade for Mobile Login with WalletConnect in June?

1 Like