nhorvath / Pyrebase4

A simple python wrapper for the Firebase API. ⛺
248 stars 61 forks source link

Pyrebase4 and Security Rules #51

Closed arncode90 closed 1 year ago

arncode90 commented 1 year ago

Hi, i have a question.. Does Pyrebase4 has a method to use for security rules?

by set "auth.uid != null" in rules, i cant read / write to the database

seems like Pyrebase not capture/ detecting/ sending logged in user in Firebase server to apply with the rules that has been set

arncode90 commented 1 year ago

confused in the readme section, I didnt see that :

Pass the user's idToken to the push method

results = db.child("users").push(data, user['idToken']) is the way to access database when we set auth.uid != null in rules