In react native app (through Expo) using firestore permissions - request.auth is always null

前端 未结 7 1862
天命终不由人
天命终不由人 2020-12-31 09:51

Here\'s my code:

firebase.auth().onAuthStateChanged((user) => {
    if (user) {
        console.log(\"We are authenticated now!\");
        firebase.fires         


        
7条回答
  •  悲&欢浪女
    2020-12-31 10:18

    Sorry I'm late to the party, but I just came across this and thought I'd share my experience. I had the exact same issue, and after months of researching and debugging, it resolved itself when I upgraded to firebase v 5. Here's a link to my SO post and solution. Hope it helps: https://stackoverflow.com/a/51115385/6158840

提交回复
热议问题