anchor
anchor

Reputation: 43

How to get the password change date in Firebase?

I need to notify users to change their password once every 6 months.

I can see the date the user's account was created and the date the user last logged in.

But I don't know how to get the date the user changed the password.

How to get change password date in Firebase ?

Upvotes: 2

Views: 797

Answers (2)

Frank van Puffelen
Frank van Puffelen

Reputation: 599661

The Firebase SDK don't expose the timestamp that the password was last changed, but I see that the value is exposed on the REST API in the passwordUpdatedAt property. That means the value also is likely present in the ID token of the user, so you could try logging the raw value of that or decoding it yourself and checking the claims in there.

Upvotes: 5

Pranav Purwar
Pranav Purwar

Reputation: 49

maybe you can try rechanging the password programmatically or pushing the time in database and then getting the key

Upvotes: 1

Related Questions