Error: Missing web3 instance,

i have this function to transfer

function send(){
  const amountInput = document.getElementById('sendAmount').value;
const transferTo = document.getElementById('transferTo').value;
  /// Transfer
  const transferOptions = {
    type: "erc20",
    amount: Moralis.Units.Token(amountInput, "9"),
    receiver: transferTo,
    contractAddress: tokenAddress,}
   Moralis.transfer(transferOptions);
  
  }

and my button
document.getElementById(“transfer”).onclick = send;

when clicking my button I get this error

Uncaught (in promise) Error: Missing web3 instance, make sure to call Moralis.enableWeb3() or Moralis.authenticate()

but im already authenticated

const serverUrl = "https://njlmnugnl.usemoralis.com:2053/server";

const appId = "12345677897";

Moralis.start({ serverUrl, appId });

being authenticated is not always the same thing as calling enableWeb3, sometimes you can be authenticated with the session token.

I think that you should call enableWeb3