Skip to content

Commit

Permalink
fix: add K256Jwk to JwkClasses
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com>
  • Loading branch information
sairanjit committed Jan 31, 2024
1 parent 31dd1ea commit db930ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/crypto/jose/jwk/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { P521Jwk } from './P521Jwk'
import { X25519Jwk } from './X25519Jwk'
import { hasCrv } from './validate'

const JwkClasses = [Ed25519Jwk, P256Jwk, P384Jwk, P521Jwk, X25519Jwk] as const
const JwkClasses = [Ed25519Jwk, P256Jwk, P384Jwk, P521Jwk, X25519Jwk, K256Jwk] as const

export function getJwkFromJson(jwkJson: JwkJson): Jwk {
if (jwkJson.kty === JwaKeyType.OKP) {
Expand Down

0 comments on commit db930ce

Please sign in to comment.