Do you think the complexity of auth in the browser, is because browsers don't do enough?
I think auth is complicated outside of browsers too. But browsers do make some things uniquely confusing, especially cookies and general security primitives are full of footguns
Not who you're replying to but browsers do way too much. Load the code you're given and don't do anything else.