Shen
Shen

Reputation: 25

Firebase Authentication database interaction

Is there a way to access the "Authentication" database in Firebase?

I'm building an app which uses the Firebase anonymous authentication I would like to access the Firebase "Authentication" database to check the last login of the user. Tried looking through the web but didn't find any reference.

Can someone point me to the right direction please?

Upvotes: 0

Views: 327

Answers (2)

bojeil
bojeil

Reputation: 30868

Firebase launched the admin node.js sdk. You can look users by uid or email and get their metadata like creation date and last login date. https://firebase.google.com/docs/auth/admin/manage-users

Upvotes: 1

Frank van Puffelen
Frank van Puffelen

Reputation: 600110

There is no API for you to access the timestamp of when a specific user last logged in. Most developers end up storing this type of information in their Firebase Database, for example with the structure outlined in the section structuring your database.

Upvotes: 1

Related Questions