Authentication timeout

We use a custom http authentication module to authenticate users to a meeting. We are running into an issue that sometimes the time to authenticate exceeds 60 seconds. When this happens, the browser hangs with message saying “Connecting…”. The authentication does take place successfully since it is logged in the prosody log.

Can someone explain why this is happening? Are there any timeout settings that we can modify to allow the user to be able to get into a meeting even when authentication takes more than 60 seconds?

Thanks.