If you are trying to sign in to your Discord account but can’t get past the 2FA entry screen because it keeps rejecting your code with a code expired or code is invalid message. This article will show you how to solve the issue. Your Discord account hasn’t been hacked it’s just an issue with the 2FA app you are using.

Related: How to Enable or Disable Developer Mode on Discord.

Good account security is one of the most important things you can do for any online account. Not only is it important to have a solid, strong password with a range of random characters. But it is also important to have Two Factor Authentication (2FA) enabled. This adds an extra layer of protection to your accounts and makes it close to impossible for unauthorised people to access your accounts.

The only downside to 2FA is that once lost it can be impossible or very closer to it to get access to your account again. Depending on the specific service of course. Not all services allow for 2FA to be changed without the use of a special backup code. This is the case for Discord as well so make sure that you have your backup code safe and secure somewhere.

If you are trying to sign in to your Discord account but can’t because you keep getting a 2FA error saying that the code is invalid or expired, don’t stress just yet. This issue is more than likely linked to the authenticator app that you are using. More than likely it is a sync/timing issue that can be fixed really easily. Once fixed, you’ll be able to sign back into your account again.

Can’t sign into Discord account, 2FA code not working. Discord 2FA code expired/wrong fix.

In order to fix this problem, you will need to open your Two Factor Authentication app. We’ll be using Google Authenticator for this guide, however, you can follow a very similar process for whatever other one you may be using.

  • To begin, open Google Authenticator on your device.
  • Next, click the three dots in the top right-hand corner of the screen.
  • From the list of options click Settings.
  • Click Time correction for codes.
  • Finally, click Sync now.

Discord 2FA not working 2fa code expired 2fa code wrong

As soon as you make the change go back to the 2FA code generating screen and copy the code for Discord. It will now be working. If you wait too long it may go out of sync again and require you to repeat the process.

Why does my Google Authenticator app go out of sync?

If your Google authenticator app goes out of sync it is probably because you are using manual time settings on your mobile device. It should be noted that this doesn’t affect all 2FA codes either, it may only affect some, so don’t be fooled into thinking the issue is with the service and not the Authenticator app.

If you want to resolve this issue simply go into your phone's Date and Time settings and change the option from Manual to Automatic. Most devices will be set to automatic by default however you may have had to change it to manual for some other reason. I know I have and it was because of the Google Play Store opening in an endless loop.

Once you have changed from manual back to automatic just restart your device to make sure the change has taken effect and you won’t have sync issues with the Google Authenticator app.