Can't connect Metamask mobile browser

Moralis.start({
  serverUrl: process.env.VUE_APP_MORALIS_SERVER_URL,
  appId: process.env.VUE_APP_MORALIS_APP_ID
});

import Moralis from '../plugins/moralis'

const authenticate = async (options = {}) => {
        try {
            user.value = await Moralis.authenticate(options)
            web3.value = await Moralis.enableWeb3(options.provider ? {provider: "walletconnect"} : {})
            isAuthenticating.value = false
            isAuthenticated.value = true
        } catch (error) {
            authError.value = error
            isAuthenticating.value = false
        }
    }

it can connect with metamask app browser before about 3-4 month ago.

this my site test www.storyks-vue.cf

1 Like

Hi do you get any errors? Is '../plugins/moralis' referring to a Moralis script? If so, which version? You may need to update.

Can you try using this example? Metamask - Moralis

Otherwise you may have to use WalletConnect which works with MetaMask mobile. WalletConnect - Moralis