防止Firebase用户删除自己 [英] prevent firebase user from deleting himself
问题描述
如果我打开一个安装了firebase的网站,并在用户登录后在浏览器控制台中执行此
firebase.auth()。currentUser.delete(),则当前用户将被删除。我怎样才能防止用户调用删除功能。有没有办法来禁用这个?
没有办法阻止用户删除他们的Firebase身份验证帐户。但是,在应用程序中是否暴露这样的功能当然取决于您。
这听起来有点像 XY问题。禁用用户删除他们的Firebase身份验证帐户,您试图完成什么样的应用程序级别问题?
If I open a website with firebase installed and i execute this firebase.auth().currentUser.delete() in browser console after a user has logged in, the current user will be deleted. How can i prevent a user from calling the delete function. is there a way to disable this?
There is no way to prevent a user from deleting their Firebase Authentication account. But whether you expose such functionality in your app is of course up to you.
It sounds a bit like an XY problem. What app-level problem are you trying to accomplish by disabling users from deleting their Firebase Authentication account?
这篇关于防止Firebase用户删除自己的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!