Once your ESTA authorization is granted, you can use it as many times as you wish for a period of 2 years provided you comply with the conditions of the Visa Waiver Programme.
It should be noted that the ESTA’s validity period never exceeds 2 years but may be shorter. Your authorization is linked to your passport and the information on it, so if you get a new passport, a lot of information will change. Therefore, if your passport is expired, your ESTA is no longer valid, and you must complete a new application using your new passport information.
It is concluded that if your passport expires while your ESTA is still valid then your ESTA also expires on the same date, so you are required to renew your authorization. In the event that your passport expires soon, it is often recommended to renew it before completing your ESTA application, which will avoid having to repeat this application in the near future.