On my Firebase App: Any user can delete my Firebase App by just executing 'firebase.app().delete'
. How do I prevent that from happening?
I tried to block the script by going to Firebase > Authentication > Settings > User Actions > Unchecking "Enable Delete". That did not work.
I tried to splice out the .delete in the firebase.app() by executing 'firebase.app().remove('delete')' but it still does not work
None of them work, How do I fix this? My Firebase Version is 8.6.0
CodePudding user response:
The firebase.app().delete()
just deletes instance of Firebase client and that essentially means none of related Firebase services will work unless user refreshes the page. This has nothing to do with Firebase Authentication and does not delete user's account.
If you are trying to prevent user from deleting their account by running firebase.auth().currentUser?.delete()
, then you can uncheck Enable delete
from Authentication settings.