Message from JavaScript discussions

September 2020

— Done

— 

Where should I store firebase config and other configuration files so that they are not exposed to anybody?

— Make sure the number given as a parameter to the function is in the array

— Environment variables

— Ok

— I'm using firebase admin sdk to list all the users. And the user is stored in mongodb with the corresponding uid.

Message permanent page

— Now, wt I wanna do is...

forEach user, I want to retrieve the corresponding user role which is stored in the mongodb collection.

Message permanent page

— How should I do this?

— Async for loop

— 

for(let user of users) await db.getUserRole(user);

— Let allUsers = [];

getUsers();
async function getUsers(){......};
console.log(allUsers);

— Here, console log is called before getUsers.