Telnyx 2FA Verify Flow
Strengthen your application's security with two-factor authentication (2FA). Seamlessly integrate Telnyx into Node-RED for a powerful and user-friendly experience. Leverage Telnyx's global reach to send OTPs via SMS worldwide.
With Telnyx's robust infrastructure, ensure reliable OTP delivery. Utilize Node-RED's intuitive visual programming interface for easy integration and workflow creation. Enhance user authentication, protect sensitive data, and prevent unauthorized access.
Verify Profile
Verify profiles enable you with a unique Verify Profile ID. With that ID you should be able to deliver your Verification Code through any supported channel
To
This is the destination phone number receiving the 2FA/OTP code.
The telnyx-2fa will share the credentials with the other telnyx-sms node, so that you can input API Key once.
IMPORTANT
Generating the 2FA The telnyx-2fa node MUST receive in input a boolean msg.payload.verify with false state, along with the telnyx-2fa parameters Verify Profile and To .
Verify the Received Code by Phone Number The telnyx-2fa node MUST receive in input a boolean msg.payload.verify with true state, along with the msg.payload.code cotaining the code received in the previous generated SMS, along with the shared parameters Verify Profile and To, already configured for telnyx-2fa.
[{"id":"870259f405be5fc9","type":"tab","label":"Telnyx","disabled":false,"info":"Telnyx Node-RED Sample Flow","env":[]},{"id":"d0a3bed732c81fde","type":"inject","z":"870259f405be5fc9","name":"2fa-generate","props":[{"p":"payload.verify","v":"false","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":350,"y":200,"wires":[["06bf458ec66f79c2"]]},{"id":"8f4bc47a3a1be27e","type":"debug","z":"870259f405be5fc9","name":"debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":750,"y":260,"wires":[]},{"id":"0eecec40d90f50d3","type":"inject","z":"870259f405be5fc9","name":"2fa-verify","props":[{"p":"payload.verify","v":"true","vt":"bool"},{"p":"payload.code","v":"12345","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":360,"y":320,"wires":[["06bf458ec66f79c2"]]},{"id":"06bf458ec66f79c2","type":"telnyx-2fa","z":"870259f405be5fc9","telnyx":"","name":"","toNum":"","profile":"","x":550,"y":260,"wires":[["8f4bc47a3a1be27e"]]}]