summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/authentication/verifyAuthenticationResponse.ts
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 /packages/server/src/authentication/verifyAuthenticationResponse.ts
parent94680cc3e7e7116f67aee232d73b283db9869e54 (diff)
Add docstrings for new return values
Diffstat (limited to 'packages/server/src/authentication/verifyAuthenticationResponse.ts')
-rw-r--r--packages/server/src/authentication/verifyAuthenticationResponse.ts4
1 files changed, 4 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;