diff options
author | Matthew Miller <matthew@millerti.me> | 2021-08-18 16:21:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 16:21:23 -0700 |
commit | 2f87d70bf348cf854c6ac215bd9d424502278da6 (patch) | |
tree | 45a387512e7c7097bb64036c881973b45c18ff31 /packages/server/src/helpers/decodeAttestationObject.ts | |
parent | 3e1f9cf3d41f509a387d7cba3f44a7a93f90e07c (diff) | |
parent | 98cf4b68bc0cec016994d073afab5461627dfc96 (diff) |
Merge pull request #138 from MasterKale/feat/configuration-service
feat/settings-service
Diffstat (limited to 'packages/server/src/helpers/decodeAttestationObject.ts')
-rw-r--r-- | packages/server/src/helpers/decodeAttestationObject.ts | 19 |
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; }; |