The invalid session Minecraft error on Java means the sign-in token your launcher handed to Minecraft has gone stale. Restarting Minecraft and the launcher is the first fix. If it does not work, sign out and back in, then check whether Mojang's authentication servers are down. This guide covers Java only, and the Bedrock Marketplace sign-in reset is a separate case (see the Bedrock section).
What the invalid session error means
When you start Minecraft, the Modrinth App passes it a key called an access token. Minecraft uses that key to call the authentication servers and assign your account to the server you join, which verifies that you own the game. If the token goes stale, joining a server fails with "Invalid session (Try restarting your game and the launcher)". Two causes are named: leaving Minecraft open for too long, and a bug in the app.
Restart Minecraft and the launcher
Start with the cheap fix. Close Minecraft completely, close the launcher, then open the launcher and start Minecraft again.
If the sign-in itself fails with a "can't connect to Minecraft services" message, check that your internet works and that you are signed into the same account in the Microsoft Store app and in the launcher. On Windows you can also install and sign into the Xbox App and add any dependencies it recommends, such as Xbox Identity Provider or Xbox Live In-Game Experience, or reset the Microsoft Store by pressing the Windows key + R, typing `WSReset` and pressing Enter. For how the login and the account relate, see what a Minecraft Microsoft account links.
Sign out and back in on the Modrinth App
The Modrinth App should refresh your token the moment you start Minecraft, so restarting Minecraft is usually enough. Restart the app as well to be sure. If you keep getting the same error, sign out of your Minecraft account inside the app and sign back in so it creates a new token. Modrinth describes the repeat failure as an app issue it plans to fix in future updates, so treat the sign-out as a workaround. New to the app? See how to use the Modrinth App.
Delete the minecraft_auth.json file
A bug in Modrinth App 0.7.0 and above can make the app refuse to refresh your token even after you sign out and in. The workaround is to delete the stored authorization file.
- 1.Open Settings in the Modrinth App.
- 2.Copy the current App directory path in the Resource management section.
- 3.Open the copied path in your file explorer.
- 4.Close the app.
- 5.In the app's directory, go to the `caches` folder, then the `metadata` folder.
- 6.Delete the `minecraft_auth.json` file.
- 7.Restart the app, sign in, and try joining the server again.
Check whether Mojang's services are down
If the steps above fail, the app may not be at fault. The authentication servers can be down. Recent Minecraft releases should say so instead of reporting an invalid session, but it is still worth checking.
- Read the official @MojangStatus Twitter account for acknowledged incidents.
- Look at the Downdetector website to see whether other players report problems.
- Open Minecraft from the official Minecraft Launcher and try the same server.
When the fault is on Mojang's side, you can only wait until it is fixed. A launcher comparison is in Modrinth App vs CurseForge app vs Prism Launcher if you want to know what each one handles for you. For other launch problems, the beginner troubleshooting checklist is the next stop.
Resetting the Bedrock sign-in for Marketplace
Bedrock has its own sign-in, and the Modrinth steps above do not apply to it. Signing out and back in resets your connection to the authentication servers for Marketplace, downloadable content and other services. On PlayStation, Nintendo Switch and mobile, the steps are below. For what the store sells, see what the Minecraft Marketplace is.
- 1.Open Minecraft and select Settings.
- 2.Select Account.
- 3.Select Sign out of your Microsoft Account.
- 4.Select Sign in for free!
- 5.Go to aka.ms/remoteconnect and enter the alphanumeric code shown on screen.
- 6.Enter your Microsoft account credentials and sign in.
On Xbox, close Minecraft, press the Xbox button, open the Profile & System tab, select your account, then select Sign Out and sign back into your profile.
Frequently asked questions
What does Invalid session (Try restarting your game and the launcher) mean?
The access token the launcher gave Minecraft is stale, so the authentication servers will not assign your account to the server you are joining. Leaving Minecraft open too long or a launcher bug can cause it. Restart Minecraft and the launcher first, then sign out and back in if the error repeats.
Can Mojang's servers being down cause an invalid session error?
Yes, the authentication servers can be down, although recent Minecraft releases should tell you that instead of reporting an invalid session. Check the @MojangStatus Twitter account and Downdetector. You can also try joining from the official Minecraft Launcher. If Mojang is at fault, you have to wait for the fix.
Is it safe to delete minecraft_auth.json in the Modrinth App?
Deleting it removes every piece of Minecraft authorization data the app has stored, so you sign in again afterwards. Close the app first, delete the file from the `caches` then `metadata` folder, and restart. It is a workaround for a bug in Modrinth App 0.7.0 and above.




