firebase.auth is both a function and an object (general js question)

前端 未结 0 1247
逝去的感伤
逝去的感伤 2020-12-19 03:33

I was quietly creating a mock for firebase.auth() when I see this piece of code:

firebase.auth().setPersistence(firebase.auth.Auth.Persistence.LOCAL);
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题