missing_salt login fail

I tried your code locally and could not reproduce your issue. I did experience the issue in @night’s first comment about being redirected back to chat in a new tab, but refreshing the original tab did show that I was logged in and I could chat.

What browser are you using? And which error specifically do you get from testing in this exact scenario – missing_salt or mismatched_nonce_salt_pair? Knowing will help us figure out what’s going on.