From db2d6542da55aeb06c2c91873fa373e40448fa7d Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Fri, 26 May 2023 20:10:47 -0500 Subject: [PATCH] remove trouble code --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index bf3ab6b..9bd7335 100644 --- a/main.go +++ b/main.go @@ -103,8 +103,8 @@ func authMiddleware(groups []string) gin.HandlerFunc { } // Add the token to the request context for later use - ctx := context.WithValue(c.Request.Context(), "token", token) - c.Request = c.Request.WithContext(ctx) + //ctx := context.WithValue(c.Request.Context(), "token", token) + //c.Request = c.Request.WithContext(ctx) // Call the next handler c.Next()