Wth No error no anything
here’s the code
const handleAuth = async (provider) => {
const ethersProvider = await Moralis.enableWeb3({throwOnError: true, provider, projectId: WALLET_CONNECT_PROJECT_ID})
const signer = ethersProvider.getSigner()
const account = await signer.getAddress()
const chainId = Moralis.chainId
const { message } = await Moralis.Cloud.run("requestMessage", { address: account, chain: parseInt(chainId, 16), network: "evm", })
const user = await Moralis.authenticate({
signingMessage: message,
newSession: true,
provider: provider,
chainId,
projectId: WALLET_CONNECT_PROJECT_ID,
rpcMap: {
'1': `https://rpc.walletconnect.com/v1/?chainId=eip155:${chainId}&projectId=${WALLET_CONNECT_PROJECT_ID}`,
},
qrModalOptions: {
themeMode: 'light',
},
});
const currentUser = Moralis.User.current()
console.log(currentUser.get('ethAddress'))