mirror of
https://github.com/appwrite/sdk-for-apple.git
synced 2026-04-07 19:17:50 +00:00
17 lines
418 B
Swift
17 lines
418 B
Swift
import Appwrite
|
|
import UIKit
|
|
|
|
|
|
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
|
|
var window: UIWindow?
|
|
|
|
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
|
|
guard let url = URLContexts.first?.url,
|
|
url.absoluteString.contains("appwrite-callback") else {
|
|
return
|
|
}
|
|
WebAuthComponent.handleIncomingCookie(from: url)
|
|
}
|
|
}
|