twilio / authy-devise

Authy Devise plugin to add Two-Factor Authentication
MIT License
201 stars 84 forks source link

POST_enable_authy redirects back to the same page #158

Closed diegopolido closed 2 years ago

diegopolido commented 3 years ago

Seems the Authy::API.register_user method doesn't fetch the user and redirects back to the same page (to fill the phone again)

I tried to run on rails console, but it returns a blank object:

    @authy_user = Authy::API.register_user(
      :email => "my-valid@email.com",
      :cellphone => "myvalidnumber",
      :country_code => "validcountrycode"
    )

    => {}

What should I do?

philnash commented 3 years ago

I have dropped an answer on authy-ruby#71, hopefully it helps!

philnash commented 2 years ago

This library is no longer actively maintained. The Authy API has been replaced with the Twilio Verify API. Twilio will support the Authy API through November 1, 2022 for SMS/Voice. After this date, we’ll start to deprecate the service for SMS/Voice. Any requests sent to the API after May 1, 2023, will automatically receive an error. Push and TOTP will continue to be supported through July 2023.

Learn more about migrating from Authy to Verify.

Please visit the Twilio Docs for:

Please direct any questions to Twilio Support. Thank you!