authy-php | A PHP client for Authy | Authentication library
kandi X-RAY | authy-php Summary
kandi X-RAY | authy-php Summary
Documentation for PHP usage of the Authy API lives in the official Twilio documentation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Start a phone verification
- Verify a token
- Register a new Authy user .
- Check the phone verification code
- Check if token is valid
- Get all errors
- Retrieve the object s ID .
- Get a body variable
- Get the message
authy-php Key Features
authy-php Examples and Code Snippets
Community Discussions
Trending Discussions on authy-php
QUESTION
Im trying to implement 2FA with authy and using authy php library and authy API key to add users to authy, so that user can scan the QR code nd get my app authentication in phone.
I did documentation as mentioned in that library github page. User data is saving successfully but im getting some random numeric secret key (which is generated for user by authy) secret to store in database, if i enter that secret in app it is showing secret key is invalid error, Checkout the screenshots below
We need to enter secret something like this but im getting numeric secret, if i enter that manually app is showing error like below screenshot
documentation is like below
...ANSWER
Answered 2017-Nov-29 at 04:01Twilio/Authy developer evangelist here.
I must apologise, our documentation here has gotten a bit behind. I'll try to help.
First up, I recommend you take a look through this documentation on two factor authentication with Twilio and Authy.
Second, let me explain the process with Authy with regards to how far you've got.
You've set up the API and credentials correctly and then you have registered a user using the call to $authy_api->registerUser
. The user ID that you got back from that response should not be shared with anyone. It is your reference to your user in the Authy database. You should store that ID against the user that is signing up and use that ID any time you need to send codes or verify codes.
You don't need to use QR codes to share anything with the user either. To start the two factor authentication process you now need to call:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install authy-php
PHP/Laravel Authy Quickstart
This library requires PHP 5.6+. Install with composer. The authy/php package is available on Packagist.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page