mod_http_xep227/mod_http_xep227.lua
changeset 5003 65cdbbf9703a
parent 4880 0f5f2d4475b9
--- 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