diff --git a/src/account.ts b/src/account.ts index eeb62d1..e137068 100644 --- a/src/account.ts +++ b/src/account.ts @@ -51,9 +51,10 @@ export default class AccountApi { if (ret) { this.jwtToken = (ret as LoginResponse).token; + return true; } - return ret as boolean; + return false; } public async logout(): Promise {