Open theavgeekbee opened 10 months ago
Quick question the account you are trying to login to does it have a minecraft username set?
Yes, I logged in to my main account.
Weird was just wondering since i made a pr request to add a new function that supports accounts without a name set
Necro but I don't care:
It's a library to get a session/access token from an account and not a library to automatically set the session..that's not what it's supposed to do.
Necro but I don't care:
It's a library to get a session/access token from an account and not a library to automatically set the session..that's not what it's supposed to do.
The Readme:
The phrase "LOGGED IN" implies that the user was LOGGED INTO THE ACCOUNT. You are correct, the current state of the library is to get the access token for an account. It does not set the session yet, and should be indicated as such in the README. The phrase "Logged in..." in the README is misleading because there is no indication that the user needs to set the session themselves.
Describe the bug When running any login method in
MicrosoftAuthenticator
, the client doesn't seem to log in. I verified this by running theloginWithCredentials
method with my own credentials, but no exception was thrown. When logging into singleplayer, I was still on the default Fabric profile of "Player###" and multiplayer yielded "Invalid Session".To Reproduce Steps to reproduce the behavior:
Expected behavior I expected OpenAuth to actually set the session.
Desktop (please complete the following information, if Self-Hosted):
Additional context I found a solution to this problem by manually setting a session. In my alt manager class, I created the function
login()
, which logs in the player.Then, I created a mixin:
This solved my problem, except the skins don't load. This is probably due to the missing
clientId
andxuid
fields that I set toOptional.empty()
in this code. I'm not sure yet, but I think OpenAuth has these fields in the code. I hope that this could be implemented in the future.