From 88f1cedcdcb1f607064069637c1bcbca60bed0f8 Mon Sep 17 00:00:00 2001 From: Divlo Date: Mon, 29 Aug 2022 19:58:50 +0200 Subject: [PATCH] fix: signout even when `api` is not available --- tools/authentication/Authentication.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/authentication/Authentication.ts b/tools/authentication/Authentication.ts index a00868d..df4747b 100644 --- a/tools/authentication/Authentication.ts +++ b/tools/authentication/Authentication.ts @@ -104,9 +104,11 @@ export class Authentication { } public async signoutServerSide(): Promise { - await this.api.post('/users/signout', { - refreshToken: this.tokens.refreshToken - }) + try { + await this.api.post('/users/signout', { + refreshToken: this.tokens.refreshToken + }) + } catch {} this.signout() }