Firebase-admin-node: FR: find user by phone number

Created on 7 Jun 2017  路  6Comments  路  Source: firebase/firebase-admin-node

With the release of phone number authentication many apps will not have email address as a unique key. It would be very useful to have a 'findUserByPhoneNumber()` call in the admin SDK to match the email one.

feature request

Most helpful comment

All 6 comments

I was looking into creating a PR for this but it seems like the getAccountInfo endpoint of the auth API doesn't yet allow to search users by phoneNumber, only email and localId.

Feel free to comment here if/when that's added and I'll push the PR :)

P.S.: the documentation for the REST API should probably include the available request properties, in the same way the old documentation did.

Thank you for your help but I plan to implement this when the Auth backend supports it. It is not yet implemented. It is also part of a bigger change which features new API.

Related to this issue and #34, it would also be useful if we could change a phone number via tha admin sdk. I guess this will also be part of the new API you were referring to? Is there anything we can do to help?

Hang tight, it's all coming soon.

Was this page helpful?
0 / 5 - 0 ratings