From 5b4411cbb755a5563cf1244270bebb48d30b8e1d Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 13 Apr 2023 00:34:19 +1000 Subject: [PATCH] no need for debug logging --- internal/auth/jwt.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/auth/jwt.go b/internal/auth/jwt.go index 0f63211..91317f1 100644 --- a/internal/auth/jwt.go +++ b/internal/auth/jwt.go @@ -2,7 +2,6 @@ package auth import ( "fmt" - "log" "strings" "time" @@ -110,7 +109,6 @@ func CurrentUserRoles(c *gin.Context) ([]string, error) { claims, ok := token.Claims.(jwt.MapClaims) if ok && token.Valid { - log.Printf("%+v", claims) roles := []string{} for _, role := range claims["roles"].([]interface{}) { roles = append(roles, role.(string))