From bc3550ab4b6e609f6caf518bdb7dd32127b3495e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 13 Mar 2024 13:04:57 -0400 Subject: [PATCH] feat: add logout --- src/account.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/account.ts b/src/account.ts index 400c92e..695d30e 100644 --- a/src/account.ts +++ b/src/account.ts @@ -50,6 +50,11 @@ export default class AccountApi { return false; } + public async logout(): Promise { + this.jwtToken = undefined; + return true; + } + public async register(registerRequest: RegisterRequest): Promise { return this.checkSuccessBool( await postApiAuthRegister(registerRequest, this.buildOptions()),