-
Notifications
You must be signed in to change notification settings - Fork 407
Closed
Labels
Description
Operating System version: Win 10
Firebase SDK version: firebase admin 9.2.0
Firebase Product: auth
Angular version: 9.1.3
Steps to reproduce:
Try to update existing user for add multifactor with phone number. Using piece of code from
https://cloud.google.com/identity-platform/docs/admin/manage-mfa-users
Relevant Code:
admin.auth().updateUser('123456789', {
multiFactor: {
enrolledFactors: [
{
// uid will be auto-generated.
phoneNumber: '+16505550003',
displayName: 'Spouse\'s phone',
factorId: 'phone',
}
],
},
})
.then((userRecord) => {
console.log(userRecord.multiFactor.enrolledFactors);
})
.catch((error) => {
console.log(error);
})
Expected:
User is updated with new enrolledFactor
Result:
Code is not compilable:
Object literal may only specify known properties, and 'phoneNumber' does not exist in type 'UpdateMultiFactorInfoRequest'.
zepolyerf, ptricot, jakebiesinger-storyhealth and ManuelWeidijkQict