func sign()

in invites/InvitesExampleSwift/ViewController.swift [44:56]


  func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!) {
    if let error = error {
      print("\(error.localizedDescription)")
    } else {
      // User Successfully signed in.
      if let name = user.profile.name {
        statusText.text = "Signed in as \(name)"
      } else {
        statusText.text = "Signed in, profile name is not set"
      }
    }
    toggleAuthUI()
  }