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