demo/public/app.js
function() {
  firebase.auth().currentUser.delete().catch(function(error) {
    if (error.code == 'auth/requires-recent-login') {
      // The user's credential is too old. She needs to sign in again.
      firebase.auth().signOut().then(function() {
        // The timeout allows the message to be displayed after the UI has
        // changed to the signed out state.
        setTimeout(function() {
          alert('Please sign in again to delete your account.');
        }, 1);
      });
    }
  });
}
function() {
  firebase.auth().currentUser.delete().catch(function(error) {
    if (error.code == 'auth/requires-recent-login') {
      // The user's credential is too old. She needs to sign in again.
      firebase.auth().signOut().then(function() {
        // The timeout allows the message to be displayed after the UI has
        // changed to the signed out state.
        setTimeout(function() {
          alert('Please sign in again to delete your account.');
        }, 1);
      });
    }
  });
}
function ( ) { firebase . auth ( ) . currentUser . delete ( ) . catch ( function ( error ) { if ( error . code == 'auth/requires-recent-login' ) { // The user's credential is too old. She needs to sign in again. firebase . auth ( ) . signOut ( ) . then ( function ( ) { // The timeout allows the message to be displayed after the UI has // changed to the signed out state. setTimeout ( function ( ) { alert ( 'Please sign in again to delete your account.' ) ; } , 1 ) ; } ) ; } } ) ; }
Deletes the user's account.
Deletes the user s account .