Skip to content

Commit

Permalink
fix: token not saving in multi device (#516, #585)
Browse files Browse the repository at this point in the history
* fix: token not saving in multi device

Adds a default value to the required token data

Refs: #516

* fix: lint

Refs: #516

* fix: lint

Co-authored-by: Gabriel <ghs.gabe@gmail.com>
  • Loading branch information
ghsgabriel and Gabriel committed Oct 22, 2021
1 parent ede1629 commit 520fd06
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/api/layers/retriever.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ export class RetrieverLayer extends SenderLayer {
window['pathSession'] = true;
});
}

if (await this.isMultiDevice()) {
return {
WABrowserId: 'MultiDevice',
WASecretBundle: 'MultiDevice',
WAToken1: 'MultiDevice',
WAToken2: 'MultiDevice',
};
}
return await this.page
.evaluate(() => {
if (window.localStorage) {
Expand Down

0 comments on commit 520fd06

Please sign in to comment.