This is the Forge version of ReAuth, the Fabric version has been split off and is available here.
It is now possible to use Microsoft accounts with ReAuth in 1.7.10 through 1.19
1.4.7-1.7.2 versions may come at a later time
Overview:
- Fixes the Problem of having to restart your Client when your Session is invalid
- Shows you wether your Session is valid
- Login and retry for failed connection attempts
- Change Accounts while Minecraft is running
- Change Username for playing offline
Description:
This Mod is Clientside only - it will have no effect in a servers mod folder.
While entering your Logindata into a "random" Mod might sound risky, you are more than welcome to look at the code yourself.
To that end the Code is visible on Github; a Java-Decompiler (JD-GUI) is available here.
You are free to include this Mod in any Modpack as long as the Mod is not modified and the ModPack is distributed free of charge and in accordance to Mojangs EULA.
Features:
- The Multiplayer Screen now features a Session indicator at the top: If it's red you'll have to log in again.
- On the Login Screen you can login and optionally save your password to config. Please bear in mind that, while the credentials are encrypted before being saved to config, a malicous programms may still gain access to your password that way. The Encryption is AES based with the Key derived from the Files Location, Symlinks may be used to relocate the config or share it between instances.
- If a connection to a server fails because of an invalid session, two buttons are added to error screen. The first allows for opening the Login Screen. The other provides a quick "login and retry" functionality, when credentials are saved to config.
- From 1.7.2 onwards a hidden button is available in the MainMenu (id 17325) for use with CustomMainMenu.
on 1.18 for some reason my button to authorize doesn't show up on the multiplayer menu, only the red checkmark
version 4.0.6 does not work consistently. Although it worked the first time I used it (mind you with a bit of confusion about the new authentication workflow compared to the 1.18 iteration of the mod), subsequent attempts do not work. If I use the "this device" button, i get an error telling me to try again (with no further information), which tells me to try again even if I just tried again. I tried the "any device" button instead, and while that seems to work, my first attempt to connect to my friend's server was met with "expired public profile key" and the second attempt hung the game client completely. I gave up after about 30 seconds of "not responding".
A few observations:
first of all, it's possible the "this device" button didn't work this time on account of using Windows 10, whereas I think the first time may have been on Windows 11. I don't think the OS authentication services are that different, but they might be different enough.Actually, never mind. This mod is not installed on my laptop, the only Windows 11 computer I have. It's only installed on the Windows 10 computer, so Windows 10 worked and then it didn't...Secondly, I should note that after trying the "any device" button, I forgot to give Mojang/Microsoft (mic-Moj-soft?)'s auth services a chance to catch up with the login before beginning to connect to the game server. I know this has caused issues for me in the past (like when I used the 1.18 iteration of the mod), so that may have been why the first attempt with the "any device" option failed... but none of this should've caused the game to crash completely on the last attempt.
The 1.19.3 Forge versions still don't work with the game I'm afraid on any of the last 44.1. Forge versions. Can you remove it from your downloads until it's fixed? It just crashes the loading of the game. Only mod installed. It simply doesn't work (this is coming from an experienced modder btw).
Both 4.0.6 and 4.0.4 for 1.16.5 don't work, pressing the "reauth login" button causes the screen to be darkened except for a box where the GUI should be which is at full brightness, but the GUI never appears.
I've been noticing an issue where sometimes, if I connect to my Minecraft server too soon after relogging, it'll get kicked out of the session it just started for some reason. What's up with that? It's usually fine if I wait 10 to 20 seconds, which is way better than the 3-5 minutes it takes to start this modpack, but it's still kind of irritating. Shouldn't say it's logged in unless it's actually logged in, you know?
Version: 4.0.4 Minecraft 1.18.2
When I try to log in it says failed every time. and when I do this Device, it pushes me to 127.0.0.1. and When I try to do any Device, it tells me failed as well...
It works fine with Any Device, and the Any Device uses the same API calls it seems that the pocket and switch versions use that need to use the MS login url via a web browser, I also have this error 127.0.0.1 on 1.18 and up.
In reply to badkaipanda:
oddly, localhost (which should point to the same place) seems to work, but ofc if you just type that in manually, it doesn't send whatever the actual request is.
when I try to login it brings me to Microsoft, I select my account, and then agree to reauth using my xbox account info, and then I get an error that says "this site can't be reached" and under that it says "127.0.0.1 refused to connect." I am on 1.18.2. Also, what is the difference between choosing "This Device" and "Any Device"?
In reply to StormDragon_64:
Same, this mod no longer works. Need to fix the 127.0.0.1 issue please.
Can you port this to 1.19.2 and make it for Fabric, please? 🥺
In reply to mshangaonolife:
The fabric port is on a separate project, https://www.curseforge.com/minecraft/mc-mods/reauth-fabric
Port for 1.19.2?
heyy idk how to do this reauth can anyone tell me how or give me a video?
1.18.2 i removed the mod but the reauth button still persist, how to reset gui ?
when will you update fabric
This version is still marked as a fabric mod, may want to get that looked at.
In reply to adriengreensad:
I dont see anywhere ReAuth is still marked as a Fabric Mod. Could you please elaborate on where you have seen this?
dont work with microsoft accounts
so for most accounts this mod is very useless.
In reply to XiNaru1991:
I recommend OAuth Mod, its basically the same, but support legacy, Mojang, and Microsoft accounts.