firebase / firebase/firebase-admin-go

FR: Expose passwordUpdatedAt in auth.UserRecord

Open
#663 1 comment 0 reactions 0 assignees View on GitHub
type: feature request
Dominant language
Go
Stars
1.3k
Forks
274
Avg merge
10h 39m
Merged PRs (30d)
2

Description

* 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](https://firebase.google.com/docs/reference/rest/auth#section-get-account-info) 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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.