And*_*rov 9 firebase firebase-authentication
我有一个火力基地项目。启用了下一个登录方法 auth:
移动应用程序与 Firebase 交互。
每天我都会收到一些奇怪的新用户注册假帐户,格式为:[name][numbers]@gmail.com。除了通过 google oauth 注册一次之外,他们什么都不做。
有没有可能阻止它?也许我错过了 google oauth 配置?
更新:
此外,我注意到当我将移动应用程序发送到谷歌/苹果验证时,这些注册开始发生。这两个事件可能相关吗?
如果您确定这些假用户的电子邮件地址具有特定模式,我会在 Cloud Functions for Firebase 上创建一个触发函数。
您可以使用functions.auth.user().onCreate()如下事件处理程序。
exports.checkFakeUser = functions.auth.user().onCreate((user) => {
// You can check if the user has suspicious email patterns and delete them here.
});
Run Code Online (Sandbox Code Playgroud)
或者你也可以在Cloud Functions for Firebase上做一个Schedule功能,每天检查是否有假用户并自动删除。
另外,如果您发现假用户仍然加入,即使您没有在任何地方公开您的移动应用程序,如果您想找出他们加入的原因,这将是一个很好的步骤。
| 归档时间: |
|
| 查看次数: |
769 次 |
| 最近记录: |