There are 2 possible reasons why you get an “Invalid code” message when entering the Google Authenticator code. Here are the possibilities:
To solve the problem due to time settings difference between your device and Google Authenticator, please set the time settings on your device to automatic.
For Android users, here’s how:
For iOs users, here’s how: