-
Notifications
You must be signed in to change notification settings - Fork 37
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
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 👍 |
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: