I have the following structure in my Firebase:
users ->
uid ->
provider: "facebook.com"
username: "vandanpatel"
When I log the user in, I just want to check if he has his username already set or not. I have the mechanism to get the current user. I just want to check if the current user has the field "username" or not. I have tried everything, but nothing seems to work for me. if they don't have "username" field, I would make them select the "username" and set it.