From b3a2fe14b186b7fa7b452aa6e507e6da544eeacc Mon Sep 17 00:00:00 2001 From: Felipe Martins Date: Fri, 25 Aug 2023 10:47:48 -0300 Subject: [PATCH] add clientId to tempDir (#2430) Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com> --- src/authStrategies/RemoteAuth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authStrategies/RemoteAuth.js b/src/authStrategies/RemoteAuth.js index f84ba59..99e688b 100644 --- a/src/authStrategies/RemoteAuth.js +++ b/src/authStrategies/RemoteAuth.js @@ -41,7 +41,7 @@ class RemoteAuth extends BaseAuthStrategy { this.clientId = clientId; this.backupSyncIntervalMs = backupSyncIntervalMs; this.dataPath = path.resolve(dataPath || './.wwebjs_auth/'); - this.tempDir = `${this.dataPath}/wwebjs_temp_session`; + this.tempDir = `${this.dataPath}/wwebjs_temp_session_${this.clientId}`; this.requiredDirs = ['Default', 'IndexedDB', 'Local Storage']; /* => Required Files & Dirs in WWebJS to restore session */ }