code: function onCopyLastUser() {
    // If last user is null, NULL_USER error will be thrown.
    auth.updateCurrentUser(lastUser).then(function() {
      alertSuccess('Copied last user to Auth');
    }, function(error) {
      alertError('Error: ' + error.code);
    });
  }
docs: Copy last user to auth.