thisbejim / Pyrebase

A simple python wrapper for the Firebase API.
2.05k stars 525 forks source link

WARNING: Using the Firebase Admin SDK instead of this will save you time. #447

Closed blipk closed 1 year ago

blipk commented 1 year ago

After using this (and pyrebase4 fork) for a year in a production app, I strongly discourage anyone from using it.

I had endless problems with setting this up to handle errors as well as with the various authorization and account management flows.

The official Firebase Admin SDK is much simpler and easire to implement, and the session cookies a nice feature.

The ONLY and STUPID problem with the Firebase Admin SDK is you can't log in with email and password and get an id_token to create the initial session cookie.

To solve this I recommend inspecting the sign_in_with_email_and_password function in Pyrebase and implementing your own request to the REST endpoint, then using that token to work with the Firebase Admin SDK.