Hi,
if I understand correctly, your issue is related to sdk authenticate function.
Do you use https ? Check your browser console, do you have corb / cross origin errors?
I noticed the same behaviour when calling sdk authenticate in chrome, edge...
Only firefox works after a reload (first call fails for me).
I was told that using SSO to manage authentication could fix this issue.
I'm setting it up now but facing some other issues but you could try that too.