R
R
rzvr2022-04-05 11:10:09
JavaScript
rzvr, 2022-04-05 11:10:09

How to safely pass authorization data to an application on github?

I want to connect firebase storage and authentication to my test application, for this you need to write authorization data in the file, such as an api key, when pushing to github, it gives a warning that there are sensitive data in the project. How to keep the site up on github pages along with storage and authentication from firebase, but hide this data from the user?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2022-04-05
@rzvr

All your secret keys, if they get into the build, will be visible to everyone who is not too lazy to open f12.
What's in Firebase Docks? How do they recommend using it?
Didn't work with Firebase, but worked with an analogue - Supabase. There, the key is the project ID, nothing more. Maybe you just have a project ID key?

I
iBird Rose, 2022-04-05
@iiiBird

such data should be in the .env file, which in turn should be in .gitignore

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question