Skip to content

Commit

Permalink
do not print out the issuer key in plain text. only used for debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Jul 16, 2023
1 parent e897ddc commit 59fd25c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/pkg/auth/jwt_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"github.com/fastenhealth/fastenhealth-onprem/backend/pkg/models"
"github.com/golang-jwt/jwt/v4"
"log"
"strings"
"time"
)
Expand All @@ -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
Expand Down

0 comments on commit 59fd25c

Please # to comment.