自动删除匿名Firebase帐户 [英] Automatic deletion of anonymous Firebase accounts

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

问题描述

我使用Firebase数据库和存储为我的Android应用托管一些图片.这些图片仅由我从Firebase Web界面上传.数据库和存储具有规则,因此只有经过身份验证的用户才能阅读,而任何人都不能写. (因此,没有用户生成的内容,我只需要一个地方来托管我的Android应用程序的图形即可.)

I use Firebase Database and Storage to host some pictures for my Android app. Those pictures are only uploaded by me from the Firebase web interface. The Database and Storage have rules so only authenticated users can read and nobody is allowed to write. (So there is NO user generated content, I just need a place to host graphics for my Android app).

读取访问权限要求进行身份验证的原因是,确保没有其他人在其他应用程序(或网站)中使用图片.对于身份验证,我创建(仅)匿名帐户. (它们是在首次启动应用程序时自动创建的.)

The reason authentication is required for read access is to make sure nobody else uses the pictures in another app (or website). For the authentication I create (only) anonymous accounts. (They are created automatically on first app start).

我的问题是关于匿名用户帐户:不再使用这些帐户时,这些帐户是否会被删除?每次清除(或重新安装)我的应用程序时,都会创建另一个匿名用户帐户.

My question is about the anonymous user accounts: Will these ever be deleted when they aren't used anymore? Every time I clear data (or reinstall) my app, then another anonymous user account is created.

这是我应该担心的事情,还是这种正常的行为?有什么我可以改善的地方吗?请注意,我的应用程序的这一部分尚未对所有用户开放,因此我可以根据需要更改内容.

Is this something I should worry about or is this normal behaviour? Is there anything I could improve in my situation? Please note that this part of my app is not yet live for all users, so I can change stuff if needed.

推荐答案

Firebase身份验证不会自动删除帐户.

Firebase Authentication does not automatically delete accounts.

但是对于匿名帐户,服务器上没有任何数据维护,因此,每当您的用户丢失其匿名身份验证令牌时,Firebase身份验证都会忘记该帐户.

But no data is maintained on the server for anonymous accounts, so effectively every time your users lose their anonymous authentication token, that account is forgotten by Firebase Authentication.

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

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