An entrypoint for a pending administrator. A pending administrator must just call it and he will become a new administrator of the contract.
An entrypoint doesn't accept any parameters.
const tFarmAddress = "KT1...";
const tFarm = await tezos.contract.at(tFarmAddress);
const operation = await tFarm.methods.confirm_admin().send();
senderof the transaction is not current pending administrator (not the address that was assigned by the current administrator to the shift).