防止Firebase用户删除自己 [英] prevent firebase user from deleting himself

查看:143
本文介绍了防止Firebase用户删除自己的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我打开一个安装了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆