How to avoid running Firebase methods within the Chrome console or any other browser.
By having a webpage that uses Firebase , any user familiar with the methods of Firebase , could create / modify users or record data, etc.
For example, if someone inserts the following lines in the console:
firebase.auth().createUserWithEmailAndPassword('[email protected]', '1234').catch(function(error) {
// Handle Errors here.
console.log(error.code);
console.log(error.message)
// ...
});
A Firebase user will be created. The same can be a snippet to create a reference in the Database or even delete the entire database (especially if it is a registered user).
Is there a way to disable the use of the console or to inject some Firebase so that it is not global?