remove trouble code

This commit is contained in:
2023-05-26 20:10:47 -05:00
parent 8c2969386b
commit db2d6542da

View File

@@ -103,8 +103,8 @@ func authMiddleware(groups []string) gin.HandlerFunc {
} }
// Add the token to the request context for later use // Add the token to the request context for later use
ctx := context.WithValue(c.Request.Context(), "token", token) //ctx := context.WithValue(c.Request.Context(), "token", token)
c.Request = c.Request.WithContext(ctx) //c.Request = c.Request.WithContext(ctx)
// Call the next handler // Call the next handler
c.Next() c.Next()