Skip to content

Commit 74cfe87

Browse files
authored
Add authDataResult to readme (#429)
1 parent 80063f3 commit 74cfe87

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

FirebaseAuthUI/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ present the `authViewController` obtain as instance as follows:
160160
// Present the auth view controller and then implement the sign in callback.
161161
let authViewController = authUI!.authViewController()
162162

163-
func authUI(_ authUI: FUIAuth, didSignInWith user: FIRUser?, error: Error?) {
164-
// handle user and error as necessary
163+
func authUI(_ authUI: FUIAuth, didSignInWithAuthDataResult authDataResult: FIRAuthDataResult?, error: Error?){
164+
// handle user (`authDataResult.user`) and error as necessary
165165
}
166166
```
167167

@@ -171,8 +171,10 @@ UINavigationController *authViewController = [authUI authViewController];
171171
// Use authViewController as your root view controller,
172172
// or present it on top of an existing view controller.
173173

174-
- (void)authUI:(FUIAuth *)authUI didSignInWithUser:(nullable FIRUser *)user error:(nullable NSError *)error {
175-
// Implement this method to handle signed in user or error if any.
174+
- (void)authUI:(FUIAuth *)authUI
175+
didSignInWithAuthDataResult:(nullable FIRAuthDataResult *)authDataResult
176+
error:(nullable NSError *)error {
177+
// Implement this method to handle signed in user (`authDataResult.user`) or error if any.
176178
}
177179
```
178180

0 commit comments

Comments
 (0)