diff --git a/lib/components/keyserver-connection-handler.js b/lib/components/keyserver-connection-handler.js --- a/lib/components/keyserver-connection-handler.js +++ b/lib/components/keyserver-connection-handler.js @@ -143,6 +143,9 @@ `Error while authenticating to keyserver with id ${keyserverID}`, e, ); + if (keyserverID === ashoatKeyserverID) { + await dispatchActionPromise(logOutActionTypes, callLogOut()); + } } finally { authInProgress.current = false; } @@ -158,6 +161,7 @@ deviceToken, calendarQuery, isUserAuthenticated, + callLogOut, ]); if (keyserverID !== ashoatKeyserverID) {