I am currently working on an android application which uses Google Firebase as the back end server.
One function I want to implement is disabling user accounts as they register through the application but I don't know how to do it.
Does anyone know how to implement this into the android code itself?
There's no method to disable a user account from the Android client SDK. You have to use Firebase Admin SDK for this. You can also trigger this function when a Firebase user is created on Firebase Cloud Function.
There's no method to disable a user account from the Android client SDK.
You have to use Firebase Admin SDK for this.
admin.auth().updateUser(uid, {
disabled: true
});
Guide link: Firebase Admin - Update a user
EDIT: Thanks @FrankvanPuffelen
You can also trigger this function when a Firebase user is created on Firebase Cloud Function.
read more here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With