aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example/Auth/SwiftSample/ViewController.swift
diff options
context:
space:
mode:
authorGravatar Zsika Phillip <protocol86@users.noreply.github.com>2018-04-25 21:50:19 -0700
committerGravatar Paul Beusterien <paulbeusterien@google.com>2018-04-26 06:55:00 -0700
commit5bb6e0f091b76ed8a02ce402d766cf4e26d33784 (patch)
treeb7bfb4575eff99c1b61bf2431d2b4a8b3867bb00 /Example/Auth/SwiftSample/ViewController.swift
parent7707f37c770212c69d9ca4b36fba7e3ae193c108 (diff)
Adds new callback to createUse API (breaking change) (#1186)
Diffstat (limited to 'Example/Auth/SwiftSample/ViewController.swift')
-rw-r--r--Example/Auth/SwiftSample/ViewController.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/Example/Auth/SwiftSample/ViewController.swift b/Example/Auth/SwiftSample/ViewController.swift
index d902b38..05b0dd2 100644
--- a/Example/Auth/SwiftSample/ViewController.swift
+++ b/Example/Auth/SwiftSample/ViewController.swift
@@ -232,9 +232,9 @@ final class ViewController: UIViewController, UITextFieldDelegate, AuthUIDelegat
}
case .createUser:
Auth.auth().createUser(withEmail: emailField.text!, password: passwordField.text!) {
- user, error in
+ result, error in
self.ifNoError(error) {
- self.showAlert(title: "Signed In With Credential", message: user?.textDescription)
+ self.showAlert(title: "Signed In With Credential", message: result?.user.textDescription)
}
}
case .signOut: