delete some logs
This commit is contained in:
parent
a234eec543
commit
bd1c2126bc
@ -33,7 +33,6 @@ type JwtAdapter struct {
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
aS := os.Getenv("JWT_SECRET")
|
aS := os.Getenv("JWT_SECRET")
|
||||||
fmt.Println("ASS", aS)
|
|
||||||
if len(aS) != 0 {
|
if len(aS) != 0 {
|
||||||
accessSecret = aS
|
accessSecret = aS
|
||||||
}
|
}
|
||||||
@ -76,7 +75,6 @@ func Decode(tokenString string) (*JwtAdapter, error) {
|
|||||||
if _, ok := token.Method.(*jwt.SigningMethodRSA); !ok {
|
if _, ok := token.Method.(*jwt.SigningMethodRSA); !ok {
|
||||||
return nil, fmt.Errorf("unexpected signing method: %v", token.Header["alg"])
|
return nil, fmt.Errorf("unexpected signing method: %v", token.Header["alg"])
|
||||||
}
|
}
|
||||||
fmt.Println("ASSS", accessSecret)
|
|
||||||
return jwt.ParseRSAPublicKeyFromPEM([]byte(accessSecret))
|
return jwt.ParseRSAPublicKeyFromPEM([]byte(accessSecret))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user