summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/methods/startAuthentication.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/browser/src/methods/startAuthentication.ts')
-rw-r--r--packages/browser/src/methods/startAuthentication.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/browser/src/methods/startAuthentication.ts b/packages/browser/src/methods/startAuthentication.ts
index 1764ff1..1f431f5 100644
--- a/packages/browser/src/methods/startAuthentication.ts
+++ b/packages/browser/src/methods/startAuthentication.ts
@@ -15,7 +15,7 @@ import toPublicKeyCredentialDescriptor from '../helpers/toPublicKeyCredentialDes
*
* @param requestOptionsJSON Output from @simplewebauthn/server's generateAssertionOptions(...)
*/
-export default async function startAssertion(
+export default async function startAuthentication(
requestOptionsJSON: PublicKeyCredentialRequestOptionsJSON,
): Promise<AuthenticationCredentialJSON> {
if (!supportsWebauthn()) {
@@ -40,7 +40,7 @@ export default async function startAssertion(
const credential = (await navigator.credentials.get({ publicKey })) as AuthenticationCredential;
if (!credential) {
- throw new Error('Assertion was not completed');
+ throw new Error('Authentication was not completed');
}
const { id, rawId, response, type } = credential;