From 4689629198885c92519b851f115cae987540c2a3 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sun, 27 Sep 2026 17:12:48 -0700 Subject: [PATCH] Move `exp` from query param into script injection --- src/getPrf.html | 4 ++-- src/getPrf.js | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/getPrf.html b/src/getPrf.html index 14b915b..90db099 100644 --- a/src/getPrf.html +++ b/src/getPrf.html @@ -53,12 +53,12 @@

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

`); + server.on('request', (request, response) => { const { port } = /** @type {AddressInfo} */(server.address()); // Return minimal client-side code to get a passkey prf value @@ -192,7 +198,7 @@ export async function getPrf(options = {}) { server.listen(port, 'localhost'); server.on('listening', () => { const { port } = /** @type {AddressInfo} */(server.address()); - const url = `http://localhost:${port}?challenge=${challenge}&exp=${timeoutExp}`; + const url = `http://localhost:${port}?challenge=${challenge}`; urlResolve(url); if (onListening !== null) { onListening(url); } }); -- 2.47.3