I\'m building a website where I\'ve integrated firebase authentication for login/signup of site users.
Users can login/signup via either email-password or mobile OTP
First signup and onComplete
method check if signup is successful.
if (task.isSuccessful()) {
// String userId = task.getResult().getUser().getUid();
// get user unique id
// saveUserData()
}
get user unique id and use it as key and store data like
applicationName->usersNode->userId->data
check if data is stored successfully proceed to next activity or Home page else remove user from auth and ask him to retry again.