You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I query specific user using masterKey, user.getSessionToken() return some random string that is not the user session token
Setup to produce
var query = new Parse.Query(Parse.User);
query.equalTo("username", username);
query.find({
useMasterKey: true,
success: function(users) {
// Do stuff
console.log(users);
if (users == undefined || users.length == 0)
{
}
else
{
** // The following session token is not the right one.
users[0].getSessionToken()**
}
},
error: function() {
response.error("Not authorized");
},
});
The text was updated successfully, but these errors were encountered:
Users do not contain a session token, the session token is part of a _Session object. If you log in a user, through any means, you'll get a session token back as part of the user, though.
If I query specific user using masterKey, user.getSessionToken() return some random string that is not the user session token
Setup to produce
The text was updated successfully, but these errors were encountered: