From e18344a9cdb6e7d121908572efa3af36c4a29e00 Mon Sep 17 00:00:00 2001 From: Pavithra Ramesh Date: Thu, 8 Dec 2022 09:33:28 -0800 Subject: [PATCH] Expose enrollmentCompletionDeadline field in TotpSecret. Also changed the demo app to display this field as a countdown. --- common/api-review/auth.api.md | 1 + packages/auth/demo/public/index.html | 2 +- packages/auth/demo/public/style.css | 6 ++++++ packages/auth/demo/src/index.js | 21 +++++++++++++++++++++ packages/auth/src/mfa/assertions/totp.ts | 10 ++++++---- 5 files changed, 35 insertions(+), 5 deletions(-) diff --git a/common/api-review/auth.api.md b/common/api-review/auth.api.md index 738c72048bb..5b147491212 100644 --- a/common/api-review/auth.api.md +++ b/common/api-review/auth.api.md @@ -767,6 +767,7 @@ export interface TotpMultiFactorInfo extends MultiFactorInfo { export class TotpSecret { readonly codeIntervalSeconds: number; readonly codeLength: number; + readonly enrollmentCompletionDeadline: string; // Warning: (ae-forgotten-export) The symbol "StartTotpMfaEnrollmentResponse" needs to be exported by the entry point index.d.ts // // @internal (undocumented) diff --git a/packages/auth/demo/public/index.html b/packages/auth/demo/public/index.html index e8a7c64f42f..1a30d575013 100644 --- a/packages/auth/demo/public/index.html +++ b/packages/auth/demo/public/index.html @@ -530,7 +530,7 @@
-
+