# HG changeset patch # User Matthew Wild # Date 1657707679 -3600 # Node ID 65cdbbf9703a0795cb2e3e1259fd69075c7ad81b # Parent 5ab134b7e510db8bf6a18400e1314f4e4d8524ac mod_http_xep227: Updates for new mod_tokenauth (trunk/0.13 only) diff -r 5ab134b7e510 -r 65cdbbf9703a mod_http_xep227/mod_http_xep227.lua --- a/mod_http_xep227/mod_http_xep227.lua Wed Jul 13 11:20:09 2022 +0100 +++ b/mod_http_xep227/mod_http_xep227.lua Wed Jul 13 11:21:19 2022 +0100 @@ -346,11 +346,7 @@ end if auth_type == "Bearer" then - local token_info = tokens.get_token_info(auth_data); - if not token_info or not token_info.session then - return false; - end - return token_info.session; + return tokens.get_token_session(auth_data); end return nil; end