When running multiple projects, if you visit a site authorized in the toolbar while signed into a different project, it will inadvertently load the data for the currently authenticated project even though the hostname doesn't match an authorized hostname.
The flags below are for the PostHog environment but the toolbar authorized on a domain that isn't connected to the PostHog env (but that uses a shared login between the two).
How to reproduce
In PostHog, open a project ("Project A") in PostHog and open an authorized URL via toolbar
Go back to PostHog and open another project ("Project B")
Visit the URL where the toolbar is open and refresh. If you look at feature flags, you'll see flags from Project B instead of Project A
Bug description
When running multiple projects, if you visit a site authorized in the toolbar while signed into a different project, it will inadvertently load the data for the currently authenticated project even though the hostname doesn't match an authorized hostname.
The flags below are for the PostHog environment but the toolbar authorized on a domain that isn't connected to the PostHog env (but that uses a shared login between the two).
How to reproduce