简体   繁体   English

删除用户的 firebase 数据,如果后端没有使用推荐码

[英]Remove firebase data of user, if referral code is not utilized in the backend

I don't want a user account entry to be created, until a referral code is utilized in the main backend.在主后端使用推荐代码之前,我不想创建用户帐户条目。

But the authentication process does a firebase authentication first.但是身份验证过程首先进行 firebase 身份验证。

Will I be able to delete firebase entry of the user?我可以删除用户的 firebase 条目吗? Or Can firebase automatically deletes user data on a specific condition?或者 firebase 可以在特定条件下自动删除用户数据吗?

What other methods I could follow?我可以遵循哪些其他方法?

Any insight would be helpful.任何见解都会有所帮助。

Will I be able to delete firebase entry of the user?我可以删除用户的 firebase 条目吗?

You can certainly write code using the Firebase Admin SDK to delete user accounts as you see fit.您当然可以使用 Firebase Admin SDK 编写代码来删除您认为合适的用户帐户

Or Can firebase automatically deletes user data on a specific condition?或者 firebase 可以在特定条件下自动删除用户数据吗?

Firebase never automatically deletes user accounts. Firebase 从不自动删除用户帐户。 You have to either do that manually or write code to do it.您必须手动执行此操作或编写代码来执行此操作。

If you want to periodically delete accounts that don't have some conditions set to be valid, you could use Cloud Functions to write a scheduled function that will find a delete accounts you no longer want.如果您想定期删除没有设置为有效的某些条件的帐户,您可以使用 Cloud Functions 编写一个 预定的 function ,它会找到一个您不再想要的删除帐户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM