axieum / authme

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

invalid profile public key #73

Closed jSdCool closed 1 year ago

jSdCool commented 1 year ago

Expected behavior

chat message send normally

Observed/actual behavior

message does not send and a message appears say that I have an invalid profile public key

Steps/models to reproduce

open 1.19.3 with this mod use this mod to re login to your account join a server with chat reporting try to send a message

Version

5.0.0

Agreements

Other

in 1.19.3 a change was made to auto refresh the profile public key to prevent this message from appearing the issue is prbly related to this

AspieGamer13 commented 1 year ago

I likely have a similar issue (as it's the same basic error (invalid profile public key), only on the login screen preventing me from joining a server)

not quite 24 hours since launching the game, but left it sitting on server list screen overnight between sessions got message: Failed to connect to server Invalid signature for profile public key Try restarting your game [Back to Server List] (Button) same message both before and after clicking Auth Me button and relogging

Also, I'm running mod version 4.1.0 on 1.19 (this is the most recent version that appears when filtering MC version to 1.19 on Modrinth)


my theory, based on playing a pre-chat reporting version, is 1.19.3 included a backend login/token change that retroactively breaks older versions of the mod. Because testing this mod requires having the game open for over a day to have your token expire, I won't be thoroughly testing.

Screenshot of error, logs show nothing: image

axieum commented 1 year ago

Hi 👋

Happy new year, I'm currently away and will be able to take a look in the coming weeks.

Here are the lines of code I suspect are at fault, but I can't do any debugging yet:

https://github.com/axieum/authme/blob/7ef38e0aae5833f5260ae6c2789a03b2bc4fbba8/src/main/java/me/axieum/mcmod/authme/api/util/SessionUtils.java#L87-L90

Thanks for your patience.