Remove AppAuth and prepare for Rust OIDC. (#870)

This commit is contained in:
Doug
2023-05-11 16:46:36 +01:00
committed by GitHub
parent a28e686c8d
commit 185710adf4
22 changed files with 249 additions and 264 deletions
@@ -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
}
}
}
@@ -21,6 +21,7 @@ enum UserSessionCallback {
case sessionVerificationNeeded
case didVerifySession
case didReceiveAuthError(isSoftLogout: Bool)
case updateRestorationToken
}
protocol UserSessionProtocol {