feat: add logout
This commit is contained in:
parent
9e7e0c7f65
commit
bc3550ab4b
|
@ -50,6 +50,11 @@ export default class AccountApi {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async logout(): Promise<boolean> {
|
||||||
|
this.jwtToken = undefined;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public async register(registerRequest: RegisterRequest): Promise<boolean> {
|
public async register(registerRequest: RegisterRequest): Promise<boolean> {
|
||||||
return this.checkSuccessBool(
|
return this.checkSuccessBool(
|
||||||
await postApiAuthRegister(registerRequest, this.buildOptions()),
|
await postApiAuthRegister(registerRequest, this.buildOptions()),
|
||||||
|
|
Loading…
Reference in New Issue