firebase / firebase/firebase-admin-java

[FR] Expose MFA info in UserRecord

Đang mở
#645 7 bình luận 14 reaction 1 người được giao Được giao cho @pragatimodi Xem trên GitHub
api: auth help wanted type: feature request
Ngôn ngữ chính
Java
Star
620
Fork
305
Merge trung bình
3 giờ 23 phút
Pull request đã merge (30 ngày)
1

Mô tả

**Is your feature request related to a problem? Please describe.**
[UserRecord.java](https://github.com/firebase/firebase-admin-java/blob/master/src/main/java/com/google/firebase/auth/UserRecord.java) does not parse a user's multi factor enrollment information, which is documented [here](https://cloud.google.com/identity-platform/docs/admin/manage-mfa-users).

```javascript
{
uid: 'some-uid',
// ...
multiFactor: {
enrolledFactors: [
// 2FA with SMS as 2nd factor.
{
uid: '53HG4HG45HG8G04GJ40J4G3J',
phoneNumber: '+16505551234',
displayName: 'Work phone',
enrollmentTime: 'Fri, 22 Sep 2017 01:49:58 GMT',
factorId: 'phone',
},
],
},
};
```
**Describe the solution you'd like**
Add a `mfaInfo` field to `UserRecord`. Example from the Node.js SDK: https://github.com/firebase/firebase-admin-node/blob/master/src/auth/user-record.ts#L78

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

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

Đánh giá

Issue này chưa được đánh giá.

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.