diff options
author | Matthew Miller <matthew@millerti.me> | 2023-08-16 21:53:39 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-08-16 21:57:13 -0700 |
commit | 549e08dbed9736b63d827649aaf422958f989609 (patch) | |
tree | 2d767b43f8225f55e047a60468ffefb2f2bbff58 /packages/server/src/authentication/generateAuthenticationOptions.ts | |
parent | c4c6e352686c3ee7a7bd84e0791b9a17ca21dd78 (diff) |
Run `deno fmt` on everything
Diffstat (limited to 'packages/server/src/authentication/generateAuthenticationOptions.ts')
-rw-r--r-- | packages/server/src/authentication/generateAuthenticationOptions.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/server/src/authentication/generateAuthenticationOptions.ts b/packages/server/src/authentication/generateAuthenticationOptions.ts index 9c24903..92efaa8 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 function generateAuthenticationOptions( allowCredentials, challenge = generateChallenge(), timeout = 60000, - userVerification = 'preferred', + userVerification = "preferred", extensions, rpID, } = options; @@ -45,7 +45,7 @@ export 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); } |