I’m truly lost… I have no idea what I’m doing at the moment.
- First-time login = do something, if the createdAt matches updatedAt
- Else just do something else
IsUserloggedFirstTime = async () =>{
const query = new Moralis.Query("User");
const UserCreatedAt = (currentUser.get('createdAt'));
const UserUpdatedAt = (currentUser.get('updatedAt'));
let showFirstTimeresult;
if (UserCreatedAt == UserUpdatedAt) {
// do something here
} else (UserUpdatedAt > UserCreatedAt) {
// do something here
}
return showFirstTimeresult;
}
This is what I have so far.