diff options
author | Matthew Miller <matthew@millerti.me> | 2023-08-16 16:47:09 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-08-16 16:47:09 -0700 |
commit | 070f73b8de107111b4a34001254a981548f677f7 (patch) | |
tree | 786494543aaae1494cfa229b17df5d0265c7e3d1 /packages/server/src/authentication/generateAuthenticationOptions.ts | |
parent | 70e65cbf4e8966adcc8ac31099a03872fe2ce5f8 (diff) |
Run `ddi fmt` over src/
Diffstat (limited to 'packages/server/src/authentication/generateAuthenticationOptions.ts')
-rw-r--r-- | packages/server/src/authentication/generateAuthenticationOptions.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/authentication/generateAuthenticationOptions.ts b/packages/server/src/authentication/generateAuthenticationOptions.ts index fce61f1..9c24903 100644 --- a/packages/server/src/authentication/generateAuthenticationOptions.ts +++ b/packages/server/src/authentication/generateAuthenticationOptions.ts @@ -1,7 +1,7 @@ import type { AuthenticationExtensionsClientInputs, - PublicKeyCredentialRequestOptionsJSON, PublicKeyCredentialDescriptorFuture, + PublicKeyCredentialRequestOptionsJSON, UserVerificationRequirement, } from '../deps.ts'; import { isoBase64URL, isoUint8Array } from '../helpers/iso/index.ts'; @@ -51,7 +51,7 @@ export function generateAuthenticationOptions( return { challenge: isoBase64URL.fromBuffer(_challenge), - allowCredentials: allowCredentials?.map(cred => ({ + allowCredentials: allowCredentials?.map((cred) => ({ ...cred, id: isoBase64URL.fromBuffer(cred.id as Uint8Array), })), |