# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1582926940 0
# Node ID 5efd6865486ccb73d21a9279a0f7805df5a36f16
# Parent  4459afac4d13452c75ba5f2cb73d6c029c6af41e
mod_tokenauth: Track creation time of tokens

diff -r 4459afac4d13 -r 5efd6865486c plugins/mod_tokenauth.lua
--- 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 = {