Firebase function context.auth and context.authType undefined

后端 未结 1 1341
忘掉有多难
忘掉有多难 2020-12-10 05:27

I am diving into Firebase functions (server-side), and having trouble grabbing the authentication information from within the function. In it\'s simplest form, my index.ts

相关标签:
1条回答
  • 2020-12-10 05:59

    Auth information is only given for Firebase products that provide auth information to Cloud Functions for each triggered event. Currently, only Realtime Database supports this. Firestore support is being worked on. In theory, Cloud Storage could provide support as well.

    It's inconsistent because each event provider in Cloud Functions for Firebase is driven by different teams, each with different implementations and priorities.

    0 讨论(0)
提交回复
热议问题