aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_array_spec.lua
diff options
context:
space:
mode:
authorRémi Bardon <remi@remibardon.name>2025-02-01 20:45:28 +0100
committerRémi Bardon <remi@remibardon.name>2025-02-01 20:45:28 +0100
commit9732b0f9d8f9a95ba82a854c8f24409e28ead136 (patch)
treef52c04eda271db1decbe353ce08071ac4c437686 /spec/util_array_spec.lua
parent642c1c0ab51c3d0f130df19e3fd12ee3a28a7d5c (diff)
downloadprosody-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 'spec/util_array_spec.lua')
0 files changed, 0 insertions, 0 deletions