Out of box, Firebase Authentication is only going to work on a single domain. A solution for multi-domain authentication could be made from the following components:
When you create the cookie you'll be able to set your own policies. Note the client side SDK does not respect these cookies.