How to resend custom flow OTP on user request

1

Hello, I am pretty new to AWS and am using Amplify to work on my first app. I set up auth using a custom flow based on the code here (https://github.com/mobilequickie/amplify-passwordless-sms-auth), but now I am stuck on how I should go about resending the OTP if the user requests it. I was considering saving the OTP in Dynamo, but I am wondering if there is a way to simply restart the auth flow process so they receive another code. Or maybe there is an even better way that I'm just not aware of? Thank you!

  • I'm also facing a similar situation! Even after a year, the documents don't show a straightforward way to do it. Now I doubt whether it is possible or not. I'm using an official npm package of the amplify, and I have tried multiple methods like calling a sign in, resendOtp, etc., but no luck. @cognito or @amplify team, do we have any solution for this?

asked 3 years ago635 views
1 Answer
-1

Just signed out and requested to sign back in.

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions