Moralis Authentication Stopped Working Overnight

Hey guys Im having a super weird issue, I was following Filip’s DEX tutorial last night, then decided to continue in the morning. Now for some reason the MetaMask authentication isnt working anymore. I didnt change any code at all and the Sign In was working last night. Any idea what it could be related to?
Here is the code:

<button id = "login_button" class="btn btn-outline-success my-2 my-sm-0" type="submit">Sign In With MetaMask </button>

Moralis.initialize("wypjz1fiduIZyLQMpG43zuCg8iMlQUrNUH2S7Gfg"); // Application id from

Moralis.serverURL = ""; //Server url from

async function login() {

    try {

        currentUser = Moralis.User.current();


            currentUser = await Moralis.Web3.authenticate();


    } catch (error) {




document.getElementById("login_button").onclick = login;

Hey @Mello

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

You can try currentUser = await Moralis.authenticate();

Still no luck unfortunately :confused:

You should post the code for your entire html page, what you have there looks like parts of the code.

Authentication is bugged on my Dapp too. Has been working fine for weeks until today.

What is the error that you get? If you update Moralis Server (even if it is on latest version) does any help?