summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-04-13 08:58:47 -0700
committerMatthew Miller <matthew@millerti.me>2022-05-15 21:49:33 -0700
commitee460f1389e8bb505613bbb21ad5fb8db8128d7a (patch)
tree203702a5654aba08509d54a4795e945f7d876a8f
parent94680cc3e7e7116f67aee232d73b283db9869e54 (diff)
Add docstrings for new return values
-rw-r--r--packages/server/src/authentication/verifyAuthenticationResponse.ts4
-rw-r--r--packages/server/src/registration/verifyRegistrationResponse.ts4
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;