Use Safari for OIDC account URL. (#1591)

* Handle RP-Initiated Logout URL.

Safari is only used on devices, the simulator doesn't work properly.
This commit is contained in:
Doug
2023-08-30 09:22:22 +01:00
committed by GitHub
parent 220279fd28
commit a5045e1598
6 changed files with 29 additions and 15 deletions
@@ -306,13 +306,13 @@ class ClientProxy: ClientProxyProtocol {
}
}
func logout() async {
func logout() async -> URL? {
await Task.dispatch(on: clientQueue) {
do {
// We aren't currently handling the RP initiated sign out URL.
_ = try self.client.logout()
return try self.client.logout().flatMap(URL.init(string:))
} catch {
MXLog.error("Failed logging out with error: \(error)")
return nil
}
}
}