feat: add logout

This commit is contained in:
Derrick Hammer 2024-03-13 13:04:57 -04:00
parent 9e7e0c7f65
commit bc3550ab4b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -50,6 +50,11 @@ export default class AccountApi {
return false;
}
public async logout(): Promise<boolean> {
this.jwtToken = undefined;
return true;
}
public async register(registerRequest: RegisterRequest): Promise<boolean> {
return this.checkSuccessBool(
await postApiAuthRegister(registerRequest, this.buildOptions()),