mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
mod_tokenauth: Track creation time of tokens
This commit is contained in:
parent
92c65ed9af
commit
40bb67c03b
1 changed files with 1 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue