File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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.
161161let 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
You can’t perform that action at this time.
0 commit comments