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?

gefragt vor 3 Jahren644 Aufrufe
1 Antwort
-1

Just signed out and requested to sign back in.

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen