feat: add logout
This commit is contained in:
parent
9e7e0c7f65
commit
bc3550ab4b
|
@ -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()),
|
||||
|
|
Loading…
Reference in New Issue