diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-07-11 13:28:29 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-07-11 13:28:29 +0100 |
commit | 23458111dcf59d6c64e77f3286dbaa752539b77a (patch) | |
tree | 46783940a629f9ad93a3b6bb7702d19b0b5003ba /util/error.lua | |
parent | fad58c5ab2fa449aea07eca2a99a1b5e30a22711 (diff) | |
download | prosody-23458111dcf59d6c64e77f3286dbaa752539b77a.tar.gz prosody-23458111dcf59d6c64e77f3286dbaa752539b77a.zip |
util.jwt: Provide built-in token expiry support (defaults to 3600s lifetime)
To avoid every user of the library needing to add and verify expiry info, this
is now handled by util.jwt itself (if not overridden or disabled).
Issuing tokens that are valid forever is bad practice and rarely desired, and
the default token lifetime is now 3600s (1 hour).
Diffstat (limited to 'util/error.lua')
0 files changed, 0 insertions, 0 deletions