axieum / authme

:lock: Authenticate yourself in Minecraft and re-validate your session
https://www.curseforge.com/minecraft/mc-mods/auth-me
MIT License
88 stars 35 forks source link

AuthMe not aware of multiple accounts #122

Open GaMeNu opened 3 months ago

GaMeNu commented 3 months ago

Expected behavior

When logging in with Microsoft, I expected to log in with the account I originally logged in to with the minecraft session.

Observed/actual behavior

I get logged in with a different account, usually the one of the session I launched latest

Steps/models to reproduce

I haven't fully managed to reproduce the issue purposefully yet, but here's what I've done when it has happened

Version

AuthMe: 8.0.0
Fabric Loader: 0.15.3
Game Version: 1.20.4

Agreements

Other

No response

axieum commented 3 months ago

Hi,

Have you tried holding Ctrl (in Minecraft) when you click to login with Microsoft? That should force the single sign-on to pause on Microsoft's end and ask to choose an account.

GaMeNu commented 3 months ago

Alright, I tried it and it worked, thanks for the help! I wonder if there's perhaps a way to cache or save the account that the client originally logged in with? That way it'll automatically use that instead of having to pick an account every time people use 2+ accounts.

GaMeNu commented 1 month ago

I attempted to create a fix for the issue in pull request #123. After the first session refresh using AuthMe, it should store the refresh token for the session for the next authorization. (This might not fix it on first login, but should fix on second login onwards)