Issue #20254 isAuthenticated relies too heavily on main.js to be in stomps.