summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/methods
diff options
context:
space:
mode:
Diffstat (limited to 'packages/browser/src/methods')
-rw-r--r--packages/browser/src/methods/startRegistration.test.ts6
-rw-r--r--packages/browser/src/methods/startRegistration.ts2
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/browser/src/methods/startRegistration.test.ts b/packages/browser/src/methods/startRegistration.test.ts
index 683bae8..78b0157 100644
--- a/packages/browser/src/methods/startRegistration.test.ts
+++ b/packages/browser/src/methods/startRegistration.test.ts
@@ -203,7 +203,7 @@ describe('WebAuthnError', () => {
authenticatorSelection: {
residentKey: 'required',
requireResidentKey: true,
- }
+ },
};
const rejected = await expect(startRegistration(opts)).rejects;
@@ -220,7 +220,7 @@ describe('WebAuthnError', () => {
...goodOpts1,
authenticatorSelection: {
userVerification: 'required',
- }
+ },
};
const rejected = await expect(startRegistration(opts)).rejects;
@@ -332,7 +332,7 @@ describe('WebAuthnError', () => {
user: {
...goodOpts1.user,
id: Array(65).fill('a').join(''),
- }
+ },
};
const rejected = await expect(startRegistration(opts)).rejects;
diff --git a/packages/browser/src/methods/startRegistration.ts b/packages/browser/src/methods/startRegistration.ts
index 4cc92cc..4037092 100644
--- a/packages/browser/src/methods/startRegistration.ts
+++ b/packages/browser/src/methods/startRegistration.ts
@@ -40,7 +40,7 @@ export default async function startRegistration(
let credential;
try {
credential = (await navigator.credentials.create(options)) as RegistrationCredential;
- } catch(err) {
+ } catch (err) {
throw identifyRegistrationError({ error: err as Error, options });
}