Guide · Troubleshooting

Fixing "Failed to verify username" and "Invalid session"

These errors mean the server could not confirm your account with Mojang. It is rarely the server's fault, and usually fixed by refreshing your login.

Fixes for players

  • Close the game and the launcher completely, then start again
  • Log out of the launcher and log back in
  • Check that your computer's date, time and time zone are set automatically
  • Turn off VPNs or proxies that may interfere with authentication

Is authentication down?

If many players get the error at once on many servers, Mojang's authentication services may be having trouble. Check Minecraft's official status channels and wait; nothing on your side will fix an outage.

Server-side causes

If only your server shows the error, check that the server has internet access to Mojang's session servers and that its clock is correct. On a network, players must connect through the proxy; joining a backend directly that expects proxy forwarding gives similar errors. Make sure online-mode and forwarding are configured consistently.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

Why does only one server say "Failed to verify username"?
That server cannot reach Mojang, or it is a proxy backend you are connecting to directly. Ask the owner, or join through the main address.
Should I turn online-mode off to fix it?
No. That removes account verification and lets anyone join with any name. Fix the session or wait out the outage instead.
Does this error affect Bedrock players?
Bedrock uses Xbox accounts. On Geyser servers, Floodgate handles their verification, so the error has different causes there.