shubham1chawla / the-strategists-remastered

Monopoly-inspired turn-based online multiplayer game
https://strategists.netlify.app/
3 stars 1 forks source link

Implementing Spring Security - JWT tokens #43

Open shubham1chawla opened 5 months ago

shubham1chawla commented 5 months ago

Should we generate our own token or use the Google OAuth Token required for logging the user?

majun1111 commented 1 month ago

We can generate our own JWT Token

shubham1chawla commented 1 month ago

Hello @majun1111, thanks for commenting. How would you go about designing it for this project? We need to store two pieces of information - the player's ID and game code.

Additionally, I am thinking of a way to throttle the API requests to avoid DDOS attacks.

If you have any thoughts, we can collaborate and integrate them into the game.

Again, thanks for commenting!

majun1111 commented 1 month ago

We can use custom DTO class and add the player id and game code

shubham1chawla commented 1 month ago

@majun1111, can you create a branch and try to implement a solution? If you need help setting up the server, connect with me on LinkedIn, and we can schedule a call.