Skip to content

Commit fbec65c

Browse files
committed
chore: fix siging key
1 parent 563dd57 commit fbec65c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/token/jwt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (p *provider) SignJWTToken(jwtclaims jwt.MapClaims) (string, error) {
2626
case jwt.SigningMethodHS256, jwt.SigningMethodHS384, jwt.SigningMethodHS512:
2727
return t.SignedString([]byte(p.config.JWTSecret))
2828
case jwt.SigningMethodRS256, jwt.SigningMethodRS384, jwt.SigningMethodRS512:
29-
key, err := crypto.ParseRsaPrivateKeyFromPemStr(p.config.JWTPublicKey)
29+
key, err := crypto.ParseRsaPrivateKeyFromPemStr(p.config.JWTPrivateKey)
3030
if err != nil {
3131
return "", err
3232
}

0 commit comments

Comments
 (0)