We are building a js library which is included on third-party sites. When a user takes an action on the third-party site, our library pushes it to a write-only path on Firebase corresponding to the url they made it on.
To allow our clients to view the actions the user has taken ON their actual site, we'd like to log them into firebase on our end and then redirect them to their own site. Our library on their site checks if their uid matches for 'owner' for this site; if so, they then get read-access to the firebase path and can see these 'actions'.
I hacked something up but realise I can't persist sessions between domains. It does work when our clients login from their site, through our js drop-in. We're just using simple login right now, and don't have anything server-side. I'm using the js lib.
Can I use firebase to do this, or do you not support cross-domain sessions? I'm open to spooling up a backend if custom auth will help.
Cheers!