diff --git a/src/account.ts b/src/account.ts index 4dd5ccc..e2c76d5 100644 --- a/src/account.ts +++ b/src/account.ts @@ -55,7 +55,7 @@ export class AccountApi { ret = this.checkSuccessVal(ret); if (ret) { - this.jwtToken = (ret as LoginResponse).token; + this._jwtToken = (ret as LoginResponse).token; return true; } @@ -63,7 +63,7 @@ export class AccountApi { } public async logout(): Promise { - this.jwtToken = undefined; + this._jwtToken = undefined; return true; }