No Invalid Session ID

No Invalid Session ID

Silently refreshes your Session ID so you don't get that pesky warning.

by
132 Downloads
fabricmanagementsocialutility
Rent Server with this Mod

Screenshots

Step 1, This is what you should see.
Step 2, input your code into the official MIcrosoft website.
Step 3, good to go! Delete the tab, go back to the game!
Logo

About this Mod

Welcome to NoInvalidSessionID!

This mod removes the pesky "Invalid Session" so you never have to relaunch your game to start a new session ever again!

When you first launch with this mod, you will get a message on your multiplayer screen saying to go to an official Microsoft site to put in a code that the mod will generate. All that this does is tell Microsoft, "This is my Session ID token currently, please allow access so every time I go to the multiplayer screen, I refresh this token".

After you put in the ID ONCE, it should work forever, no additional login required after that point. This mod is designed to work forever, thouh if you unlikely experience problems after 90 days, it's recommended to log in again. The code will expire after 90 days of inactivity, so in that case, follow the on screen instructions to put the code in again. However, that is only in the case of inactivity, so if you play at any point in that time frame, your session ID will never expire.

In the Gallery tab, both screens that you should see are shown, so you know if it's right or not.

Small Note: It's recommended to restart your game every once in a while, not due to the mod, but because Minecraft can become a power user of your system RAM and CPU over time.

Security & Privacy

This mod performs a Microsoft OAuth 2.0 login to refresh your session. Here is exactly what it does and does not do:

What it stores: A Microsoft refresh token, AES-256-GCM encrypted, saved to ~/.noinvalidsessionid/token.enc outside your Minecraft folder. On Mac and Linux the file is additionally restricted to your OS user account only (permissions set to 600).

What it never does: The mod never stores your Microsoft password, never sends your credentials anywhere except official Microsoft and Minecraft servers, and never communicates with any third-party server.

Endpoints used:

  • login.live.com — Microsoft authentication
  • user.auth.xboxlive.com — Xbox Live token exchange
  • xsts.auth.xboxlive.com — Xbox security token
  • api.minecraftservices.com — Minecraft session token and profile verification

Open source: The full source code is available on GitHub so you can verify exactly what the mod does.

Revoking access: You can revoke access at any time by going to account.microsoft.com → Security → Connected apps and removing it, or simply deleting ~/.noinvalidsessionid/token.enc.

Available Versions

Updated authentication to AES-256-GCMrelease
MC 26.1, 26.1.1, 26.1.2fabric
May 5, 2026

How to Install No Invalid Session ID on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).

3

Install Mod

Open the mod browser in the dashboard and search for "No Invalid Session ID". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

26.1.2, 26.1.1, 26.1

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

No Invalid Session ID server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.

Is No Invalid Session ID compatible with fabric?

No Invalid Session ID officially supports fabric for Minecraft 26.1.2, 26.1.1, 26.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with No Invalid Session ID – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if No Invalid Session ID consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install No Invalid Session ID with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Unsupported

Supported Versions

26.1.226.1.126.1