I'll start with i dont know if this is an issue with kibana, browser or my UI but someone might have a suggestion.
So i check if kibana is up by hitting
https://kibana-instance:5601/api/status which returns either 200 if the user is already authenticated or 401 if they are not. If it gets 200 or 401 i return true and attempt to do something if it gets no response(an error) i return false and do something else.
The issue seems to be if you hit that endpoint and get 401 in chrome and firefox (not tested in safari) it will just loop indefinitely. Not sure if its a setting in kibana which i'm not sure it is or if its a know issue.