From 72a30966a18a98ad24da199fe2a779d75c9c874c Mon Sep 17 00:00:00 2001 From: microshine Date: Sun, 17 Feb 2019 10:35:26 +0300 Subject: [PATCH] Fix JWK kty error for symmetric keys --- src/keys/key.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keys/key.ts b/src/keys/key.ts index 720ce9d..384fea7 100644 --- a/src/keys/key.ts +++ b/src/keys/key.ts @@ -15,7 +15,7 @@ export class CryptoKey extends core.CryptoKey { public usages: KeyUsage[] = []; @JsonProp({ type: JsonPropTypes.String }) - protected kty: string = ""; + protected kty: string = "octet"; @JsonProp({ type: JsonPropTypes.String }) protected alg: string = "";