Session token invalidated literally secconds after logging in to my minecraft`?

Session token invalidated literally secconds after logging in to my minecraft`? - Free stock photo of aputure, backstage, c stand

Could this be a sign that someone else has access to my account or can this randomly happen? it doesn't happen frequently, just every now and then.



Best Answer

Invalid tokens are caused for a few reasons:

  1. Someone logged in to the account from a different location or at a different time, creating a new token and thus invalidating the previous ones.

  2. You copied either the launcher_profiles.json file or simply your entire .minecraft folder to another computer, which will of course create an invalid token as both computers will be trying to use the same token.

  3. It could be caused by using various third party launchers, as these require separate tokens to log in.

Other causes include multiple Minecraft instances running or the token just timing out. The token timing out seems unlikely based on what you said. An unlikely cause is an incorrect system time, but I highly doubt that is the problem.

However, as it doesn't happen all the time, it could simply be a fault in the operating system or your Java/launcher version.

That's all the causes I could find. It is most likely just an operating system or software problem.




Pictures about "Session token invalidated literally secconds after logging in to my minecraft`?"

Session token invalidated literally secconds after logging in to my minecraft`? - Free stock photo of baby, blood, child
Session token invalidated literally secconds after logging in to my minecraft`? - Free stock photo of adult, battle, blur
Session token invalidated literally secconds after logging in to my minecraft`? - An Artist Tattooing a Client on the Arm



How do I fix an invalid access token?

There are two ways to fix the error:
  • (RECOMMENDED) Change the application signature algorithm to RS256 instead of HS256.
  • Change the value of your responseType parameter to token id_token (instead of the default), so that you receive an access token in the response.


  • How do I fix my Minecraft token?

    Make sure there is nothing running anymore. Then open mineraft again and try to join your server. If it doesn't work, try to log-out then log-in again. If this does not work too, try to restart your computer.

    Do Minecraft tokens expire?

    By default, an ID token is valid for 36000 seconds (10 hours). If there are security concerns, you can shorten the time period before the token expires, keeping in mind that one of the purposes of the token is to improve user experience by caching user information.

    How do you get a Minecraft login token?

    How to get your Minecraft bearer token
  • Sign in to your Minecraft account at minecraft.net.
  • Open the Chrome / Firefox developer tools (ctrl + shift + i or f12) or right click and click inspect element.
  • Go to the "console" tab.
  • Paste this code into the console: ...
  • Copy the bearer token that it shows in the console.




  • The difference between, ID, access, refresh, and session tokens? | One Dev Question: Hirsch Singhal




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: cottonbro, Pavel Danilyuk, Pavel Danilyuk, Pavel Danilyuk