Hey there!
So, I have a node.js backend that logs in to Moralis with username and password, this returns a user object. But because it’s node.js the user is not saved in Moralis.User.current()
which means that the subsequent queries all fail because the backend is not authenticated. (note: I also don’t want to use the masterKey)
From the documentation I get that I can use Moralis.User.enableUnsafeCurrentUser()
to bypass that but I’d rather not to stay stateless.
So my question is, is there any way to execute a query with the user object returned by the logIn function without having it in Moralis.User.current()