英文:
is it possible to use the firebase extension "Delete User Data" in flutter code
问题
我在我的应用程序中有一个“删除我的帐户和所有数据”按钮。
是否可以使用Firebase扩展“删除用户数据”来实现这个功能?
这个Firebase扩展的链接是:https://extensions.dev/extensions/firebase/delete-user-data
我找不到代码示例,似乎它只能在Firebase控制台中使用?
英文:
I have a "Delete my account and all data" button in my app.
Is it possible to use the firebase extension "Delete User Data" for this?
this firebase extension: https://extensions.dev/extensions/firebase/delete-user-data
I can't finde a code example, it seems to me it's only for use in the firebase console ?
答案1
得分: 1
扩展文档开头提到:
> 当用户从Firebase身份验证中删除时,可以使用此扩展自动删除某些与用户ID相关的数据。
这意味着任何用户帐户在Firebase身份验证中被删除时都会触发。这可以是手动删除,或者如果您允许用户自己删除其帐户。不需要提供代码示例 - 任何一种可以执行此操作的SDK和API都可以应用于删除用户帐户。
如果这是您要做的事情,那么这似乎会很有帮助。
英文:
The extension documentation says at the beginning:
> Use this extension to automatically delete certain data keyed on a user ID when the user is deleted from Firebase Authentication.
This means any time a user account is deleted in Firebase Auth. That could be manual deletion, or if you allow the user to delete their own account. No code sample is required - any deletion of user account applies through any one of the many SDKs and APIs provided that can do it.
If that's what you're trying to do, then this seems helpful.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论