firebase / firebase/firebase-admin-node

Auth UserRecord class missing passwordUpdatedAt property

Đang mở
#2,063 1 bình luận 3 reaction 0 người được giao Xem trên GitHub
api: auth
Ngôn ngữ chính
TypeScript
Star
1.7k
Fork
419
Merge trung bình
3 ngày 10 giờ
Pull request đã merge (30 ngày)
16

Mô tả

* Operating System version: MacOS 3.2
* Firebase SDK version: 11.4.1
* Firebase Product: auth
* Node.js version: 18.13.0
* NPM version: 8.19.3

### [REQUIRED] Step 3: Describe the problem

#### Steps to reproduce:

The `getUser` function wraps a call to the REST API method getAccountInfo:
https://developers.google.com/resources/api-libraries/documentation/identitytoolkit/v3/python/latest/identitytoolkit_v3.relyingparty.html#getAccountInfo

That API method exposes a `passwordUpdatedAt` property. However, the Admin SDK is instantiating a UserRecord class from the response which is missing that property. This property is useful in order to track password changes (e.g., send alert email to user that password was changed).

```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Theo dõi response của getUser đến lớp UserRecord và so sánh các thuộc tính được expose của lớp này với tài liệu API getAccountInfo được liên kết trong issue. Hoàn thành khi UserRecord expose giá trị passwordUpdatedAt để các caller có thể sử dụng giá trị này nhằm theo dõi các thay đổi mật khẩu; thêm hoặc cập nhật coverage tại nơi behavior hiện có của UserRecord được kiểm thử.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript
Lĩnh vực
authentication
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
42/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.