Skip to content

Commit

Permalink
Removing sessionToken and authData from _User objects included in a q…
Browse files Browse the repository at this point in the history
…uery

This bug caused sessionToken to be replaced on client side to some old
sessionToken from DB.
  • Loading branch information
simonas-notcat committed Apr 11, 2016
1 parent 281568e commit acb294d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RestQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,9 @@ function includePath(config, auth, response, path) {
obj.__type = 'Object';
obj.className = includeResponse.className;

if(className == "_User"){
if (obj.className == "_User") {
delete obj.sessionToken;
delete obj.authData;
}
replace[obj.objectId] = obj;
}
Expand Down

0 comments on commit acb294d

Please sign in to comment.