code: function onSendSignInLinkToEmail() {
    var email = $('#sign-in-with-email-link-email').val();
    auth.sendSignInLinkToEmail(email, getActionCodeSettings()).then(function() {
      alertSuccess('Email sent!');
    }, onAuthError);
  }
docs: Sends sign in with email link to the user.