We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6af77b commit 59b5d07Copy full SHA for 59b5d07
src/RestWrite.js
@@ -285,11 +285,12 @@ RestWrite.prototype.handleAuthData = function(authData) {
285
// Login with auth data
286
// Short circuit
287
delete results[0].password;
288
+ // need to set the objectId first otherwise location has trailing undefined
289
+ this.data.objectId = results[0].objectId;
290
this.response = {
291
response: results[0],
292
location: this.location()
293
};
- this.data.objectId = results[0].objectId;
294
} else if (this.query && this.query.objectId) {
295
// Trying to update auth data but users
296
// are different
0 commit comments