serverURL: https://yvwgzdhsrqkj.moralisweb3.com:2053/server
Code:
function WalletConnectAuthentication() {
var user = Moralis.Web3.authenticate({ provider: "walletconnect" });
Moralis.Web3.getSigningData = () => 'Welcome to SpacePath Marketplace! Please sign in to create an account.';
};
Function above is targeteted by an onClick event listener
useEffect(() => {
if(isAuthenticating){
setVisibleModal(true);
setAuthenticaionChecker(false);
setLoadingMessage("Authenticating through WalletConnect")
};
if(isAuthenticated){
setVisibleModal(false);
setAuthenticaionChecker(false);
};
}, [visibleModal, visibleErrorModal, isAuthenticating, isAuthenticated]);
The useEffect works when I use the default authenticate function, but not when I make the provider WalletConnect
Wallet Connect also displays an error when I close out the QR code. If anyone knows how to fix these issues that would be great.