Skip to content

Commit 4c4075f

Browse files
authored
Update README.md
Renamed authUI to defaultAuthUI
1 parent 221edaf commit 4c4075f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

FirebaseAuthUI/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import FirebaseAuthUI
5959
/* ... */
6060

6161
FIRApp.configure()
62-
let authUI = FIRAuthUI.authUI()
62+
let authUI = FIRAuthUI.defaultAuthUI()
6363
authUI?.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];
7373
authUI.delegate = self; // Set the delegate to receive callback.
7474
```
7575

@@ -112,15 +112,15 @@ Google/Facebook authentication process.
112112
// swift
113113
func 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

0 commit comments

Comments
 (0)