I found an alternative solution that does not directly answer my question but still provides the same behavior I needed. Perhaps this is also me not fully understanding how authorization and custom domains works earlier.
I came across this video from a few years ago that explicitly mentioned making a second site in your Firebase project and linking a custom auth domain to it. This is what I did:
my-project-staging
Firebase project, I created a new site on the Hosting page and called it my-project-staging-auth
. There is no code or custom app deployed to this project.my-project-staging-auth
called auth.staging.my-custom-domain.app
https://auth.staging.my-custom-domain/__/auth/handlers
to my Google client IDauth.staging.my-custom-domain
for its authDomain
propertyThis resolved the popup being handled by my main app. I'm still open to other alternatives if anyone has any, but this setup works well for my needs. Perhaps another way is to exclude certain routes in my React app so that Firebase handles them...