Minecraft signs you in through your Microsoft account, then checks that sign-in against Xbox and Mojang's own authentication servers every time you launch the game or join a server. Almost every error on this page comes from that chain somewhere, not from anything wrong with our server, so the fixes below are worth trying before you ask us for help.
Paid Java Account Required
We require a genuine, paid Minecraft: Java Edition account signed in through Microsoft. Cracked or pirated launchers cannot authenticate with Microsoft's servers at all, so if you are using one, none of the fixes below will get you connected. Buy the game properly at
minecraft.net first.
Invalid Session
If you see "Failed to login: Invalid session" when joining a server, your launcher is holding a login token that has gone stale. It has nothing to do with the server you are joining.
Fully close the game and the launcher, then reopen both. Launching fetches a fresh token, and this fixes it most of the time.
If that does not work, open your launcher's account settings, log out of the Microsoft account, then log back in.
Signed in on the same Microsoft account on two devices at once will invalidate the older session. Close Minecraft on the other device first if you use more than one.
Authentication Servers Are Down / Cannot Connect to Minecraft Services
This message means your launcher could not reach Microsoft, Xbox or Mojang's own servers to confirm your account, which can be a genuine outage on their end or something local to you.
Check the official
Minecraft help site or search for "Xbox Live status" for any reported outage before doing anything else.
Re-log into your launcher's Microsoft account, the same as the Invalid Session fix above.
If you are on a VPN, turn it off and try again. Microsoft's authentication can reject logins that come from unusual regions or flagged IP ranges.
Restarting your router clears up a surprising number of these, since a dropped or slow connection can time out the authentication request.
Cannot Sign In to Your Microsoft Account
If the game will not even get as far as an authentication error, and your Microsoft password or sign-in code is being rejected, the problem sits with the Microsoft account itself rather than Minecraft.
Try signing in at
xbox.com with the same account. If that fails too, it confirms the issue is with the Microsoft account and not Minecraft, and Microsoft's own account recovery and sign-in helper tools are the right next step.
Child accounts need a parent or guardian to approve them inside Microsoft Family before Minecraft will let them sign in. If you manage a child's account, check the family group settings first.
Signing into the Xbox app first, then opening Minecraft, pre-authenticates the account and clears up some sign-in loops that Minecraft alone cannot resolve.
Device Code Errors on CurseForge
CurseForge signs you in with a short device code rather than a password. If you see "Device code has expired" or the login times out, you simply took too long to enter it.
Restart the login from CurseForge to get a fresh code, and enter it straight away this time. If it keeps failing, try signing in through the regular Minecraft Launcher instead to check the account itself is fine.
Is It the Launcher or the Account?
If Prism or CurseForge will not authenticate, try the official Minecraft Launcher with the same account. If that signs in fine, the problem is specific to the third-party launcher, not your account, and reinstalling that launcher is worth a try before anything else.
Still Stuck?
These errors can take a couple of attempts to clear. If none of the above has worked,
visit our Discord and we will help you narrow down which layer is failing.