summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/decodeAttestationObject.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/helpers/decodeAttestationObject.ts')
-rw-r--r--packages/server/src/helpers/decodeAttestationObject.ts19
1 files changed, 9 insertions, 10 deletions
diff --git a/packages/server/src/helpers/decodeAttestationObject.ts b/packages/server/src/helpers/decodeAttestationObject.ts
index 8b69c90..3aa39d7 100644
--- a/packages/server/src/helpers/decodeAttestationObject.ts
+++ b/packages/server/src/helpers/decodeAttestationObject.ts
@@ -10,18 +10,17 @@ export default function decodeAttestationObject(attestationObject: Buffer): Atte
return toCBOR;
}
-export enum ATTESTATION_FORMAT {
- FIDO_U2F = 'fido-u2f',
- PACKED = 'packed',
- ANDROID_SAFETYNET = 'android-safetynet',
- ANDROID_KEY = 'android-key',
- TPM = 'tpm',
- APPLE = 'apple',
- NONE = 'none',
-}
+export type AttestationFormat =
+ | 'fido-u2f'
+ | 'packed'
+ | 'android-safetynet'
+ | 'android-key'
+ | 'tpm'
+ | 'apple'
+ | 'none';
export type AttestationObject = {
- fmt: ATTESTATION_FORMAT;
+ fmt: AttestationFormat;
attStmt: AttestationStatement;
authData: Buffer;
};