PrismarineJS / bedrock-protocol

Minecraft Bedrock protocol library, with authentication and encryption
https://prismarinejs.github.io/minecraft-data/?v=bedrock_1.17.10&d=protocol
MIT License
288 stars 68 forks source link

Server authentication error with relay #494

Closed Atomic69420 closed 3 months ago

Atomic69420 commented 3 months ago

When using relays to join a realm or server(only tried with realms but seems to be a issue for both) and joining the relay will give a error saying Server authentication error on 1.20.71. the full error is below Error: NotBeforeError: jwt not active at RelayPlayer.onLogin (C:\Users\USER-PC\Downloads\relayac\node_modules\bedrock-protocol\src\serverPlayer.js:87:13) at RelayPlayer.readPacket (C:\Users\USER-PC\Downloads\relayac\node_modules\bedrock-protocol\src\serverPlayer.js:169:14) at RelayPlayer.readPacket (C:\Users\USER-PC\Downloads\relayac\node_modules\bedrock-protocol\src\relay.js:156:13) at RelayPlayer.handle (C:\Users\USER-PC\Downloads\relayac\node_modules\bedrock-protocol\src\connection.js:170:16) at C:\Users\USER-PC\Downloads\relayac\node_modules\bedrock-protocol\src\server.js:105:35 at process.processTicksAndRejections (node:internal/process/task_queues:77:11)

Atomic69420 commented 3 months ago

also forgot to say but I am on 1.20.73 the relays on 1.20.71

extremeheat commented 3 months ago

You need to sign out and back in

Atomic69420 commented 3 months ago

I tried that. With just minecraft and with a bedrock protocol client nothing seemed to change. I did once get to the relay kicking me asking me to login but after I did and tried to reconnect it prompted me with the same error

Atomic69420 commented 3 months ago

I found out why it was doing that it was cause my computer was 1 minute off from the real time