This question does not really need code snippets or anything, I guess.
I've just implemented Firebase in my app, nothing else, enabling Google and Email Sign-In's. Now, every time a user logs in, I want to add his/her "name" and "email" to the "users" child in my database. But before that, I want to check if that user has already signed in before (perhaps by checking if the same email address already exists), and if not, then I want to insert that data in the database.
Please help.
PS: If the question is unclear, or badly formed, please suggest how I can improve it. Thanks!