fix: add Desktop OAuth timeout, restore iOS keyWindow filter

This commit is contained in:
2026-07-08 17:51:27 +02:00
parent 00e7a7456f
commit 5aa264c2a7
2 changed files with 8 additions and 2 deletions
@@ -66,7 +66,7 @@ class IosOAuthClient : OAuthClient {
private fun keyWindow(): UIWindow {
val scenes = UIApplication.sharedApplication.connectedScenes
val windowScene = scenes.firstOrNull { it is UIWindowScene } as? UIWindowScene
return (windowScene?.windows?.firstOrNull() as? UIWindow) ?: UIWindow()
return (windowScene?.windows?.firstOrNull { (it as? UIWindow)?.isKeyWindow() == true } as? UIWindow) ?: UIWindow()
}
companion object {