Skip to content

Commit

Permalink
fix: missing crv attr in ec keys
Browse files Browse the repository at this point in the history
  • Loading branch information
lu1as committed Jan 1, 2025
1 parent 16583dd commit f09d875
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ type JWK struct {
Kty string `json:"kty"`
Alg string `json:"alg"`
Use string `json:"use"`
N string `json:"n,omitempty"`
E string `json:"e,omitempty"`
// for RSA keys
N string `json:"n,omitempty"`
E string `json:"e,omitempty"`
// for EC keys
Crv string `json:"crv,omitempty"`
X string `json:"x,omitempty"`
Y string `json:"y,omitempty"`
}
Expand Down

0 comments on commit f09d875

Please sign in to comment.