diff options
author | Matthew Miller <matthew@millerti.me> | 2022-08-16 22:44:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 22:44:36 -0700 |
commit | 3fee22f217053933cffc8c68ee5236ddaadd3b3f (patch) | |
tree | 7899844a57e4492303d900f175a2b4641f2e7ad0 /packages/browser/src/methods/startRegistration.ts | |
parent | 2de1972b2461837a83a40a6bbb6cb51719002d3b (diff) | |
parent | 963c20b39c54c500aceb032af6d6163448b772e0 (diff) |
Merge pull request #257 from MasterKale/fix/rename-browser-supports-webauthn
fix/rename-browser-supports-webauthn
Diffstat (limited to 'packages/browser/src/methods/startRegistration.ts')
-rw-r--r-- | packages/browser/src/methods/startRegistration.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/browser/src/methods/startRegistration.ts b/packages/browser/src/methods/startRegistration.ts index f809405..e103c11 100644 --- a/packages/browser/src/methods/startRegistration.ts +++ b/packages/browser/src/methods/startRegistration.ts @@ -7,7 +7,7 @@ import { import { utf8StringToBuffer } from '../helpers/utf8StringToBuffer'; import { bufferToBase64URLString } from '../helpers/bufferToBase64URLString'; import { base64URLStringToBuffer } from '../helpers/base64URLStringToBuffer'; -import { browserSupportsWebauthn } from '../helpers/browserSupportsWebauthn'; +import { browserSupportsWebAuthn } from '../helpers/browserSupportsWebAuthn'; import { toPublicKeyCredentialDescriptor } from '../helpers/toPublicKeyCredentialDescriptor'; import { identifyRegistrationError } from '../helpers/identifyRegistrationError'; import { webauthnAbortService } from '../helpers/webAuthnAbortService'; @@ -20,7 +20,7 @@ import { webauthnAbortService } from '../helpers/webAuthnAbortService'; export async function startRegistration( creationOptionsJSON: PublicKeyCredentialCreationOptionsJSON, ): Promise<RegistrationCredentialJSON> { - if (!browserSupportsWebauthn()) { + if (!browserSupportsWebAuthn()) { throw new Error('WebAuthn is not supported in this browser'); } |