From 59fd25c8e83e4cd433aca54d654a8bb3be5aa6ef Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Sun, 16 Jul 2023 09:37:46 -0700 Subject: [PATCH] do not print out the issuer key in plain text. only used for debugging. --- backend/pkg/auth/jwt_utils.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/pkg/auth/jwt_utils.go b/backend/pkg/auth/jwt_utils.go index fbb576026..4bbb044d0 100644 --- a/backend/pkg/auth/jwt_utils.go +++ b/backend/pkg/auth/jwt_utils.go @@ -5,7 +5,6 @@ import ( "fmt" "github.com/fastenhealth/fastenhealth-onprem/backend/pkg/models" "github.com/golang-jwt/jwt/v4" - "log" "strings" "time" ) @@ -16,7 +15,7 @@ func JwtGenerateFastenTokenFromUser(user models.User, issuerSigningKey string) ( if len(strings.TrimSpace(issuerSigningKey)) == 0 { return "", fmt.Errorf("issuer signing key cannot be empty") } - log.Printf("ISSUER KEY: " + issuerSigningKey) + //log.Printf("ISSUER KEY: " + issuerSigningKey) userClaims := UserRegisteredClaims{ RegisteredClaims: jwt.RegisteredClaims{ // In JWT, the expiry time is expressed as unix milliseconds