diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-22 16:23:53 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-22 16:23:53 -0700 |
commit | 46a1834e0bfa11e4546b11ae96b02d6a602ac3e2 (patch) | |
tree | b4b9ca5f8108ae94eeb81ad2351cd3530f3fd22a /packages/typescript-types/src | |
parent | 025317106f256389e8c2de086b25276aa25573a0 (diff) |
Convert parseAttestationAuthData to helper
Diffstat (limited to 'packages/typescript-types/src')
-rw-r--r-- | packages/typescript-types/src/index.ts | 15 |
1 files changed, 1 insertions, 14 deletions
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 */ |