Im using this function but the console prints before i get the value, does anyone know how to fix it? Thanks!
async function getContent(){
// Load client secrets from a local file.
let my_content;
await fs.readFile('credentials.json', async (err, content) => {
if (err) return console.log('Error loading client secret file:', err);
my_content = await JSON.parse(content);
});
console.log(my_content);
}