How to authenticate to Firebase using Python?

后端 未结 1 1597
耶瑟儿~
耶瑟儿~ 2021-01-28 04:16

I am building a Web App with Python and I would like to authenticate users. The pyrebase package seems to be outdated and it generates dependency errors so I canno

相关标签:
1条回答
  • 2021-01-28 04:39

    The Firebase Admin SDK does not have the concept of a current user, so there's no API to "sign in" a user based on their credentials.

    Since you're building a web app, the usual flow is to use the Firebase JavaScript SDK in your client-side code to sign the user in. If needed you can then send the ID token from the client to your Python code on the server, and perform user-based operations there.

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