Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if let email = self.emailField.text {
- showSpinner {
- // [START signin_emaillink]
- Auth.auth().signIn(withEmail: email, link: self.link) { (user, error) in
- // [START_EXCLUDE]
- self.hideSpinner {
- if let error = error {
- self.showMessagePrompt(error.localizedDescription)
- return
- }
- self.navigationController!.popViewController(animated: true)
- }
- // [END_EXCLUDE]
- }
- // [END signin_emaillink]
- }
- } else {
- self.showMessagePrompt("Email can't be empty")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement