Skip to content

Commit

Permalink
feat: restore rsa type in JWK (#137)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas.J.Han <[email protected]>
  • Loading branch information
lukasjhan authored Mar 6, 2024
1 parent 34b24c0 commit f02d6b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/types/src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ export type KBOptions = {
payload: Omit<kbPayload, 'sd_hash'>;
};

// This type declaration is from lib.dom.ts
interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}

interface JsonWebKey {
alg?: string;
crv?: string;
Expand All @@ -46,6 +53,7 @@ interface JsonWebKey {
key_ops?: string[];
kty?: string;
n?: string;
oth?: RsaOtherPrimesInfo[];
p?: string;
q?: string;
qi?: string;
Expand Down

0 comments on commit f02d6b0

Please sign in to comment.