How do I add Firebase Admin Auth into React app .env?
问题 Good question, to add the google auth from firebase for admin access, first you need the .json file from firebase, you can get it from your admin panel where you have auth setup go to the service account generate and download the JSON use it in your file how you wish... example my admin route //Use dotenv to read .env vars into Node require('dotenv').config(); const express = require('express'); var router = express.Router(); // Schema import const postModel = require('../models/postModel');