-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use Admin + Firestore Client API in a Cloud Function #612
Comments
I found a few problems with this issue:
|
Switching my code to use the The problem here is: I have an app that uses pretty much every Firebase tech out there.
The combination of those 3 features requires:
My temporary workaround is to use the client sdk and then added a |
@lookfirst We are also using Firebase in that same capacity. Specifically with the custom claims and we are unable to run the Firebase shell with both Admin SDK and Firebase SDK. |
Closing this, see the discussion here: firebase/firebase-js-sdk#2054 |
Related to: firebase/firebase-js-sdk#2054
I just went through my entire codebase and carefully made sure that I'm at the latest versions of all my google dependencies.
I fixed every single one of my imports to only import exactly what was needed. No more
* as admin
or* as firebase
. Also no moreimport admin from 'firebase-admin'
All my imports look like this now:
I'm referencing database from my initialized app:
firebaseAdminApp.database()...
I'm still getting this error...
There is no way to use both Admin SDK and Firebase JS SDK in firebase cloud functions with this error.
The text was updated successfully, but these errors were encountered: