mojira.dev
WEB-6501

"Failed to log in: Invalid session" when attempting to connect to servers

Whenever I try and play any server I get this disconnected screen, I've tried restarting my PC and launcher and client, loading on a non modded client and uninstalling and reinstalling the launcher. Bedrock doesn't have this issue when I play on servers on that version. please fix!

Related issues

MC-262262 cant connect to servers MC-262263 Invalid session help MC-262271 Invalid session Error MC-262273 reoccuring message to restart game when joining online server MC-262274 Licensed version of the game. MC-262276 Invalid session Error its not a dupe of MC-262263 MC-262277 I cant join minecraft online servers MC-262278 ''Failed to login: Invalid session'' Error MC-262280 Problems while trying to join a multiplayer server such as Hypixel Failed to Login : Invalid session (Try restarting your game) MC-262282 Failed to login: Invalid session(try restarting your game and the launcher) MC-262284 Any time i try to join my realm or a multiplayer server its tell me my session is invalid and to restart my game and launcher. Despite doing all that,uninstalling, and restarting my computer the problem persists. MC-262285 Failed to login MC-262286 mark genuine launcher error MC-262288 Minecraft Login Error: Invalid session (try restarting the game) MC-262290 failed to login. Invalid session. No connect to serversProcessing login request with microsoft account MC-262291 Failed to log in: Invalid session (try restarting your game and the launcher)

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media]
Brain81505

Dupe of MC-198546, but the bug have been fixed.

Siggi

It can't be a dupe of a bug from 3 years ago though?  I have the exact same problem right now!

Siggi

Below might be inaccurate, as I've checked another account that does work and it does indeed have the flags token, but the other account I tested does not have psnid.  It could be that being linked to PlayStation might cause Java Edition to stop working?

------------------------

TL;DR: "flags" was added to JWT token, and I suspect this is causing the auth server to throw an exception when validating the JWT token.

------------------------

Perhaps a backend server is throwing an exception when it sees an unexpected new item in the JWT token.

An old JWT token that worked for me in the past (although it is expired now)

eyJraWQiOiJhYzg0YSIsImFsZyI6IkhTMjU2In0.eyJ4dWlkIjoiMjUzNTQ0NDIyNTY5NzQ5NCIsImFnZyI6IkFkdWx0Iiwic3ViIjoiZjMxMTgwOGEtZTUwZC00NDgxLWI2ZjEtOTg4M2ZlZGY0Nzk1IiwiYXV0aCI6IlhCT1giLCJucyI6ImRlZmF1bHQiLCJwc25pZCI6Ijg4NjgxOTcyMDE1MTYwNjM1NjgiLCJyb2xlcyI6W10sImlzcyI6ImF1dGhlbnRpY2F0aW9uIiwicGxhdGZvcm0iOiJQQ19MQVVOQ0hFUiIsInl1aWQiOiJjYTYyOTRjMzg5MTg0YmFmYjdjYzI0ZjI5ODQxMjMyMCIsIm5iZiI6MTY3OTIyMDc1MCwiZXhwIjoxNjc5MzA3MTUwLCJpYXQiOjE2NzkyMjA3NTB9.<redactedsignature>

The its decoded payload:

{   "xuid": "2535444225697494",   "agg": "Adult",   "sub": "f311808a-e50d-4481-b6f1-9883fedf4795",   "auth": "XBOX",   "ns": "default",   "psnid": "8868197201516063568",   "roles": [],   "iss": "authentication",   "platform": "PC_LAUNCHER",   "yuid": "ca6294c389184bafb7cc24f298412320",   "nbf": 1679220750,   "exp": 1679307150,   "iat": 1679220750 }

And the JWT token I have now:

eyJraWQiOiJhYzg0YSIsImFsZyI6IkhTMjU2In0.eyJ4dWlkIjoiMjUzNTQ0NDIyNTY5NzQ5NCIsImFnZyI6IkFkdWx0Iiwic3ViIjoiZjMxMTgwOGEtZTUwZC00NDgxLWI2ZjEtOTg4M2ZlZGY0Nzk1IiwiYXV0aCI6IlhCT1giLCJucyI6ImRlZmF1bHQiLCJwc25pZCI6Ijg4NjgxOTcyMDE1MTYwNjM1NjgiLCJyb2xlcyI6W10sImlzcyI6ImF1dGhlbnRpY2F0aW9uIiwiZmxhZ3MiOlsidHdvZmFjdG9yYXV0aCIsIm9yZGVyc18yMDIyIl0sInBsYXRmb3JtIjoiUENfTEFVTkNIRVIiLCJ5dWlkIjoiY2E2Mjk0YzM4OTE4NGJhZmI3Y2MyNGYyOTg0MTIzMjAiLCJuYmYiOjE2ODMwMjk4MzcsImV4cCI6MTY4MzExNjIzNywiaWF0IjoxNjgzMDI5ODM3fQ.<redactedsignature>

The its decoded payload:

{   "xuid": "2535444225697494",   "agg": "Adult",   "sub": "f311808a-e50d-4481-b6f1-9883fedf4795",   "auth": "XBOX",   "ns": "default",   "psnid": "8868197201516063568",   "roles": [],   "iss": "authentication",   "flags": [     "twofactorauth",     "orders_2022"   ],   "platform": "PC_LAUNCHER",   "yuid": "ca6294c389184bafb7cc24f298412320",   "nbf": 1683029837,   "exp": 1683116237,   "iat": 1683029837 }

Note how the latest token has a new item called "flags" perhaps a backend server is throwing an exception when it sees this unexpected new item.  I also tested with other accounts and for the ones that get a JWT token without a "flags" item they can log in without issues.

migrated

@unknown how is it fixed if me and Sigurour are having this problem

Siggi

Duplicate issues: MC-262263, MC-262262

migrated

really odd that they are behind me in the single digits like it isn't fixed at all

migrated

getting the same problem here
can confirm

migrated

Same from me. re-installed everything. And its just on my main. Not even on my ALT account that i have. Very weird

migrated

Seeing the same on 1.16.2 modded server

migrated

same issue here (same with my friend)

migrated

the issue for me could only be resolved by using a differnet account also as @unknown has pointed out the osn thing could be a thing as my main acc is linked to psn

migrated

yo when did this occur? I wanna know cause mine started today

Siggi

As @xSakieru mentioned being linked to PSN this may be the case but I cannot verify that unlinking PSN mitigates the issue because the ability to unlink Microsoft Account from PSN is also broken.

Siggi

@iRGX this only started today, it was working fine for me last night.

migrated

@

Sigurður Jón (ð is an accented d) same with a ton of other people so hopefully it will be fixed by tomorrow

 

migrated

Same issue. First issue was at 10am BST for me, and worked the night before.

Siggi

It seems Microsoft Login for PSN is completely broken, and it might be affecting Java Edition as well if you use the same Microsoft Account.  I just signed out of Microsoft Account on my PS4 and cannot sign back in as it says the account is already linked to a different PSN account even though I just removed it from the PSN account I'm on right now.

migrated

sigurour jon yea its also microsoft I use microsoft acc

 

migrated

this started this morning for those asking

migrated

This appears to effect accounts that has had a device with minecraft bedrock linked to it example. PS4, Switch, since my alt has never had bedrock launched on consoles while on it thus it wasnt effected

migrated

Me e cambiado el nombre por si ese era el problema pero resulta que sucede al tener minecraft bedrock vinculado a una consola hace que minecraft Java se buguee. Llebo 

todo el dia intentando entrar a los servidores y no me deja.

migrated

me funcionó bien anoche pero hoy empezo todo

migrated

Espero que sea arreglado lo antes posible

Siggi

Not many people have Minecraft on both console and PC.  I wonder how long it'll take for Mojang to notice this problem.  I literally only use PS4 Bedrock Edition to test gameplay on my server as a console user.  Quite annoying that because of that I can't log into my server on Java.

migrated

i sure hope they will fix that soon. It seems we are not that much people. 

migrated

Mojang please fix it. I just wanna get back on hypixel skyblock and mine trees 😞.

migrated

Also, I'm not sure if this has been mentioned yet, but minecraft realms is also not working, bringing up error 500.

migrated

same issue here Mojang wtf

migrated

tell everyone you guys know to vote this issue cause its getting annoying...

migrated

been trying to get onto my 1.18 modded smp for 6 hours now

migrated

It does the same for me, it seems to only happens to people who have ever connected to console or PE once in their life. Even on a friends console. I am 75% sure this is the reason of the problem.

Edit: None of my friends get this error and they have never logged on on another platform other than PC.

2nd edit: It seems to only happen to people who have linked their account to PSN.

3rd edit: MOJANG PLEASE FIX THIS!

migrated

Haven't been able to get on to a server all day, I was able to May 1st, 2023 around 7:30 PM EDT but now It gives me the session invalid message.

EDIT 1: Using essentials mod is indicating a 403 error that it could not authenticate with Mojang.

migrated

I was able to connect to servers up until 2 May 2023 at about 1:00 A.M. EDT.  Tried getting on about 10:00 A.M. EDT on 2 May 2023 and couldn't.  Still unable to connect to Java servers.  Bedrock edition seems to work just fine.

migrated

is anyone still unable to join???

Siggi

I don't think this will be fixed until morning in Sweden (since that's where Mojang is) at the very earliest.  Just get your friends to upvote this bug and Mojang will see it first thing in the morning.

migrated

Yes I am still unable to join on my MAIN. It turns out that if you have a bedrock account attached to your microsoft account it will do the issue above. BUT if your account doesn't have bedrock attached to it, then I have been able to join. Hope this helps!

migrated

actually no DolphXD because my friend owned bedrock too in the same account

Siggi

It is not caused by having Bedrock on your account, it's caused by having specifically PlayStation linked to your account.  Other Bedrock platforms don't cause this issue.

migrated

From my brief testing on the Windows 11 UWP Minecraft Launcher, uninstalling then reinstalling the app works fine without an issue.
A friend of mine confirmed it works too. 
Perhaps try reinstalling, as it might (milage may vary) work for you. 

migrated

I also experience this issue only with an account that is also associated with PSN.  My child's account which has both Java and Bedrock for Windows/Xbox is unaffected by this issue.  

Is there a clean way of removing the association with PSN?

migrated

Adding on to the PlayStation link issue.

Was not able to join a server hosted on my machine, that another account was able to connect to over the internet. Auth issue was tied specifically to my account regardless of network. I just linked my PlayStation account for minecraft dungeons within the past couple weeks

Siggi

@cruikshj Normally, in Minecraft on PS4, you go to Settings -> Account -> Unlink Microsoft Account, but this is currently broken.

migrated

welp i cannot unlink it since i forgot the password of my psn that is linked to my mc ps4

migrated

I have this problem too, it started last night

migrated

Even if I log out of the PS4, the same symptom. This is already a category that normal users cannot fix. Nothing can be done until Mojang takes his hand.

migrated

Would love for this to get fixed before I get back from my college today because the last thing I want is to come home to "Failed to log in: Invalid Session" all because I gave Mojang and Microsoft more money than they deserve.

 

migrated

 I am getting same issue, logged out of everything, changed passwords, repaired and reinstalled, nothing has helped

migrated

Yeah mate tried the same exact thing and after contacting Mojang, they just said "have you tried these things" and listed exactly what I've already told them I did.

chrstffr

I still can't log in. Been like this for at least 18 hours.
The Launcher reports no login problems and welcomes me, reading my IGN name correctly.

  • I've tried on both macOS and Windows on different computers.

  • Relogging, rebooting, reinstalling with the same result.

Server log says my ID is <null>

[05:45:43] [Server thread/INFO]: com.mojang.authlib.GameProfile@<hash redacted>[id=<null>,name=chrstffr,properties={},legacy=false] (/<ip redacted>) lost connection: Disconnected
migrated

For me (Mac) it started around 12:00 (Germany) yesterday.
The possibility of being caused when linked to a PSN account seems likely.

I hope that they will fix this, as it lasts almost 24h now. Guess if the problem would be a general link to a bedrock edition would have caused much more screaming...

migrated

I have 2 accounts for personal reasons and 1 of my accounts is getting this issue while the 2nd one is completely fine.

migrated

Pretty sure its been 24 hrs since I could even join a server, this is honestly embarrassing. You would think big companies like Microsoft, Mojang, and Playstation would have already resolved this issue. Migration was the dumbest thing implemented.

migrated

Please only leave comments if you have something to add to the report, not just "I have this problem too", speculating about a cause, nor complaining about the issue.
52 comments (excluding this one) were added to this report in less than 24 hours, and only a handful of them actually add information to this report. This kind of activity (the other comments) are just bloating the bug tracker's activity feed and fueling your own emotions. Please go to reddit, discord or any other place to talk about this issue, and only leave informational responses here.

migrated

Also deleted my saved data for miencraft on PlayStation, it allowed me to login to a different Microsoft Minecraft account but it did not fix this issue.

migrated

I am having the same issue.  I was playing just fine on Monday, and I now have a login issue on Tuesday and have not been able to connect all day and into Wednesday.

I have uninstalled and reinstalled everything and even changed my password.  Not sure what else to do and nothing worked.  Please help!!

migrated

Wasn't able to log in last night, still not able to log in now with my main account. I've swapped account to a different account of mine and was able to log in successfully, and all of my friends were able to log in to my server too. I can't see any reason for me to not be able to log in otherwise - very strange!

migrated

Same for me, I was able to connect yesterday, but not anymore

 

migrated

It hasn't been resolved, but I don't know what kind of joke it is to say that it has been resolved in the inquiry.?

migrated

Attached a screenshot.

Minecraft account, microsoft store account and xbox account all match.

Please solve it quickly.

Don't tell me you already solved it.

migrated

Having exactly same issue since yesterday. Can they already come up with the fix? it's ridiculous.

Can't connect to any server. Tried literally everything. And I didn't touch my ps5 for a few months so I don't really see how that's related. I ve been playing like usual and then the next day I couldn't log in anymore.

 

kercher

I just can now login, I don't know if they have solved the incident, I play in PC

 

Thx

migrated

Works for me, too.
Mac, Prism Launcher.
Thx for your fast reaction!

migrated

works for me now too!!

[MOD] Greymagic27

This should now be fixed. If you’re still experiencing this issue please see if Mojang Support can help resolve the issue.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

migrated

(Unassigned)

API

Retrieved