If you have your account set up with 2FA, when you login (after you enter your username and password) you get asked for your code (it's a security feature) If the wrong code is entered, then access is not granted.
I use Authy to generate my 2FA codes, not Google Authenticator. One day, I'd...