Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fix broken claims comparison

Sam Whited7fb18d1cb346
diff --git a/prosody-plugins/mod_auth_token.lua b/prosody-plugins/mod_auth_token.lua
index 8a8b6a6ff7..f080d506bb 100644
--- a/prosody-plugins/mod_auth_token.lua
+++ b/prosody-plugins/mod_auth_token.lua
@@ -154,7 +154,7 @@ function provider.get_sasl_handler(session)
else
claims, msg = token_util.verify_token(token, appId, appSecret, disableRoomNameConstraints);
end
- if claims ~= true then
+ if claims ~= nil then
-- Binds room name to the session which is later checked on MUC join
session.jitsi_meet_room = claims["room"];
return true;