packages/auth/demo/public/script.js
function onReauthConfirmPhoneVerification() {
  var verificationId = $('#link-reauth-phone-verification-id').val();
  var verificationCode = $('#link-reauth-phone-verification-code').val();
  var credential = firebase.auth.PhoneAuthProvider.credential(
      verificationId, verificationCode);
  activeUser().reauthenticateWithCredential(credential)
      .then(function(result) {
        logAdditionalUserInfo(result);
        refreshUserData();
        alertSuccess('User reauthenticated!');
      }, onAuthError);
}
function onReauthConfirmPhoneVerification() {
  var verificationId = $('#link-reauth-phone-verification-id').val();
  var verificationCode = $('#link-reauth-phone-verification-code').val();
  var credential = firebase.auth.PhoneAuthProvider.credential(
      verificationId, verificationCode);
  activeUser().reauthenticateWithCredential(credential)
      .then(function(result) {
        logAdditionalUserInfo(result);
        refreshUserData();
        alertSuccess('User reauthenticated!');
      }, onAuthError);
}
function onReauthConfirmPhoneVerification ( ) { var verificationId = $ ( '#link-reauth-phone-verification-id' ) . val ( ) ; var verificationCode = $ ( '#link-reauth-phone-verification-code' ) . val ( ) ; var credential = firebase . auth . PhoneAuthProvider . credential ( verificationId , verificationCode ) ; activeUser ( ) . reauthenticateWithCredential ( credential ) . then ( function ( result ) { logAdditionalUserInfo ( result ) ; refreshUserData ( ) ; alertSuccess ( 'User reauthenticated!' ) ; } , onAuthError ) ; }
Confirms a phone number verification for reauthentication.
Confirms a phone number verification for reauthentication .