From 48acbefb656e55f13b09cdcc12fd6b5639a6f3aa Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Fri, 14 Aug 2026 22:59:59 -0700 Subject: [PATCH] Calculate client-side window expiration from `exp` query param This change makes the client-side expiration in sync with the server-side expiration. Previously, if the client-side window is opened later than the server's start time, the expirations would be de-synced. It is also a maintenance burden to keep the duration constants in sync between the two. --- src/getPrf.html | 7 +++---- src/getPrf.js | 3 ++- test/getPrf.test.js | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/getPrf.html b/src/getPrf.html index 91ab97a..255b440 100644 --- a/src/getPrf.html +++ b/src/getPrf.html @@ -53,14 +53,13 @@

Create or select a passkey, or if no prompt appeared. This window will expire in 2 minutes.