feat: Update JWT token generation to set cookie and modify authentication middleware to use cookie
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user