Ronnie Smith
Ronnie Smith

Reputation: 18595

Firebase JavaScript SDK - Retrieve Users IP Address

Assuming my browser script automatically signs any user in anonymously, is it possible to collect the users public IP address? I found the firebase.auth().currentUser.metadata property but it only includes LastSignInTime and creationTime. Is the users public IP address available via the Firebase authentication (or any part of the Firebase JavaScript API) system?

Upvotes: 2

Views: 1519

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317710

Firebase Authentication does not expose IP address as part of the user record, nor is it exposed anywhere in the client side SDKs. You will need a backend to record that for yourself.

Upvotes: 3

Related Questions