Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. if let email = self.emailField.text {
  2. showSpinner {
  3. // [START signin_emaillink]
  4. Auth.auth().signIn(withEmail: email, link: self.link) { (user, error) in
  5. // [START_EXCLUDE]
  6. self.hideSpinner {
  7. if let error = error {
  8. self.showMessagePrompt(error.localizedDescription)
  9. return
  10. }
  11. self.navigationController!.popViewController(animated: true)
  12. }
  13. // [END_EXCLUDE]
  14. }
  15. // [END signin_emaillink]
  16. }
  17. } else {
  18. self.showMessagePrompt("Email can't be empty")
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement