Software /
code /
prosody-modules
Diff
mod_http_xep227/mod_http_xep227.lua @ 5008:bd63feda3704
Merge role-auth
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 22 Aug 2022 15:39:02 +0100 |
parent | 4999:65cdbbf9703a |
line wrap: on
line diff
--- a/mod_http_xep227/mod_http_xep227.lua Tue Aug 16 13:10:39 2022 +0200 +++ b/mod_http_xep227/mod_http_xep227.lua Mon Aug 22 15:39:02 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