Each authenticator app generates codes every 30 seconds. You can wait until a new code generates within the next 30 seconds and attempt entering the newly-updated code.