summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/authentication/generateAuthenticationOptions.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2023-08-18 13:59:11 -0700
committerMatthew Miller <matthew@millerti.me>2023-08-18 13:59:11 -0700
commita59634a1a9b0393622fb121fbe229132c01a2624 (patch)
treecb4eb3fdf778dfc88d6d389b609b1cef6ebb4b4d /packages/server/src/authentication/generateAuthenticationOptions.ts
parente0d32bd2a3a60b4b2fd96a2874eae3ad976483df (diff)
Use single-quotes and increase line width
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);
}