Please tell me there is a way to check for chainID / force users to switch to a desired chain

We’re about to launch our game, but testing we found out last minute that you can actually call a contract from literally any connected network.

How do you make moralis auth check and force the desired network - we only need metamask for now

please tell me this is possible, or else we’ve wasted weeks of dev time

Are you using the game kit? You could get the user’s current chainId, prevent them from progressing in the game if they’re not on the right chain and notify them, and redirect them to re-authenticate.