summaryrefslogtreecommitdiffhomepage
path: root/src/types.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-18 22:46:42 -0700
committerMatthew Miller <matthew@millerti.me>2020-05-18 22:46:42 -0700
commit5f21c2f49bf57af9dd8cb4b7d70bf4423a3a9923 (patch)
tree82f68c9397569f76895dff1e8cfef864ad464f9a /src/types.ts
parentb25c0fa0277e59809d88e3950018b685e2d40e1e (diff)
Add getCertificateInfo helper
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index 927cdf4..0379ced 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -65,3 +65,9 @@ export type VerifiedAttestation = {
base64CredentialID: string,
},
};
+
+export type CertificateInfo = {
+ subject: { [key: string]: string },
+ version: number,
+ basicConstraintsCA: boolean,
+};