firebase / firebase/firebase-admin-java

[FR] Expose MFA info in UserRecord

未關閉
#645 7 則留言 14 個 reaction 已指派 1 人 已指派給 @pragatimodi 在 GitHub 檢視
api: auth help wanted type: feature request
主要語言
Java
星號
620
分支
305
平均合併
3 小時 23 分鐘
30 天內合併 PR
1

描述

**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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。