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?

질문됨 3년 전644회 조회
1개 답변
-1

Just signed out and requested to sign back in.

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인