If you are an Android user
Please try to follow the steps below to sync your Google Authenticator:
1. Ensure that your android phone has set to automatic date and time
2. Please open up your Google Authentication app.
3. On the top right-hand corner, click on " : " and select settings.
4. Once you're in settings, click on 'Time correction for codes', and click onto 'Sync now'.
This process will allow the synchronization of time in your Google Authenticator app with the Google server, resolving the invalid code error message
If you are an iPhone or iOS user
Please try to follow the steps below to sync your Google Authenticator:
1)Please ensure that you have the latest version of iOS.
2) Turn on Set Automatically in Settings > General > Date & Time. This automatically sets your date and time based on your time zone. If there’s an available time zone update, your device lets you know.
3) Allow your device to use its current location to determine the correct time zone. To do this, go to Settings > Privacy > Location Services > System Services and select Setting Time Zone.
4) Check that your device shows the correct time zone in Settings > General > Date & Time > Time Zone.
This process will allow the apps to synchronize the time on the apps, with the Google server, which could be one of the reasons why there is an invalid code issue.