Getting user info from request to Cloud Function in Firebase

后端 未结 1 1649
一向
一向 2021-01-12 11:38

I\'d like to be able to get user information for a Cloud Function that gets called in Firebase. I have something like this, which is being called after the user signs into t

相关标签:
1条回答
  • 2021-01-12 12:02

    Information about the user that makes the request is not automatically passed along with HTTPS functions calls.

    You can either pass the ID token along yourself and decode/verify it in your function, or you can use a callable HTTPS function, which passes the user information along automatically.

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