feat: Update JWT token generation to set cookie and modify authentication middleware to use cookie

This commit is contained in:
2025-03-11 17:14:55 +00:00
parent 728258caa7
commit 165432208c
3 changed files with 11 additions and 18 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ func SetupRouter(r *gin.Engine) {
// Protected routes
protected := api.Group("")
//protected.Use(middleware.AuthMiddleware())
protected.Use(middleware.AuthMiddleware())
{
// Auth routes (protected)
protectedAuth := protected.Group("/auth")