Software /
code /
prosody
File
.busted @ 13638:94462d8f2fa9
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.
author | Rémi Bardon <remi@remibardon.name> |
---|---|
date | Sat, 01 Feb 2025 20:45:28 +0100 |
parent | 9964:f299d4917dd8 |
line wrap: on
line source
return { _all = { }, default = { ["exclude-tags"] = "mod_bosh,storage,SLOW"; }; bosh = { tags = "mod_bosh"; }; storage = { tags = "storage"; }; }