Prevent linkWith sessionToken from generating new session (#5801)
This commit is contained in:
@@ -806,6 +806,10 @@ RestWrite.prototype.createSessionTokenIfNeeded = function() {
|
||||
if (this.query && !this.data.authData) {
|
||||
return;
|
||||
}
|
||||
// Don't generate new sessionToken if linking via sessionToken
|
||||
if (this.auth.user && this.data.authData) {
|
||||
return;
|
||||
}
|
||||
if (
|
||||
!this.storage['authProvider'] && // signup call, with
|
||||
this.config.preventLoginWithUnverifiedEmail && // no login without verification
|
||||
|
||||
Reference in New Issue
Block a user