code: function onApplyActionCode() {
    var code = $('#email-verification-code').val();
    auth.applyActionCode(code).then(function() {
      alertSuccess('Email successfully verified!');
      refreshUserData();
    }, onAuthError);
  }
docs: Confirms the email verification code given.