fix: remove log

This commit is contained in:
Lakhan Samani 2022-03-09 17:24:53 +05:30
parent 776c0fba8b
commit 2bf6b8f91d

View File

@ -2,7 +2,6 @@ package token
import (
"errors"
"fmt"
"github.com/authorizerdev/authorizer/server/constants"
"github.com/authorizerdev/authorizer/server/crypto"
@ -92,7 +91,6 @@ func ParseJWTToken(token, hostname, nonce, subject string) (jwt.MapClaims, error
return claims, errors.New("invalid audience")
}
fmt.Println("claims:", claims["nonce"], nonce, claims["nonce"] == nonce)
if claims["nonce"] != nonce {
return claims, errors.New("invalid nonce")
}