Skip to content

Commit acea6e5

Browse files
committed
fix(RemoteAuth): pass session name to store.save instead of full path
syncs PR wwebjs#201660 fix that was missing from main-with-fixes-and-logs. store.save() was using path.join(this.dataPath, this.sessionName) which caused sessions to be saved under the local filesystem path as remote key.
1 parent e967f3a commit acea6e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/authStrategies/RemoteAuth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class RemoteAuth extends BaseAuthStrategy {
139139
try {
140140
compressedSessionPath = await this.compressSession();
141141
await this.store.save({
142-
session: path.join(this.dataPath, this.sessionName),
142+
session: this.sessionName,
143143
});
144144
if (options && options.emit)
145145
this.client.emit(Events.REMOTE_SESSION_SAVED);

0 commit comments

Comments
 (0)