Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resend MFA Code #3534

Closed
alyssa-nash opened this issue Feb 13, 2024 · 2 comments
Closed

Resend MFA Code #3534

alyssa-nash opened this issue Feb 13, 2024 · 2 comments
Labels
cognito Issues with the AWS Android SDK for Cognito feature-request Request a new feature pending-community-response Issue is pending response from the issue requestor

Comments

@alyssa-nash
Copy link

Which AWS Services is the feature request for?
Cognito

Is your feature request related to a problem? Please describe.
When the user logs in with their credentials, they are directed to a MFA validation page where they enter the code that they have received. There are edge cases where due to a poor network connection or due to a delay, the user wishes to get a fresh code to enter without having to re-signin. There appears to be solutions for this for sign up confirmation and forgot password but not MFA.

Describe the solution you'd like
Something similar to CognitoUser.resendConfirmationCode() in where a new MFA is generated and sent to the user.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Calling signIn again has been suggested but we do not wish to persist credentials between screens and it is prone to Code Mismatch Exceptions.

Additional context
Add any other context or screenshots about the feature request here.

@tjleing tjleing added feature-request Request a new feature cognito Issues with the AWS Android SDK for Cognito labels Feb 17, 2024
@tjleing
Copy link
Contributor

tjleing commented Feb 17, 2024

Hello @alyssa-nash, seems like this flow isn't supported by Cognito (see similar issue on JS) which is why we don't provide that API. That thread offers other solutions for:

  1. configuring custom lambdas, possibly connected to REST APIs, that can be called to regenerate a new token, or
  2. storing the username and password and retriggering a signin call to create another OTP (you have mentioned that this is a suboptimal solution for your use case).

@tjleing tjleing added the pending-community-response Issue is pending response from the issue requestor label Feb 19, 2024
@lawmicha
Copy link
Contributor

Were you able to go with one of the two options @tjleing mentioned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cognito Issues with the AWS Android SDK for Cognito feature-request Request a new feature pending-community-response Issue is pending response from the issue requestor
Projects
None yet
Development

No branches or pull requests

3 participants