fix: signout even when api is not available

This commit is contained in:
Divlo 2022-08-29 19:58:50 +02:00
parent c75dc80f82
commit 88f1cedcdc
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9

View File

@ -104,9 +104,11 @@ export class Authentication {
}
public async signoutServerSide(): Promise<void> {
try {
await this.api.post('/users/signout', {
refreshToken: this.tokens.refreshToken
})
} catch {}
this.signout()
}