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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则