diff options
author | Matthew Miller <matthew@millerti.me> | 2021-08-23 20:18:27 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2021-08-23 20:18:27 -0700 |
commit | 808256a244c6e21c2db6b29bfc0cfe24268b460c (patch) | |
tree | 849c619e3bc8e02884739a7c387e937b244fa0eb /packages/browser/src/methods/startAttestation.ts | |
parent | 09c073098fc2ea506692de614d578c805b74705a (diff) |
Rename supportsWebAuthn (and fix tests)
Diffstat (limited to 'packages/browser/src/methods/startAttestation.ts')
-rw-r--r-- | packages/browser/src/methods/startAttestation.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/browser/src/methods/startAttestation.ts b/packages/browser/src/methods/startAttestation.ts index 379e295..c762c6f 100644 --- a/packages/browser/src/methods/startAttestation.ts +++ b/packages/browser/src/methods/startAttestation.ts @@ -7,7 +7,7 @@ import { import utf8StringToBuffer from '../helpers/utf8StringToBuffer'; import bufferToBase64URLString from '../helpers/bufferToBase64URLString'; import base64URLStringToBuffer from '../helpers/base64URLStringToBuffer'; -import supportsWebauthn from '../helpers/supportsWebauthn'; +import { browserSupportsWebauthn } from '../helpers/browserSupportsWebauthn'; import toPublicKeyCredentialDescriptor from '../helpers/toPublicKeyCredentialDescriptor'; /** @@ -18,7 +18,7 @@ import toPublicKeyCredentialDescriptor from '../helpers/toPublicKeyCredentialDes export default async function startAttestation( creationOptionsJSON: PublicKeyCredentialCreationOptionsJSON, ): Promise<AttestationCredentialJSON> { - if (!supportsWebauthn()) { + if (!browserSupportsWebauthn()) { throw new Error('WebAuthn is not supported in this browser'); } |