[SOLVED] Load contract events without metamask

Iā€™m using Moralis to read the events of a contract on Polygon using the following command:
events = await Moralis.Web3API.native.getContractEvents(options);

I initialize Moralis with the following when the website loads:
Moralis.start({ serverUrl, appId });

However, this brings up Metamask immediately when the page is loading. Is it possible to read all the events of a contract without having the user connect via Metamask?

what version of Moralis SDK are you using?
are you sure that is the only code that you use that opens metamask?

metamask should open on functions like enableWeb3, authenticate

Ah, you are right! I was using Moralis.enableWeb3();

Thank you!

When the user wants to interact with the contract, which commands do I need to call first? Is it:

await Moralis.enableWeb3();
let user = Moralis.User.current();
let c = ā€¦
Moralis.executeFunction(o)

?

you should only need enableWeb3 and executeFunction after that