The only change I recall doing was enforcing the login flow if the user isn’t already logged in, something like:
if (!Discourse.User.current()) {
Discourse.__container__.lookup("route:application").send("showLogin");
}
I still use it in my community to take users from my React app directly to some of these flows on Discourse (reply, edit, upload, etc).