plugins/mod_tokenauth.lua
changeset 13278 ddfe07041fc5
parent 13277 a1c927323f06
child 13279 5db61e0dfc62
--- a/plugins/mod_tokenauth.lua	Mon Oct 16 23:51:52 2023 +0200
+++ b/plugins/mod_tokenauth.lua	Mon Oct 09 20:31:35 2023 +0200
@@ -341,3 +341,9 @@
 		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)