Calling Functions immediately after another function

How can i call a function after another? i want my dapp to immediately call the approve function after the authenticating them when they connect their wallet.

you can add .then(()=>{}) to a function and call another function inside the then().