wrong ServiceAccount properties to initializeApp for admin #172
Unanswered
hendrik244
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Have you tried wrapping the FIREBASE_PRIVATE_KEY with single quotes and then with double quotes, for example
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to try the example.
During the compilation i the following error:
My .env.loval file looks like this:
FIREBASE_PRIVATE_KEY=-----BEGIN PRIVATE KEY-----XXXXXXXXXXX-----END PRIVATE KEY-----
I think it's because the interface is containing the wrong json properties(?):
firebaseAdminInitConfig?: { credential: { projectId: string; --> should be "project_id" clientEmail: string; --> should be "client_email" privateKey: string; --> should be "private_key" }; databaseURL: string; };
Beta Was this translation helpful? Give feedback.
All reactions