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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南