From 5f776c7176d20e8d9433f6e7dff9f461e4ee226b Mon Sep 17 00:00:00 2001 From: Andreas Coroiu Date: Fri, 10 Feb 2023 15:46:26 +0100 Subject: [PATCH] [EC-598] chore: add small todo comment --- libs/common/src/webauthn/services/fido2.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/common/src/webauthn/services/fido2.service.ts b/libs/common/src/webauthn/services/fido2.service.ts index 4c616d8ab55..6e082167c4f 100644 --- a/libs/common/src/webauthn/services/fido2.service.ts +++ b/libs/common/src/webauthn/services/fido2.service.ts @@ -319,6 +319,7 @@ async function generateAuthData(params: AuthDataParams) { authData.push(flags); // add 4 bytes of counter - we use time in epoch seconds as monotonic counter + // TODO: Consider changing this to a cryptographically safe random number const now = new Date().getTime() / 1000; authData.push( ((now & 0xff000000) >> 24) & 0xff,