Custom Wallet, Moralis.authenticate() still opens MetaMask

I’m using a custom wallet for login following the directions in the docs, however it doesn’t say what to do with the authenticate method. The custom wallet is working fine if the metamask plugin is disabled in browser. However Moralis.authenticate() always opens metamask if it is enabled in conjunction to the custom wallet which causes it to stop working.

Is there a way to stop Moralis.authenticate() from opening metamask?

Hi @kkill
As per the moralis docs: https://docs.moralis.io/moralis-server/users/crypto-login

Moralis.authenticate() is used to connect to metamask directly by default unless you are adding provider param to walletconnect

if you don’t want to connect to metamask, don’t add the Moralis.authenticate()

Thanks

1 Like