Resetting stored tokens on any login restoration failures.

This commit is contained in:
Stefan Ceriu
2022-03-31 12:35:40 +03:00
parent fce039742e
commit 75e7adc72a

View File

@@ -68,6 +68,10 @@ class AuthenticationCoordinator: Coordinator {
case .failure(let error):
self.delegate?.authenticationCoordinator(self, didFailWithError: error)
MXLog.error("Failed restoring login with error: \(error)")
// On any restoration failure reset the token and restart
self.keychainController.removeAllTokens()
self.start()
}
}
}