change to RestWrite.createSession
This commit is contained in:
@@ -861,7 +861,7 @@ RestWrite.prototype.createSessionToken = async function () {
|
|||||||
this.storage['authProvider'] = Object.keys(this.data.authData).join(',');
|
this.storage['authProvider'] = Object.keys(this.data.authData).join(',');
|
||||||
}
|
}
|
||||||
|
|
||||||
const { sessionData, createSession } = RestWrite.createSession(this.config, {
|
const { sessionData, createSession } = Auth.createSession(this.config, {
|
||||||
userId: this.objectId(),
|
userId: this.objectId(),
|
||||||
createdWith: {
|
createdWith: {
|
||||||
action: this.storage['authProvider'] ? 'login' : 'signup',
|
action: this.storage['authProvider'] ? 'login' : 'signup',
|
||||||
|
|||||||
Reference in New Issue
Block a user