From: Ardis Lu Date: Mon, 28 Sep 2026 00:12:48 +0000 (-0700) Subject: Move `exp` from query param into script injection X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=4689629198885c92519b851f115cae987540c2a3;p=envpass Move `exp` from query param into script injection --- 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); } });