This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Not working with firebase 10 #525
Comments
Also experiencing the same issue. |
Same thing here, did you fix it? |
Same for me. @n3n Would you have to time to fix this issue? |
Look's like it's not maintained anymore |
You need to include projectId in useFactory FirebaseAdminModule.forRootAsync({
useFactory: () => ({
credential: admin.credential.cert({
private_key: process.env.FIREBASE_PRIVATE_KEY,
client_email: process.env.FIREBASE_CLIENT_EMAIL,
project_id: process.env.FIREBASE_PROJECT_ID,
google_cloud_project: process.env.FIREBASE_PROJECT_ID,
} as Partial<admin.ServiceAccount>),
projectId: process.env.FIREBASE_PROJECT_ID,
databaseURL: process.env.FIREBASE_DATABASE_URL,
}),
}), |
@jeremytsngtsng your solution doesn't work Problem is that this lib will install its own firebase-admin package (v9).
|
@younes0 this is works so perfectly! You saved me, Thank you 👍 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When updating to firebase 10, I receive errors that initializing is not working anymore.
ERROR
Failed to determine project ID for Auth. Initialize the SDK with service account credentials or set project ID as an app option.
The text was updated successfully, but these errors were encountered: