code100x / chess

A multiplayer chess platform
https://chess.100xdevs.com/
1.62k stars 581 forks source link

Error During Guest User Gameplay: AuthProvider is not defined #369

Open iammuhammadahmad opened 1 month ago

iammuhammadahmad commented 1 month ago

When trying to play the game as a Guest user, the following error occurs:

isGuest: WhitePlayer?.provider === AuthProvider.GUEST ReferenceError: AuthProvider is not defined

It seems that AuthProvider is not defined, as referenced in the following code segment.

https://github.com/code100x/chess/blob/e718e1376fa44d7735ede0c9d2b9e5c6ea7175bb/apps/ws/src/Game.ts#L140

https://github.com/code100x/chess/blob/e718e1376fa44d7735ede0c9d2b9e5c6ea7175bb/apps/ws/src/Game.ts#L145

Pull Request for Fix: This pull request #370 provides a fix for this Issue. It addresses the reported issue and ensures that the application functions as expected after the resolution. Kindly review the changes and provide feedback as needed.

iammuhammadahmad commented 4 weeks ago

Hi @hkirat, I hope you're doing well. When you have a moment, could you please review this issue? I've submitted Pull Request #370 for it. Thank you!