diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-21 11:17:31 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-21 11:53:13 -0700 |
commit | 690e6112b233f640ff25ff10f254ba083dec6236 (patch) | |
tree | 3e3f7db039a091d8ee14b663e2f3b912a4f3cebc /packages/browser/src/methods | |
parent | 2b9998d38a81e70b94ee7fb0cfada0a6478d2808 (diff) |
Capitalize “WebAuthn” properly
Diffstat (limited to 'packages/browser/src/methods')
-rw-r--r-- | packages/browser/src/methods/startAssertion.ts | 2 | ||||
-rw-r--r-- | packages/browser/src/methods/startAttestation.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/browser/src/methods/startAssertion.ts b/packages/browser/src/methods/startAssertion.ts index c42e614..603c6fb 100644 --- a/packages/browser/src/methods/startAssertion.ts +++ b/packages/browser/src/methods/startAssertion.ts @@ -17,7 +17,7 @@ export default async function startAssertion( requestOptionsJSON: PublicKeyCredentialRequestOptionsJSON ): Promise<AuthenticatorAssertionResponseJSON> { if (!supportsWebauthn()) { - throw new Error('Webauthn is not supported in this browser'); + throw new Error('WebAuthn is not supported in this browser'); } // We need to convert some values to Uint8Arrays before passing the credentials to the navigator diff --git a/packages/browser/src/methods/startAttestation.ts b/packages/browser/src/methods/startAttestation.ts index 800b8e6..1a4b13d 100644 --- a/packages/browser/src/methods/startAttestation.ts +++ b/packages/browser/src/methods/startAttestation.ts @@ -17,7 +17,7 @@ export default async function startAttestation( creationOptionsJSON: PublicKeyCredentialCreationOptionsJSON ): Promise<AuthenticatorAttestationResponseJSON> { if (!supportsWebauthn()) { - throw new Error('Webauthn is not supported in this browser'); + throw new Error('WebAuthn is not supported in this browser'); } // We need to convert some values to Uint8Arrays before passing the credentials to the navigator |