Is there any way to get Firebase Auth User UID?

后端 未结 5 1056
小蘑菇
小蘑菇 2020-12-08 14:34

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.

<
5条回答
  •  盖世英雄少女心
    2020-12-08 15:23

    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);
    

提交回复
热议问题