author | Matthew Wild <mwild1@gmail.com> |
Wed, 13 Jul 2022 11:21:19 +0100 | |
changeset 5003 | 65cdbbf9703a |
parent 5002 | 5ab134b7e510 |
child 5004 | 8b6fe33d1c9b |
--- 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