Firebase-js-sdk: FR: Auth across subdomains

Created on 28 Oct 2019  路  5Comments  路  Source: firebase/firebase-js-sdk


[REQUIRED] Describe your environment

  • Operating System version: macOS Mojave Version 10.14.6
  • Browser version: Google Chrome Version 74.0.3729.131
  • Firebase SDK version: 5.5.9
  • Firebase Product: auth

[REQUIRED] Describe the problem

Steps to reproduce:

We've transitioned to using Firebase for auth and the desire is to now use Firebase across subdomains, which Firebase does not support out of the box. I've done my research and I see that there's been a few forum items requesting this exact feature here and here. Ultimately, the posts link to this stackoverflow issue. As far as I can tell, the best reason for this is:

Firebase only supports single host origin sessions

Why is this a limitation for Firebase? The stackoverflow item also states that

Firebase Auth is looking into supporting cookies.

What is the status of this? Has it been funded? Is there a way to see progress of this project somewhere? We have a strong desire to avoid rolling our own subdomain auth system, so looking forward to hearing your response 馃檪

auth internal-bug-filed feature request

All 5 comments

I wrote a blog post a while back describing how you can accomplish this using the current firebase auth API. Official support making this easier would still be very nice though.

Hi, any progress on this issue?

Hi, while this is not currently on our roadmap we have added this as a feature request to our tracker (for internal folks: b/162973088).

@samhorlbeck thanks a lot. Any workaround suggestions from your side?

I think @bojeil-google's response and discussion in the Stackoverflow response proposes the best workaround for the time being.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hvonralvert picture hvonralvert  路  3Comments

mohshraim picture mohshraim  路  3Comments

suparnavg picture suparnavg  路  3Comments

barakd picture barakd  路  3Comments

damonmaria picture damonmaria  路  4Comments