Diff

plugins/mod_tokenauth.lua @ 10675:5efd6865486c

mod_tokenauth: Track creation time of tokens
author Matthew Wild <mwild1@gmail.com>
date Fri, 28 Feb 2020 21:55:40 +0000
parent 10674:4459afac4d13
child 12649:86e1187f6274
line wrap: on
line diff
--- a/plugins/mod_tokenauth.lua	Fri Feb 28 14:13:04 2020 +0100
+++ b/plugins/mod_tokenauth.lua	Fri Feb 28 21:55:40 2020 +0000
@@ -18,6 +18,7 @@
 
 	local token_info = {
 		owner = actor_jid;
+		created = os.time();
 		expires = token_ttl and (os.time() + token_ttl) or nil;
 		jid = token_jid;
 		session = {