Trying something that should be simple, creating a new User account from an Admin dashboard using Parse server on Back4app.
Every time I try the new user is created but I am unable to switch back to the original user...
var sessionToken = Parse.User.current().getSessionToken();
Parse.User.signUp(email, email).then(function(newUser) {
Parse.User.logOut();
Parse.User.become(sessionToken);
});
Thanks
logOut and become are asynchronous functions, if I'm not mistaken. So you're trying to become another user when you haven't logged out of the original user, which I don't think works.