diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-02-28 21:55:40 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-02-28 21:55:40 +0000 |
commit | 40bb67c03bba8f3a7d1c0fed751c5411fb5f270d (patch) | |
tree | ac697019f27103dfa80733bb61572ced0780dc0a | |
parent | 92c65ed9af11d0e314db670b37af1119a6eb67e6 (diff) | |
download | prosody-40bb67c03bba8f3a7d1c0fed751c5411fb5f270d.tar.gz prosody-40bb67c03bba8f3a7d1c0fed751c5411fb5f270d.zip |
mod_tokenauth: Track creation time of tokens
-rw-r--r-- | plugins/mod_tokenauth.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_tokenauth.lua b/plugins/mod_tokenauth.lua index b023d9f8..c04a1aa4 100644 --- a/plugins/mod_tokenauth.lua +++ b/plugins/mod_tokenauth.lua @@ -18,6 +18,7 @@ function create_jid_token(actor_jid, token_jid, token_scope, token_ttl) local token_info = { owner = actor_jid; + created = os.time(); expires = token_ttl and (os.time() + token_ttl) or nil; jid = token_jid; session = { |