Firebase db question

how can i send requests to firebase database as an authenticated user?

1 Like

Try this rules:

{
“rules”: {
“.read”: “auth.uid !== true”,
“.write”: “auth.uid !== true”
}
}
1 Like

I mean how to make the application send requests to the Firebase database server as an authenticated user

You have to add a Firebase login component and request the users to login into your app

1 Like

but the two blocks (auth and database) communicate with each other or do you need to set something?

When the user login onto the app, you don’t have to set nothing. It will automatically detect it between components :wink:

1 Like

Mark my answer as :ballot_box_with_check: if it helps you please :wink::blush: @lleggend

1 Like

thanks :blush: :smiley:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.