Join to the same meeting room with authentication

When I created a meeting room with Iframe API in my website and then when i logged in to the website as another user and created a meeting room with the same name both logins can join to the same meeting room without any issue.

But when I added JWT authentication and included JWT token in the iframe API when creating a meeting room it creates two meeting room instances for both login instead of connecting both users to the same meeting.

Could someone please explain the reason for this and why this is happening

As it turns out it was not a jitsi related issue. The issue was when generating JWT token values of the fields such as email, username etc was null due to some implementation bug and that’s what was causing the issue.

Hope this would be useful for someone who might run into a similar issue.