title: FirebaseAuth not creating new user from Google authentication - Swift
body: <p>I am using the Google authentication to authenticate users on Firebase. The code runs without errors, however, I am not seeing any of the authenticated users under the "authentication" tab of the Firebase console. There is user activity according to the analytics, but there is no record of any of the users that sign in using the Google sign-in. </p>
  
  <pre><code> func sign(_signIn: GIDSignIn!, didSignInfor user: GIDGoogleUser!, withError error: Error!){
      if let err = error {
          print ("failed to log into Google", err)
          return
      }
      guard let authentication = user.authentication else { return }
  
      let credential = GoogleAuthProvider.credential(withIDToken: authentication.idToken,
                                                     accessToken: authentication.accessToken)
  
  
      Auth.auth().signInAndRetrieveData(with: credential, completion: { (authResult, error) in
          if let error = error {
              print ("failed to create with google account")
              return
          }
         // User is signed in
          guard let uid = user?.userID else {
              return
  
          }
  </code></pre>
  
  <p>I followed the documentation on Firebase and I have enabled "Google sign-in". Thanks in advance!</p>