Closed jordanbtucker closed 1 year ago
This PR allows verifyAuthenticationResponse and verifyRegistrationResponse to accept expectedChallenge properties of their options parameter to be Promise returning functions. This allows code like this:
verifyAuthenticationResponse
verifyRegistrationResponse
expectedChallenge
options
async function customAsyncVerification(challenge: string): Promise<boolean> { ... } const isVerified = await verifyAuthenticationResponse({ ... expectedChallenge: customAsyncVerification, ... });
Three tests per verification function have been added:
true
false
Fixes #431
This PR allows
verifyAuthenticationResponse
andverifyRegistrationResponse
to acceptexpectedChallenge
properties of theiroptions
parameter to be Promise returning functions. This allows code like this:Three tests per verification function have been added:
true
.false
.Fixes #431