如何批量删除 Firebase 匿名用户 [英] How to bulk delete Firebase anonymous users

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

问题描述

由于我可能滥用匿名身份验证(请参阅如何以防止 Firebase 匿名用户令牌过期)我的应用中有很多我实际上并不想要的匿名用户.

Due to my probable misuse of anonymous authentication (see How to prevent Firebase anonymous user token from expiring) I have a lot of anonymous users in my app that I don't actually want.

我看不出有任何方法可以批量删除这些用户.我必须一一手动完成吗?有没有办法使用 API 访问用户帐户并为当前用户以外的用户操作它们?

I can't see any way to bulk delete these users. Do I have to do it manually one-by-one? Is there anyway to use the API to access user accounts and manipulate them for users other than the current user?

推荐答案

Firebase 控制台无法批量删除用户.

There is no way in the Firebase Console to bulk-delete users.

没有用于批量删除用户的 API.

There is no API to bulk-delete users.

但是有管理 API 允许您删除用户帐户.请参阅 https://firebase.google.com/docs/auth/admin/管理用户#delete_a_user

But there is administrative API that allows you to delete user accounts. See https://firebase.google.com/docs/auth/admin/manage-users#delete_a_user

这篇关于如何批量删除 Firebase 匿名用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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