]> git.ardis.lu - envpass/commit
Calculate client-side window expiration from `exp` query param
authorArdis Lu <ardisglu@gmail.com>
Sat, 15 Aug 2026 05:59:59 +0000 (22:59 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sat, 15 Aug 2026 05:59:59 +0000 (22:59 -0700)
commit48acbefb656e55f13b09cdcc12fd6b5639a6f3aa
treee4a88e848be2b4ad103c52467cfd38b296281574
parent3190651115dbadb6ffb7574c093bc5df3268d654
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
src/getPrf.js
test/getPrf.test.js
This page took 0.039396 seconds and 4 git commands to generate.