Skip to content

FR: Expose passwordUpdatedAt in auth.UserRecord #663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
martinflorek opened this issue Dec 12, 2024 · 1 comment
Open

FR: Expose passwordUpdatedAt in auth.UserRecord #663

martinflorek opened this issue Dec 12, 2024 · 1 comment

Comments

@martinflorek
Copy link

  • Operating System version: Linux
  • Firebase SDK version: v4.15.1
  • Library version: v4.15.1
  • Firebase Product: auth

Describe the problem

I need to enforce passwords rotation and for that I need the timestamp when the password was last changed. This is available via the REST API as the passwordUpdatedAt property, which is my current workaround. It would be nice to have this included in the Go SDK though, so I don't have to mix raw HTTP calls with SDK.

Steps to reproduce:

auth.UserRecord struct does not have the PasswordUpdatedAt property. Looks like the REST parsing inside the SDK is done via the userQueryResponse struct in user_mgt.go file. That one is missing this property too.

Can you make this property available please? Thanks!

@martinflorek
Copy link
Author

Even better would be to expose everything, that the REST API returns. Otherwise the admin API is kind of limited. Thank!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants