Hey guys,
I’ve set up a self-hosted moralis server, however when I try to log in, I receive the following error:
error: Moralis auth failed, invalid data
.
I have used the following code to set up my server authentication: https://docs.moralis.io/docs/web3-parse-server-authentication
I believe the issue is I am not authenticating my user on the client side. From reading this forum, I believe I am supposed to use the code mentioned here on the client side (correct me if I’m wrong): https://docs.moralis.io/docs/connect-to-your-client#authentication
However, I am using the web3uikit connect button with my website, and I have not included the authentication code above on my front end (I assumed the connect button takes care of that for me, but maybe not).
If this is the problem, how can I use the web3uikit connect button to authenticate users? If this isn’t the problem, do you have any idea what the issue is?
Thanks!
So assuming that thi