mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Remove AppAuth and prepare for Rust OIDC. (#870)
This commit is contained in:
@@ -89,9 +89,15 @@ class UserSession: UserSessionProtocol {
|
||||
authErrorCancellable = clientProxy.callbacks
|
||||
.receive(on: DispatchQueue.main)
|
||||
.sink { [weak self] callback in
|
||||
if case .receivedAuthError(let isSoftLogout) = callback {
|
||||
self?.callbacks.send(.didReceiveAuthError(isSoftLogout: isSoftLogout))
|
||||
self?.tearDownAuthErrorWatchdog()
|
||||
guard let self else { return }
|
||||
switch callback {
|
||||
case .receivedAuthError(let isSoftLogout):
|
||||
callbacks.send(.didReceiveAuthError(isSoftLogout: isSoftLogout))
|
||||
tearDownAuthErrorWatchdog()
|
||||
case .updateRestorationToken:
|
||||
callbacks.send(.updateRestorationToken)
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user