[SOLVED] MagicLink integration doesn't seem to support Goerli testnet

When I use this, the network falls back to mainnet 0x1:

      Moralis.authenticate({ 
        provider: 'magicLink',
        email: email.value,
        apiKey: process.env.VUE_MAGIC_LINK_PK,
        network: 'goerli',
      })

Is goerli supported yet in the Moralis connector?

I guess goerli is not yet supported by magic auth sdk.
https://magic.link/docs/auth/blockchains/ethereum/javascript#choose-different-testnet

Try passing in a network object to use with Goerli as described in that link johnversus posted.

const customNodeOptions = {
  rpcUrl: 'https://goerli.infura.io/v3/', 
  chainId: 5, 
};

Moralis.authenticate({ 
    provider: 'magicLink',
    email: email.value,
    apiKey: process.env.VUE_MAGIC_LINK_PK,
    network: customNodeOptions,
})

thanks both, I checked with ML support and they gave me the same suggestion.
I can confirm it works :mage:

1 Like