Improve logout() LocalAuth logic (#2175)
* Improve logout() LocalAuth logic - Wait for browser to close to prevent Exception on Windows * Update Client.js * Update LocalAuth.js --------- Co-authored-by: Rajeh Taher <rajeh@reforward.dev> Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com> Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
This commit is contained in:
parent
d272389246
commit
776c1b152e
1 changed files with 10 additions and 3 deletions
|
|
@ -44,10 +44,10 @@ class LocalAuth extends BaseAuthStrategy {
|
|||
|
||||
async logout() {
|
||||
if (this.userDataDir) {
|
||||
return (fs.rmSync ? fs.rmSync : fs.rmdirSync).call(this, this.userDataDir, { recursive: true });
|
||||
return (fs.rmSync ? fs.rmSync : fs.rmdirSync).call(this, this.userDataDir, { recursive: true, force: true });
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = LocalAuth;
|
||||
module.exports = LocalAuth;
|
||||
|
|
|
|||
Loading…
Reference in a new issue