File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ import FirebaseAuthUI
5959/* ... */
6060
6161FIRApp.configure ()
62- let authUI = FIRAuthUI.authUI ()
62+ let authUI = FIRAuthUI.defaultAuthUI ()
6363authUI? .delegate = self
6464```
6565
@@ -69,7 +69,7 @@ authUI?.delegate = self
6969@import FirebaseAuthUI
7070...
7171[FIRApp configure ];
72- FIRAuthUI *authUI = [FIRAuthUI authUI ];
72+ FIRAuthUI *authUI = [FIRAuthUI defaultAuthUI ];
7373authUI.delegate = self; // Set the delegate to receive callback.
7474```
7575
@@ -112,15 +112,15 @@ Google/Facebook authentication process.
112112// swift
113113func application(app: UIApplication, openURL url: NSURL, options: [String: AnyObject]) -> Bool {
114114 let sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey] as! String
115- return FIRAuthUI.authUI ()?.handleOpenURL(url, sourceApplication: sourceApplication ?? "") ?? false
115+ return FIRAuthUI.defaultAuthUI ()?.handleOpenURL(url, sourceApplication: sourceApplication ?? "") ?? false
116116}
117117```
118118
119119``` objective-c
120120// objc
121121- (BOOL )application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options {
122122 NSString * sourceApplication = options[ UIApplicationOpenURLOptionsSourceApplicationKey] ;
123- return [[ FIRAuthUI authUI ] handleOpenURL: url sourceApplication: sourceApplication ] ;
123+ return [[ FIRAuthUI defaultAuthUI ] handleOpenURL: url sourceApplication: sourceApplication ] ;
124124}
125125```
126126
You can’t perform that action at this time.
0 commit comments