firebase / firebase/firebase-admin-node

admin/auth/updateUser for MFA not working

オープン
#2,285 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る
api: auth
主要言語
TypeScript
スター
1.7k
フォーク
419
平均マージ
3日 10時間
マージ済み PR(30日)
16

説明

Hello. Discovered the following issue using firebase admin v10. I can successfully enroll a user for the MFA process by calling admin.auth().updateUser(...) with multiFactor/enrolledFactors provided. But removing enrolled factors is not successful (https://firebase.google.com/docs/auth/admin/manage-mfa-users):

```
admin.auth().updateUser({
uid: '123456789',
multiFactor: {
enrolledFactors: null,
},
})
.then((userRecord) => {
console.log(userRecord.multiFactor);
})
.catch((error) => {
console.log(error);
});
```
The factors remain in DB. I can see the same discussed for Golang as well here https://github.com/firebase/firebase-admin-go/pull/530/files.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by reproducing the admin.auth().updateUser(...) call shown in the issue with multiFactor.enrolledFactors set to null, and compare its behavior with the MFA management documentation and linked Go pull request. Done means removing enrolled factors through this call no longer leaves them in the database and the returned user record reflects the removal.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
node.js, typescript
領域
authentication
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。