DEV Community

Discussion on: Verify user phone numbers in Ruby on Rails with the Authy Phone Verification API

Collapse
 
philnash profile image
Phil Nash

Hey Rajan,

Of course, that is a good idea for verifying that users are real people before sign up. For that I would follow the process from this blog post, but when it gets to the verification stage set a session cookie that says the new user is verified successfully. Then you can redirect to your registration flow.

The registration flow should redirect to the verification flow if the cookie is not set (indicating that the user hasn't yet verified their phone number).

That is likely where I would start. Although, I would also note that this blog post covers the version 1 API for Verify. There is a beta version of Verify version 2 available, which I might consider building with.