mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 04:18:31 +00:00
Resetting stored tokens on any login restoration failures.
This commit is contained in:
@@ -68,6 +68,10 @@ class AuthenticationCoordinator: Coordinator {
|
|||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
self.delegate?.authenticationCoordinator(self, didFailWithError: error)
|
self.delegate?.authenticationCoordinator(self, didFailWithError: error)
|
||||||
MXLog.error("Failed restoring login with error: \(error)")
|
MXLog.error("Failed restoring login with error: \(error)")
|
||||||
|
|
||||||
|
// On any restoration failure reset the token and restart
|
||||||
|
self.keychainController.removeAllTokens()
|
||||||
|
self.start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user