Ask coding questions

← Back to all posts
How do you hide a service account.json
bloomss (1)

How would you hide a serviceaccount.json? Because its really not one key its multiple keys and that file has to be called in the index.js.

Comments
hotnewtop
Coder100 (18059)

you can set it in a .env file, like this:

KEY={"a":"...","b":"..."}

then,

const obj = JSON.parse(KEY);

done!

Andy_4sberg (54)

I don't know, but you should try storing it in the replit database.