re: Verify user phone numbers in Ruby on Rails with the Authy Phone Verification API VIEW POST

FULL DISCUSSION
 

Great article, @philnash . However i would like to do the same process exactly before the user is created i.e verify the phone number before the account is created and only then user is allowed to create the password and then boom, user's account gets created! Any tips on where i might have to start in there?

Thanks a lot.

 

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.

code of conduct - report abuse