From 6f8eaba30d36e7d9a8c272c306bd89cedbf9fdd4 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Wed, 12 Jul 2023 19:28:20 +0000 Subject: [PATCH] Update file jwt_adapter.go --- jwt_adapter/jwt_adapter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jwt_adapter/jwt_adapter.go b/jwt_adapter/jwt_adapter.go index f0700d3..3b81479 100644 --- a/jwt_adapter/jwt_adapter.go +++ b/jwt_adapter/jwt_adapter.go @@ -24,7 +24,7 @@ type JwtAdapter struct { func init() { aS := os.Getenv("JWT_SECRET") - + fmt.Println("ASS", aS) if len(aS) != 0 { accessSecret = aS } @@ -67,7 +67,7 @@ func Decode(tokenString string) (*JwtAdapter, error) { if _, ok := token.Method.(*jwt.SigningMethodRSA); !ok { return nil, fmt.Errorf("unexpected signing method: %v", token.Header["alg"]) } - + fmt.Println("ASSS", accessSecret) return jwt.ParseRSAPublicKeyFromPEM([]byte(accessSecret)) })