Automatic testing issue

Hello to everyone actually I’m new to Katalon, I’m facing an issue!
First of all, I logged in to my application and in my application, there is a two-factor authentication Code is send to my Email on login, and the code is used only Once, I record all the steps but when I play the steps I got an Error in Code because code is used for only one time… how can I resolve this issue

One of the reasons 2 factor authentication is used is precisely to stop you from automating it. You can ask the dev team to disable 2FA in the test environment.