diff options
-rw-r--r-- | packages/server/src/authentication/verifyAuthenticationResponse.ts | 4 | ||||
-rw-r--r-- | packages/server/src/registration/verifyRegistrationResponse.ts | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/packages/server/src/authentication/verifyAuthenticationResponse.ts b/packages/server/src/authentication/verifyAuthenticationResponse.ts index d804224..a816c90 100644 --- a/packages/server/src/authentication/verifyAuthenticationResponse.ts +++ b/packages/server/src/authentication/verifyAuthenticationResponse.ts @@ -205,6 +205,10 @@ export default function verifyAuthenticationResponse( * @param authenticationInfo.newCounter The number of times the authenticator identified above * reported it has been used. **Should be kept in a DB for later reference to help prevent replay * attacks!** + * @param authenticationInfo.credentialDeviceType Whether this is a single-device or multi-device + * credential + * @param authenticationInfo.credentialBackedUp Whether or not the multi-device credential has been + * backed up. Always `false` for single-device credentials */ export type VerifiedAuthenticationResponse = { verified: boolean; diff --git a/packages/server/src/registration/verifyRegistrationResponse.ts b/packages/server/src/registration/verifyRegistrationResponse.ts index 36876f8..86a9730 100644 --- a/packages/server/src/registration/verifyRegistrationResponse.ts +++ b/packages/server/src/registration/verifyRegistrationResponse.ts @@ -269,6 +269,10 @@ export default async function verifyRegistrationResponse( * @param registrationInfo.userVerified Whether the user was uniquely identified during attestation * @param registrationInfo.attestationObject The raw `response.attestationObject` Buffer returned by * the authenticator + * @param registrationInfo.credentialDeviceType Whether this is a single-device or multi-device + * credential + * @param registrationInfo.credentialBackedUp Whether or not the multi-device credential has been + * backed up. Always `false` for single-device credentials */ export type VerifiedRegistrationResponse = { verified: boolean; |