If the problem is that the codes are expiring before you are able to enter them, you have to leave the window that requests the code open and open a new window to retrieve the code. If you're using a mobile device (i.e cell phone), you can try using a desktop, laptop or a different mobile device to retrieve the email with the code.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"