Login message changing Moralis Authentication [SOLVED]

async function login() {
    let message = 'Hello, You are logging in : ' + (Math.random() + 1).toString(36).substring(2);
    Moralis.Web3.getSigningData = () => message;
    var walletProvider = "walletconnect";
    if (typeof web3 !== 'undefined') {
        walletProvider = "metamask";
        provider: walletProvider,
        chainId: 56
    }).then(function(user) {
        authenticate(user.id, user.get('ethAddress'))
1 Like

Hi @Son

Please format your code READ BEFORE POSTING - How to post code in the forum :raised_hands:

Done. Please check…

Seems to me that this is a bug.
I’ll let you know when it will be fixed

1 Like

When can i expect the fix to be released?

Today or Tomorrow.
I’ll let you know when it will be fixed


seems a bug to me too. Broken since a couple of days ago in all my devices…

Any updates? When can this be fixed?

Updated in latest release, this is the new way of doing this

1 Like

thanks. it worked on latest release.


Yes it works, I have another issue with walletconnect . I am opening a new thread for that.