From 46a1834e0bfa11e4546b11ae96b02d6a602ac3e2 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Fri, 22 May 2020 16:23:53 -0700 Subject: Convert parseAttestationAuthData to helper --- packages/typescript-types/src/index.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'packages/typescript-types/src') diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index f94782d..6ad3b81 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -111,7 +111,7 @@ export type AttestationObject = { authData: Buffer, }; -export type ParsedAttestationAuthData = { +export type ParsedAuthenticatorData = { rpIdHash: Buffer, flagsBuf: Buffer, flags: { @@ -212,19 +212,6 @@ export type SafetyNetJWTPayload = { export type SafetyNetJWTSignature = string; -export type ParsedAssertionAuthData = { - rpIdHash: Buffer, - flagsBuf: Buffer, - flags: number, - counter: number, - counterBuf: Buffer, -}; - -/** - * U2F Presence constant - */ -export const U2F_USER_PRESENTED = 0x01; - /** * A WebAuthn-compatible device and the information needed to verify assertions by it */ -- cgit v1.2.3