diff --git a/src/RestWrite.js b/src/RestWrite.js index 083254ed4b..f1d8aafec8 100644 --- a/src/RestWrite.js +++ b/src/RestWrite.js @@ -872,7 +872,7 @@ RestWrite.prototype.createSessionTokenIfNeeded = function() { return this.createSessionToken(); }; -RestWrite.prototype.createSessionToken = function() { +RestWrite.prototype.createSessionToken = async function() { // cloud installationId from Cloud Code, // never create session tokens from there. if (this.auth.installationId && this.auth.installationId === 'cloud') {