summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/methods/startAssertion.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2021-08-23 20:18:27 -0700
committerMatthew Miller <matthew@millerti.me>2021-08-23 20:18:27 -0700
commit808256a244c6e21c2db6b29bfc0cfe24268b460c (patch)
tree849c619e3bc8e02884739a7c387e937b244fa0eb /packages/browser/src/methods/startAssertion.ts
parent09c073098fc2ea506692de614d578c805b74705a (diff)
Rename supportsWebAuthn (and fix tests)
Diffstat (limited to 'packages/browser/src/methods/startAssertion.ts')
-rw-r--r--packages/browser/src/methods/startAssertion.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/browser/src/methods/startAssertion.ts b/packages/browser/src/methods/startAssertion.ts
index 786d55b..26fd755 100644
--- a/packages/browser/src/methods/startAssertion.ts
+++ b/packages/browser/src/methods/startAssertion.ts
@@ -7,7 +7,7 @@ import {
import bufferToBase64URLString from '../helpers/bufferToBase64URLString';
import base64URLStringToBuffer from '../helpers/base64URLStringToBuffer';
import bufferToUTF8String from '../helpers/bufferToUTF8String';
-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 startAssertion(
requestOptionsJSON: PublicKeyCredentialRequestOptionsJSON,
): Promise<AssertionCredentialJSON> {
- if (!supportsWebauthn()) {
+ if (!browserSupportsWebauthn()) {
throw new Error('WebAuthn is not supported in this browser');
}