Skip to content

Commit

Permalink
Use json as env variable for firebase admin service account (#25)
Browse files Browse the repository at this point in the history
.env variable value is a JSON string that is the contents of the key file
  • Loading branch information
erikrakuscek authored Feb 23, 2024
1 parent 398a958 commit ce172b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/hanzo-auth/lib/firebase/firebase-admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const firebaseApp =
getApps().find((it) => it.name === 'firebase-admin-app') ||
initializeApp(
{
credential: cert(process.env.FIREBASE_ADMIN_SERVICE_ACCOUNT!),
credential: cert(JSON.parse(process.env.FIREBASE_ADMIN_SERVICE_ACCOUNT!)),
},
'firebase-admin-app'
)
Expand Down

0 comments on commit ce172b0

Please sign in to comment.