summaryrefslogtreecommitdiffhomepage
path: root/src/helpers/decodeAttestationObject.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-18 08:38:15 -0700
committerMatthew Miller <matthew@millerti.me>2020-05-18 08:44:45 -0700
commit7217bc9978408e06a8dd446ac7e728ad816463eb (patch)
tree7f38c99e739cc1bc2f0f6644ab19546bcac073c8 /src/helpers/decodeAttestationObject.ts
parentb8e10c49c5be2ee3e3e61ebdac1bc0d28809cf15 (diff)
Move custom type defs into a single file
Diffstat (limited to 'src/helpers/decodeAttestationObject.ts')
-rw-r--r--src/helpers/decodeAttestationObject.ts11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/helpers/decodeAttestationObject.ts b/src/helpers/decodeAttestationObject.ts
index a03fefd..1c353d9 100644
--- a/src/helpers/decodeAttestationObject.ts
+++ b/src/helpers/decodeAttestationObject.ts
@@ -1,16 +1,7 @@
import base64url from 'base64url';
import cbor from 'cbor';
-import { ATTESTATION_FORMATS } from './constants';
-
-type AttestationObject = {
- fmt: ATTESTATION_FORMATS,
- attStmt: {
- sig?: Buffer,
- x5c?: Buffer,
- },
- authData: Buffer,
-};
+import { AttestationObject } from '@types';
/**
*