I used this code now and I didn’t get any error:
Moralis = require("moralis").default
r = async () => {
await Moralis.start({
apiKey: "API_KEY_HERE"
});
const result = await Moralis.Auth.requestMessage({
address: "0x347a96a5bd06d2e15199b032f46fb724d6c73047",
chain: "0x1",
network: "evm",
domain: "google.com",
statement: "google",
uri: "https://google.com",
expirationTime: "2024-01-01T00:00:00.000Z",
timeout: 55,
});
console.log(result);
}
r()
I used "version": "2.16.1",
for Moralis SDK