aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_tokenauth.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_tokenauth.lua')
-rw-r--r--plugins/mod_tokenauth.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_tokenauth.lua b/plugins/mod_tokenauth.lua
index 7bf19e9d..d4a30a96 100644
--- a/plugins/mod_tokenauth.lua
+++ b/plugins/mod_tokenauth.lua
@@ -341,3 +341,9 @@ function sasl_handler(auth_provider, purpose, extra)
return token_user, true, token_info;
end;
end
+
+module:daily(function()
+ for username in token_store:items() do
+ get_user_grants(username); -- clears out expired grants
+ end
+end)