summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/authentication/generateAuthenticationOptions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/authentication/generateAuthenticationOptions.ts')
-rw-r--r--packages/server/src/authentication/generateAuthenticationOptions.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/server/src/authentication/generateAuthenticationOptions.ts b/packages/server/src/authentication/generateAuthenticationOptions.ts
index 57eb9e0..b1c8166 100644
--- a/packages/server/src/authentication/generateAuthenticationOptions.ts
+++ b/packages/server/src/authentication/generateAuthenticationOptions.ts
@@ -3,9 +3,9 @@ import type {
PublicKeyCredentialDescriptorFuture,
PublicKeyCredentialRequestOptionsJSON,
UserVerificationRequirement,
-} from "../deps.ts";
-import { isoBase64URL, isoUint8Array } from "../helpers/iso/index.ts";
-import { generateChallenge } from "../helpers/generateChallenge.ts";
+} from '../deps.ts';
+import { isoBase64URL, isoUint8Array } from '../helpers/iso/index.ts';
+import { generateChallenge } from '../helpers/generateChallenge.ts';
export type GenerateAuthenticationOptionsOpts = {
allowCredentials?: PublicKeyCredentialDescriptorFuture[];
@@ -36,7 +36,7 @@ export async function generateAuthenticationOptions(
allowCredentials,
challenge = await generateChallenge(),
timeout = 60000,
- userVerification = "preferred",
+ userVerification = 'preferred',
extensions,
rpID,
} = options;
@@ -45,7 +45,7 @@ export async function generateAuthenticationOptions(
* Preserve ability to specify `string` values for challenges
*/
let _challenge = challenge;
- if (typeof _challenge === "string") {
+ if (typeof _challenge === 'string') {
_challenge = isoUint8Array.fromUTF8String(_challenge);
}