Comments (4)
It works correctly for me though. Can you re-check once?
from twilio-node.
Just to be on the same page, I followed these steps:
- I created a service from here and stored the Service SID in variable
serviceSid
- Next, I created an entity using this code snippet:
const identity = 'user-identity';
client.verify.v2.services(serviceSid)
.entities
.create({
identity: identity
})
.then(entity => console.log(entity));
- Then I created a new TOTP factor using this:
client.verify.v2.services(serviceSid)
.entities(identity)
.newFactors
.create({
friendlyName: `Name`,
factorType: 'totp'
})
.then(new_factor => console.log(new_factor));
- I saved the value of new_factor.sid in
factorSid
and used new_factor.binding.uri to create QR code using this. - Scanned this QR code and saved the key in my phone.
- Then used the following code snippet for verification:
const totpCode = '123456'
client.verify.v2.services(serviceSid)
.entities(identity)
.factors(factorSid)
.update({authPayload: totpCode})
.then(factor => console.log(factor));
- The status shows verified for me
Let me know if I am doing something different but it works fine for me. Thanks!
from twilio-node.
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?
from twilio-node.
Nope, it is not necessary. I just created it to see if that os creating a problem for you.
from twilio-node.
Related Issues (20)
- [Feature Request]: twilio message create timeout HOT 5
- Twilio Studio HOT 1
- please support latest node v20 HOT 3
- Certificate error while creating conversation message in ie1 HOT 3
- Regression: some call filtering params got removed in v5 HOT 2
- Right-hand side of 'instanceof' is not an object for token.toJwt() (next.js) HOT 2
- Unable to import Twilio HOT 9
- Misleading / Incorrect documentation for webhook validation HOT 5
- retries for network errors (e.g. ECONNRESET)
- [Bug]: Module not found. Error polyfills, HOT 1
- Conferences('xxx').recordings.create does not exist
- [Feature Request]: Need to add background sound with twilio voice call like background office sound or something.
- Twilio crashed nodejs on errors 'Uncaught Exception' HOT 6
- [Feature Request]: fix audit HOT 2
- Question about task_queue_bulk_real_time_statistics HOT 2
- Twillio doesn't work with remix js
- Problem with Twilio streams using Websockets
- update you readme ffs. HOT 4
- [Vulnerability] patch axios vulnerability CVE-2023-26159 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twilio-node.