0

I want only register user can view my app but I don't know how can I do it using firebase in ReactJS.

when I type localhost:3000/home it is visible without loggedin

Frank van Puffelen
  • 499,950
  • 69
  • 739
  • 734
Naveed Aheer
  • 1,635
  • 5
  • 24
  • 39
  • 1
    Check whether the user is logged in (in a script on that page), if they aren't you can redirect them. – Dan Prince Apr 08 '17 at 12:06
  • [Firebase Hosting does not have a built-in way to control who can access the resources](http://stackoverflow.com/q/27212004). But you can use security rules to control who can access what data in the [Firebase Database](https://firebase.google.com/docs/database/security/) or [Cloud Storage](https://firebase.google.com/docs/storage/security/). – Frank van Puffelen Apr 08 '17 at 14:47

0 Answers0