Closed 6174 closed 2 years ago
Describe the bug New to next.js & firebase, my code is the same with example, but stuck on this issue, I find the same issue in the issue list, but no solution.
the code
firebaseAdminInitConfig: { credential: { privateKey: process.env.FIREBASE_PRIVATE_KEY ? JSON.parse(process.env.FIREBASE_PRIVATE_KEY) : undefined, }, },
Versions
next-firebase-auth version: Firebase JS SDK: ^9.9.0 Next.js: 12.2.2
next-firebase-auth
Additional context I log out the private key with JSON.parse
pk { type: 'service_account', project_id: 'xxxx', private_key_id: 'xxxx', private_key: '-----BEGIN PRIVATE KEY-----\n' + 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' + 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' + 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' +
Describe the bug New to next.js & firebase, my code is the same with example, but stuck on this issue, I find the same issue in the issue list, but no solution.
the code
Versions
next-firebase-auth
version: Firebase JS SDK: ^9.9.0 Next.js: 12.2.2Additional context I log out the private key with JSON.parse