change to RestWrite.createSession

This commit is contained in:
Manuel
2021-08-18 22:42:24 +02:00
parent 1306da7454
commit 93d643e3eb

View File

@@ -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',