firebase-jest-testing icon indicating copy to clipboard operation
firebase-jest-testing copied to clipboard

Revise the code and the approach

Open akauppi opened this issue 3 years ago • 0 comments

Firebase has user impersonation support in the client code. The author thinks this is the wrong side. It should be in firebase-admin, leaving the (browser) client to be production-only.

However, that's how it is.

Should we join that, now that "v9" can be seen as the only API?

  • [ ] If so, can we let go of firebase-admin, or need that as well?

It feels wrong to need to have Firebase-like APIs without actually using it. While this offers us some stability over API changes in Firebase side, it may cause a learning step and prevent adoption of this repo.

Whatever the outcome, one should not need to use both Firebase Admin and Firebase JS client, in writing the tests.

akauppi avatar Jun 24 '22 18:06 akauppi