Skip to content

Commit

Permalink
fix: set key algorithm for generated JWKs
Browse files Browse the repository at this point in the history
  • Loading branch information
tronghn committed Nov 20, 2024
1 parent ae71e47 commit 34a60ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jwkutils/jwkKeyGenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ func GenerateJWK() (jose.JSONWebKey, error) {
keyId := uuid.New().String()

jwk := jose.JSONWebKey{
Key: privateKey,
KeyID: keyId,
Use: "sig",
Key: privateKey,
KeyID: keyId,
Use: "sig",
Algorithm: "RS256",
}
return jwk, nil
}
Expand Down

0 comments on commit 34a60ca

Please sign in to comment.