"Failed to Verify Username" on a Minecraft Server: How to Fix It
You click Join and get kicked back with "Failed to verify username!" or "Failed to log in: Invalid session (Try restarting your game and the launcher)". The server is fine. What failed is the check that proves you own your Minecraft account.
online-mode=false.What the error means
When you join, your game gets a session token from Microsoft, and the server asks Minecraft's session servers "is this player really who they say they are?" If that check fails, the server refuses you. Either your token is bad, or the server couldn't reach the session servers.
Fix 1: Restart and sign back in (fixes most cases)
- Close Minecraft completely.
- Close the launcher too. On Windows check the system tray, it likes to hide there.
- Open the launcher, sign out, then sign back in.
- Launch the game and join.
This gets you a fresh session token. Long gaming sessions, switching accounts, or waking your PC from sleep can leave the old token stale.
Fix 2: Check whether it's everyone
- Only one player gets it: it's that player's session. Fix 1, then Fix 3.
- Everyone gets it at once: Minecraft's login servers are likely having an outage. Search "Minecraft server status" or check Mojang's support accounts. Nothing you change on your server will help. Wait it out.
Fix 3: Correct the computer's clock
Logins use time-stamped tokens. If a PC's clock is off by several minutes, the token can look invalid. On Windows, open Settings, Time and language, turn on Set time automatically, and click Sync now. On Mac, turn on Set time and date automatically.
Fix 4: Changed your username recently?
After a name change, an old session can still carry your previous name for a short time. Sign out and back in (Fix 1). If you're whitelisted, an admin may need to re-add you, see how to whitelist players.
Fix 5: Using a non-official launcher
Unofficial launchers that don't sign you in with a real Microsoft account can't pass the check, by design. Use the official launcher or a launcher that signs in through Microsoft, like Prism Launcher or CurseForge.
Why not online-mode=false?
Setting online-mode=false in server.properties turns the check off. The error goes away, but so does all protection:
- Anyone can join with any name, including yours, and get your inventory and operator permissions.
- Bans and the whitelist stop being reliable.
- Your players' data gets tied to offline IDs, so turning it back on later can make everyone look like a new player.
It's only correct behind a proxy like Velocity or BungeeCord that does the login check itself. For a normal server, leave it on.
Still stuck?
If only your server shows the error but other servers work fine for the same player, check the console at the moment they join. A line about failing to reach sessionserver.mojang.com means the server itself couldn't reach the login check, which is a network problem on the server side. Your host can look at it.
Related
FAQ
Should I set online-mode=false to fix it?
No. It lets anyone join as any username, including yours, and they get your inventory and operator powers. Fix the login instead.
Only one of my friends gets the error. Is it the server?
Almost never. If everyone else can join, the problem is that player's game session. Have them fully sign out of the launcher, sign back in, and try again.
Can Bedrock players get this error?
Bedrock players joining through Geyser log in with their Xbox account instead. If Bedrock players can't join, check your Geyser and Floodgate setup instead.
Want a server that just runs fast?
FreaksMC runs on NVMe hardware with performance-tuned defaults baked in - pre-optimized Paper, sane view distances, and one-click world pre-generation. Set up in 60 seconds.
See plans from $3/mo