diff --git a/app/src/auth.ts b/app/src/auth.ts index 2528b26bfb..1fcac3071b 100644 --- a/app/src/auth.ts +++ b/app/src/auth.ts @@ -170,7 +170,11 @@ export async function logout(optionsRaw: LogoutOptions = {}): Promise { // Only if the user manually signed out should we kill the session by hitting the logout endpoint if (options.reason === LogoutReason.SIGN_OUT) { - await api.post(`/auth/logout`); + try { + await api.post(`/auth/logout`); + } catch { + // User already signed out + } } appStore.authenticated = false;