Failed to verify username or invalid session
I get "Failed to verify username" or "Invalid session".
Your game's login session with Microsoft is stale; restart the launcher and sign in again.
Before you start: The official Minecraft Launcher and your Microsoft account.
Step by step
- Close Minecraft completely and the launcher.
- Open the launcher, sign out and sign back in with your Microsoft account.
- Start the game again and join.
- If many players get it at once, Mojang's login service may be down; wait and try later.
- Check your internet time and date are correct on your PC; a wrong clock can break the login check.
- Do not turn online-mode off to fix this: that lets anyone join as any name, including yours.
Check it worked: You join without the error.
Why it happens: The server checks every player with Mojang/Microsoft when online-mode is on.
More guides on Joining and connection problems: