summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/browser/src')
-rw-r--r--packages/browser/src/helpers/toAuthenticatorAttachment.ts4
-rw-r--r--packages/browser/src/methods/startAuthentication.test.ts2
-rw-r--r--packages/browser/src/methods/startRegistration.test.ts2
-rw-r--r--packages/browser/src/methods/startRegistration.ts4
4 files changed, 8 insertions, 4 deletions
diff --git a/packages/browser/src/helpers/toAuthenticatorAttachment.ts b/packages/browser/src/helpers/toAuthenticatorAttachment.ts
index 7a2aca0..366cf8f 100644
--- a/packages/browser/src/helpers/toAuthenticatorAttachment.ts
+++ b/packages/browser/src/helpers/toAuthenticatorAttachment.ts
@@ -5,7 +5,9 @@ const attachments: AuthenticatorAttachment[] = ['cross-platform', 'platform'];
/**
* If possible coerce a `string` value into a known `AuthenticatorAttachment`
*/
-export function toAuthenticatorAttachment(attachment: string | null): AuthenticatorAttachment | undefined {
+export function toAuthenticatorAttachment(
+ attachment: string | null,
+): AuthenticatorAttachment | undefined {
if (!attachment) {
return;
}
diff --git a/packages/browser/src/methods/startAuthentication.test.ts b/packages/browser/src/methods/startAuthentication.test.ts
index 49f8898..31dbde3 100644
--- a/packages/browser/src/methods/startAuthentication.test.ts
+++ b/packages/browser/src/methods/startAuthentication.test.ts
@@ -299,7 +299,7 @@ test('should return authenticatorAttachment if present', async () => {
return new Promise(resolve => {
resolve({
response: {},
- getClientExtensionResults: () => { },
+ getClientExtensionResults: () => {},
authenticatorAttachment: 'cross-platform',
});
});
diff --git a/packages/browser/src/methods/startRegistration.test.ts b/packages/browser/src/methods/startRegistration.test.ts
index 19e9185..8ba6f5a 100644
--- a/packages/browser/src/methods/startRegistration.test.ts
+++ b/packages/browser/src/methods/startRegistration.test.ts
@@ -239,7 +239,7 @@ test('should return authenticatorAttachment if present', async () => {
return new Promise(resolve => {
resolve({
response: {},
- getClientExtensionResults: () => { },
+ getClientExtensionResults: () => {},
authenticatorAttachment: 'cross-platform',
});
});
diff --git a/packages/browser/src/methods/startRegistration.ts b/packages/browser/src/methods/startRegistration.ts
index 3ce3083..546347b 100644
--- a/packages/browser/src/methods/startRegistration.ts
+++ b/packages/browser/src/methods/startRegistration.ts
@@ -34,7 +34,9 @@ export async function startRegistration(
...creationOptionsJSON.user,
id: utf8StringToBuffer(creationOptionsJSON.user.id),
},
- excludeCredentials: creationOptionsJSON.excludeCredentials?.map(toPublicKeyCredentialDescriptor),
+ excludeCredentials: creationOptionsJSON.excludeCredentials?.map(
+ toPublicKeyCredentialDescriptor,
+ ),
};
// Finalize options