2
2
mirror of https://github.com/Thream/website.git synced 2024-07-06 18:40:12 +02:00

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> {
await this.api.post('/users/signout', {
refreshToken: this.tokens.refreshToken
})
try {
await this.api.post('/users/signout', {
refreshToken: this.tokens.refreshToken
})
} catch {}
this.signout()
}