From f8f8780f97f670bbdb745be4ca5f4be4dbc624f2 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 13 Mar 2024 18:27:59 -0400 Subject: [PATCH] fix: use _jwtToken --- src/account.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }