Completely accidentally. the URI and query parameter that my authentication gateway was using was the same as electerm-web’s wss service which was causing the issue.
I renamed it to something more peculiar to resolve this issue and probable future cases.