Hi everyone,
I've built a passwordless authentication system following the blog Implementing Passwordless Email Authentication with Amazon Cognito[https://aws.amazon.com/blogs/mobile/implementing-passwordless-email-authentication-with-amazon-cognito/]. I'm using the signIn and confirmSignIn methods from aws-amplify/auth to start and complete my authentication flow[https://docs.amplify.aws/react-native/build-a-backend/auth/connect-your-frontend/sign-in/].
I need to implement a resend OTP feature with a lock mechanism to block users for a certain time if they exceed a defined limit for OTP requests during the sign-in process. I've found that Cognito doesn't support resending codes during sign-in.
What's the best way to build this mechanism?
Thank you!