diff options
author | Rémi Bardon <remi@remibardon.name> | 2025-02-01 20:45:28 +0100 |
---|---|---|
committer | Rémi Bardon <remi@remibardon.name> | 2025-02-01 20:45:28 +0100 |
commit | 9732b0f9d8f9a95ba82a854c8f24409e28ead136 (patch) | |
tree | f52c04eda271db1decbe353ce08071ac4c437686 /fallbacks | |
parent | 642c1c0ab51c3d0f130df19e3fd12ee3a28a7d5c (diff) | |
download | prosody-9732b0f9d8f9a95ba82a854c8f24409e28ead136.tar.gz prosody-9732b0f9d8f9a95ba82a854c8f24409e28ead136.zip |
mod_tokenauth: Fix expiry lasting one second too much
Because the code was using `< now` in a lot of places, things expiring at the current second
wouldn't be marked as expired. It isn't noticeable in real-world scenarios but I wanted to
create OAuth 2.0 tokens valid for 0 second in integration tests and it wasn't possible.
By using `<=` instead of `<`, we make sure tokens don't live a single millisecond more than
what they are supposed to.
Diffstat (limited to 'fallbacks')
0 files changed, 0 insertions, 0 deletions