Closed yifanplanet closed 2 months ago
It works correctly for me though. Can you re-check once?
Just to be on the same page, I followed these steps:
serviceSid
const identity = 'user-identity';
client.verify.v2.services(serviceSid)
.entities
.create({
identity: identity
})
.then(entity => console.log(entity));
client.verify.v2.services(serviceSid)
.entities(identity)
.newFactors
.create({
friendlyName: `Name`,
factorType: 'totp'
})
.then(new_factor => console.log(new_factor));
factorSid
and used new_factor.binding.uri to create QR code using this.const totpCode = '123456'
client.verify.v2.services(serviceSid)
.entities(identity)
.factors(factorSid)
.update({authPayload: totpCode})
.then(factor => console.log(factor));
Let me know if I am doing something different but it works fine for me. Thanks!
Sorry that was a mistake on my side. Thanks so much for detailed steps for the implementation. One question: Is the entity create step necessary for the factor verification?
Nope, it is not necessary. I just created it to see if that os creating a problem for you.
Issue Summary
I received error
RestException [Error]: Missing required parameter FriendlyName in the post body
when using wilio-node SDK and verifying factor using update method following the doc: Verify that the user has successfully registeredSteps to Reproduce
Code Snippet
Exception/Log
Technical details: