fix(LocalAuth): logout method (#1267)
The logout method was trying to use a function call passing the "dataDir" as the "this" reference
This commit is contained in:
parent
c45fae5c15
commit
f88bd274be
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class LocalAuth extends BaseAuthStrategy {
|
||||||
|
|
||||||
async logout() {
|
async logout() {
|
||||||
if (this.userDataDir) {
|
if (this.userDataDir) {
|
||||||
return (fs.rmSync ? fs.rmSync : fs.rmdirSync).call(this.userDataDir, { recursive: true });
|
return (fs.rmSync ? fs.rmSync : fs.rmdirSync).call(this, this.userDataDir, { recursive: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue