Hello.
I am trying to connect firebase , so installed nestjs-firebase-admin into my project.
But I am not sure, I have to call admin.initializeApp({credential ...}) manually.
I have specified credential, in useFactory(), but it does not work , and showing error message like:
"Credential implementation provided to initializeApp() via the credential property failed to fetch a valid Google OAuth2 Access Token ..."
Please teach me for this!
var serviceAccount = require(path.resolve(process.env.FIREBASE_CREDENTIAL_PATH));
Hello. I am trying to connect firebase , so installed nestjs-firebase-admin into my project. But I am not sure, I have to call admin.initializeApp({credential ...}) manually. I have specified credential, in useFactory(), but it does not work , and showing error message like: "Credential implementation provided to initializeApp() via the credential property failed to fetch a valid Google OAuth2 Access Token ..." Please teach me for this!
var serviceAccount = require(path.resolve(process.env.FIREBASE_CREDENTIAL_PATH));