Add redirectURI at magicLink

Cannot set redirectURI in authenticate when using magicLink.
Is the redirectURI setting supported?

Try setting a static redirectURI in the MagicWeb3Connector.js file at \node_modules/moralis\lib\browser\Web3Connector and add redirectURI:

magic.auth.loginWithMagicLink({
    email: email,
    redirectURI: "urihere"
});

There are some other instances of loginWithMagicLink in other files so they may need to be edited there too (can use search in your editor).

Magic docs says to call loginWithCredential at the specified redirect location also.

2 Likes

Thanks!
I will try it.