I am trying to get the user’s id as a string.
I need to use id to do different validations.
I tried this at the top of my cloud function and I can pull other things about the user, but no id.
const user = request.user;
const userId = user.get('objectId'); //returns undefined ('id' as well)
const ethAddress = user.get('ethAddress'); //works
I found this thread, but I wasn’t able to follow the conclusion: Can not get user by objectId Moralis.User [SOLVED]
I can’t conceive a way to reliably query the user without id either. How can I do this?