Minecraft Failed to Login Error: How to Fix It

Easy 5-20 minutes Medium Severity Verified June 2026
Error Code
Failed to login
Brand
Minecraft
Product Type
game
Severity
Medium
DIY Difficulty
Easy
Estimated Fix Time
5-20 minutes
The Minecraft 'Failed to Login: Invalid Session' error means the game launcher could not verify your account session with Mojang's authentication servers. This usually happens when the launcher times out, your session token expires, or the servers are temporarily unavailable. The good news is that this error is almost always fixable within a few minutes by restarting the launcher or refreshing your login credentials.
Ad

Tools You'll Need

How to Fix Error Code Failed to login

  1. Close the Minecraft Launcher Completely

  2. Wait 30 Seconds, Then Reopen the Launcher

  3. Log Out and Log Back In

  4. Check Mojang/Minecraft Server Status

  5. Flush Your DNS Cache

  6. Temporarily Disable Your Firewall or Antivirus

    Only disable your firewall or antivirus temporarily for testing purposes. Re-enable it immediately after the test or once you have added Minecraft as an exception.
  7. Delete the Launcher's Cached Login Data

    Only delete launcher_profiles.json. Deleting other files in the .minecraft folder may remove your game saves, resource packs, or mods.
  8. Reinstall the Minecraft Launcher

    Before uninstalling, back up your .minecraft folder (found at %appdata%\.minecraft on Windows or ~/Library/Application Support/minecraft on Mac) to preserve your worlds and settings.
Ad

When to Call a Professional

If you have tried all steps above and the error persists for more than 24 hours, contact Mojang Support directly at 'https://help.minecraft.net'. If the issue is linked to a Microsoft account problem (locked account, billing issue, or account migration problem), Microsoft Support may also need to assist. No third-party technician is needed for this error — it is entirely a software and account authentication issue.

Frequently Asked Questions

Why does Minecraft keep saying 'Failed to Login: Invalid Session'?
This error occurs when Minecraft cannot verify your account session with Mojang's authentication servers. It typically happens when your session token has expired, the launcher was not closed properly, or Mojang's servers are temporarily down. Restarting the launcher and logging out then back in usually resolves it.
Does the 'Failed to Login' error mean my Minecraft account is banned?
Not necessarily. The 'Invalid Session' error is almost always a temporary authentication issue, not an account ban. If your account were banned, you would receive a different, more specific message. Try restarting the launcher and logging in again before assuming your account has been suspended.
Why do I get 'Failed to Login' only on multiplayer servers?
Multiplayer servers verify your session in real time with Mojang's authentication servers. If your session token expired while the game was open — which can happen after leaving the game idle for a long time — the server will reject the connection. Close the game entirely, restart the launcher, and log back in to generate a new valid session token before joining a server.
How do I fix 'Failed to Login' without reinstalling Minecraft?
In most cases you can fix it without reinstalling. Simply close the launcher completely, wait 30 seconds, reopen it, log out of your account, and log back in. If that does not work, try flushing your DNS cache, checking Mojang's server status, or deleting the launcher_profiles.json file from your .minecraft folder.
Can a VPN cause the Minecraft 'Failed to Login' error?
Yes. VPNs can interfere with Minecraft's ability to reach Mojang's authentication servers, especially if the VPN routes traffic through a blocked or flagged IP address. Try disabling your VPN and launching Minecraft again. If the error goes away with the VPN off, try switching to a different VPN server location or adding Minecraft Launcher as an exception in your VPN settings.