Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

119
Views
Can someone copy my Firebase config data?

I use firebase for authentication on JS. Everything is making in client side. Anyone can look my js files, copy the config datas, can make own project. How can I hide that datas? Because my plan is "pay as you go", If anyone copy that data, i have a big trouble. What should I do?

Maybe Firebase REST API can solve my problem. Is there any example about authentication with REST API.

I tried move codes Node.js but I couldnt handle it. You can see my index.js, It is on functions folder. I deploy it to firebase hosting. Authentication doesnt work.

const functions = require("firebase-functions");
const admin = require("firebase-admin");
const express = require("express");
const config = require('./config.js');
const app = express();
admin.initializeApp(config);

const app2 = initializeApp(config);

const auth = getAuth();
// // Create and Deploy Your First Cloud Functions
// // https://firebase.google.com/docs/functions/write-firebase-functions
//
app.post("/",  async (req, res) => {
  const user = req.body;

  await admin.firestore().collection("users").add(user);
  const mail=user.Email;
  const pass=user.Password;


  createUserWithEmailAndPassword(auth, mail, pass)
.then((userCredential) => {
  // Signed in 
  const user = userCredential.user;
  // ...
})
.catch((error) => {
  const errorCode = error.code;
  const errorMessage = error.message;
  // ..
});
  
  
 });
 exports.widgets = functions.https.onRequest(app);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can ensure that your firebaseConfig is stored in an environment variable. You can also secure the app with Firestore security rules and App Check

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!