Authentication codes change every 30 seconds and can be rejected for multiple reasons, including:
When you enable two-factor authentication (2FA) using an authenticator app, the app creates an entry for that account. If you set up multiple accounts for 2FA in the same authenticator app, each account will have a separate entry in the app with its own unique code.
After resetting two-factor authentication, when re-enabling 2FA with an authenticator app it will create a new entry. It is important to note that authentication codes generated by the old account entry will no longer work and you will need to use the codes generated for the new account.
To avoid confusion, it is recommended that you delete old account entries from your authenticator app. This will help ensure that you are using the correct codes for the correct account and that your account remains secure.