Open JRaams opened 2 months ago
I think this should be merged, I checked it out and it works for me as well! @posva do you maybe have some time to review? We actually need these changes.
On top of that, I have a question why the protocol for the firebase emulators is prefixed "http://", should it not be possible to support https locally as well? We are using self signed certificates to serve a development environment locally, including the firebase emulators.
So for both these problems (multi-tenancty / https emulators locally), we are currently using pnpm patches, which is obviously not the ideal situation.
Please let us know if we can provide something to help you out, since I see that you're busy, thanks in advance!
I'm in the process of planning time on VueFire with Firebase to work on needed features. Hopefully I will be able to allocate time for this in the following months
Potential starting point for multi tenancy support for firebase/auth, see https://github.com/vuejs/vuefire/issues/1515
Things to keep in mind:
getAuth
orauthForTenant
should be used. Afterwards the token gets parsed AGAIN in the validation proces, this time including signature validation. I don't think the impact would be too big since it's just parsing some base64url, but perhaps someone has a better idea for this.playwright install
has to be executed before those tests will pass. Would this be an issue?Unknown Error verifying session cookie Must initialize app with a cert credential or set your Firebase project ID as the GOOGLE_CLOUD_PROJECT environment variable to call verifySessionCookie().
Fixed this for now by prepending 'cross-env' to the package json scripts, as it seemed inappropriate to use the gitignored .env file to let nuxt handle this