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 <lukas.j.han@gmail.com>
Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
  • Loading branch information
lukasjhan authored and cre8 committed Mar 8, 2024
1 parent cd2991b commit fe0d8f6
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 fe0d8f6

Please sign in to comment.