I am looking to fetch Auth User(s) UID from Firebase via NodeJS or Javascript API. I have attached screenshot for it so that you will have idea what I am looking for.
if a user is logged in then the console.log will print out:
if (firebase.auth().currentUser !== null) console.log("user id: " + firebase.auth().currentUser.uid);