0

Hello Is there a way in which I can apply a function to all the pages in a folder.

For example, if I have a user folder that has all the pages that a firebase User has access too how do I restrict access to that folder for everyone that is not a user with a

        firebase.auth().onAuthStateChanged(function(user) {
            if (user) {
            // maintain the page
            } else {
                window.location = 'index.html'
            }
        });

thank you

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Jaffer Abyan Syed
  • 129
  • 1
  • 2
  • 11
  • There is currently no way to limit who can access files in Firebase Hosting. All files are publicly accessible. See https://stackoverflow.com/questions/27212004/can-firebase-hosting-restrict-access-to-resources – Frank van Puffelen Jan 04 '19 at 02:08
  • @FrankvanPuffelen thank you i will look at the duplicated question – Jaffer Abyan Syed Jan 04 '19 at 03:15

0 Answers0