Each Authentication Code is valid for 5 minutes, unless a new code has been sent to you. You will get an error if you enter a wrong code, or it has been more than 5 minutes since the code was sent to you or you are using an old code.
You might be interested in the following questions