简体   繁体   中英

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.

Will I be able to delete firebase entry of the user? Or Can firebase automatically deletes user data on a specific condition?

What other methods I could follow?

Any insight would be helpful.

Will I be able to delete firebase entry of the user?

You can certainly write code using the Firebase Admin SDK to delete user accounts as you see fit.

Or Can firebase automatically deletes user data on a specific condition?

Firebase never automatically deletes user accounts. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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