I am using auth api. Here is more facility. But you need to more hard work to use this
https://firebase.google.com/docs/reference/rest/auth