shrutsureja / Maze-Game

A single player Maze Game made with MERN
https://maze-game-teal.vercel.app
0 stars 1 forks source link

Add JWT based auth in the backend #10

Closed shrutsureja closed 5 months ago

shrutsureja commented 7 months ago

Need for the JWT is because anyone can access the backend from Server to Server request, any client based request or request from the browser are blocked by the CORS but we need something like JWT to block the extra request from other Servers or Scripts

shrutsureja commented 5 months ago

then we need 3 routes one to login, and other one to refresh the jwt token when need, the maze-generation this much complication is not needed to be done