diff options
Diffstat (limited to 'packages/server/src')
-rw-r--r-- | packages/server/src/registration/verifyRegistrationResponse.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/server/src/registration/verifyRegistrationResponse.ts b/packages/server/src/registration/verifyRegistrationResponse.ts index a2a4cf6..f9c111d 100644 --- a/packages/server/src/registration/verifyRegistrationResponse.ts +++ b/packages/server/src/registration/verifyRegistrationResponse.ts @@ -26,13 +26,12 @@ import verifyApple from './verifications/verifyApple'; export type VerifyRegistrationResponseOpts = { credential: RegistrationCredentialJSON; - expectedChallenge: string | ChallengeVerifier; + expectedChallenge: string | ((challenge: string) => boolean); expectedOrigin: string | string[]; expectedRPID?: string | string[]; requireUserVerification?: boolean; supportedAlgorithmIDs?: COSEAlgorithmIdentifier[]; }; -export type ChallengeVerifier = (challenge: string) => boolean; /** * Verify that the user has legitimately completed the registration process |