How to integrate a self-hosted n8n with my current frontend (React + Vite) app using Firebase, and authentication, and redirection?

I’m working on a project that has its own frontend (React + Vite) hosted on Firebase, and I’m looking to integrate a self-hosted n8n workflow automation tool, which is deployed on a different domain using Firebase. I need advice on how to:

  1. How to self-host n8n Frontend with Firebase.
  2. Redirect between my app and n8n.
  3. Handle session authentication so that users are authenticated in both my app and n8n without needing to log in n8n.

Any suggestions or example projects to achieve this would be greatly appreciated!