0

I need to get the user ID when I input the mail of the user.

Is it possible?

Of course I have an authenticated user who is asking for the mail of a user already created.

I want to retrieve users like

var refer = firebase.auth ().ref ('[email protected]')
  refer.on ('value', function (snapshot) {
    console.log (snapshot.val());
  })

But in a possible way.

adjuremods
  • 2,938
  • 2
  • 12
  • 17
RaulGM
  • 272
  • 2
  • 6
  • 21

1 Answers1

1

Store the user info you want on a separate node in your database structure, then when the user asks for that, you retrieve from that endpoint.

See these:

Community
  • 1
  • 1
KhoPhi
  • 9,660
  • 17
  • 77
  • 128