summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/authentication/generateAuthenticationOptions.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-05-18 16:19:53 -0700
committerMatthew Miller <matthew@millerti.me>2022-05-18 16:19:53 -0700
commit03da18fac7b3a9c6c1de0468469bb3624af3f0b3 (patch)
tree726ec49874a77b861a2e221aa05f915944f2f006 /packages/server/src/authentication/generateAuthenticationOptions.ts
parentf51a8b528f5cea10aa181f6112928f968b3c14ca (diff)
Point PublicKeyCredentialDescriptor to "Future"
Diffstat (limited to 'packages/server/src/authentication/generateAuthenticationOptions.ts')
-rw-r--r--packages/server/src/authentication/generateAuthenticationOptions.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/authentication/generateAuthenticationOptions.ts b/packages/server/src/authentication/generateAuthenticationOptions.ts
index f176835..54a81a3 100644
--- a/packages/server/src/authentication/generateAuthenticationOptions.ts
+++ b/packages/server/src/authentication/generateAuthenticationOptions.ts
@@ -1,7 +1,7 @@
import type {
AuthenticationExtensionsClientInputs,
PublicKeyCredentialRequestOptionsJSON,
- PublicKeyCredentialDescriptor,
+ PublicKeyCredentialDescriptorFuture,
UserVerificationRequirement,
} from '@simplewebauthn/typescript-types';
import base64url from 'base64url';
@@ -9,7 +9,7 @@ import base64url from 'base64url';
import generateChallenge from '../helpers/generateChallenge';
export type GenerateAuthenticationOptionsOpts = {
- allowCredentials?: PublicKeyCredentialDescriptor[];
+ allowCredentials?: PublicKeyCredentialDescriptorFuture[];
challenge?: string | Buffer;
timeout?: number;
userVerification?: UserVerificationRequirement;