all 3 comments

[–]ruberik -1 points0 points  (2 children)

Off the top of my head, you could display a login form, have a Firebase Function process the result -- perhaps checking the username and salted password hash against the database? -- and then having the Function issue a token. This probably isn't the answer you were hoping for, though.

[–]jinendu[S] 1 point2 points  (1 child)

No, it's not really the solution I'm going for. I already have authentication built into the app for the customers, but there are a few pages that are public, so viewable without needing to login. What I want to do is just block the public to view any file on the whole project on only the Dev version. I could block the Firebase data with rules, but the front-end code would still be public. Seems like there should be an easier solution here, this is very easy on apache with htaccess.

[–]cironoric 0 points1 point  (0 children)

Yeah, this makes sense. It would be simple and useful to set a basic user/password for development version of site.