-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 Hook #2010
Comments
@mrowles Hey can you provide the code snippet about how you are using the old library to achieve that? That would help us a lot to understand this request. |
It wasn't a pretty implementation to be honest, my average code coupled with the problems that the last library had (example) came up with the following:
|
@powerful23 Any word on this? It's a pretty critical feature |
@mrowles hey from your code I can tell you want to invode this method In Amplify we have a wrapper method for that which is |
@powerful23 Understand you're trying to help, but you kind of told me to open up a new request for this last week because it was different to the above suggestions: #1614 (comment)
|
@powerful23 Any updates? |
@mrowles As a work around, you could call |
which means you need to save the password incase user wants to resend confirm code? |
@mrcoles Hi, really sorry about the late response. So from your description, what you want to do is to be able to resend the SMS code when signing in, not signing up, right? Because if you want to resend the confirmation code during registration, I am pretty sure you can do that by using |
For anyone who does use the 'use Auth.signIn() again' workaround to resend a code. You have to ensure that your subsequent call to Auth.confirmSignIn(user, code) passes in the user returned from the corresponding Auth.signIn() call. |
Any updates on when we can expect this? This functionality is pretty crucial, and the 'use Auth.signIn()' again workaround would require temporarily storing or passing username and password info across different views, which isn't something we want to do. There is a resendConfirmationCode hook, but that is only for confirming new users, not for MFA. |
Hello @powerful23 , Our workflow
|
Having the same issue for MFA. |
Any movement on this issue? I am on the same boat as @mrowles . |
This is a problem for us too. Definitely do not like the idea of holding onto the password in order to trigger a secondary request for signing in. Which means, there's no sensible way to re-send the MFA code during a sign in operation. Other than asking the user to login again, which is a pretty horrible UX. Seems a bit of a miss not to have an MFA resend option. |
@pinpointpanda I created another feature request issue #6676 . If you can comment or get other developers needing this feature to comment on the feature request it can motivate the amplify team to get this done for us. Thanks! |
this worked for me |
Any update on this issue? This is a blocker on one of my projects as well. |
Any updates? Thankfully I'm doing this flow server-side, but it still requires me to temporarily save the password in the encrypted session, a signed cookie, or somehow hack my way around using POST requests In my flow, after username/pw login form, I redirect to MFA code entry page (a GET). I'd like to avoid redirecting to this page via a POST or having password in the URL... |
Closing as a duplicate of #6676 |
Is your feature request related to a problem? Please describe.
When authorizing a new device and, for whatever reason, the user wants to manually resend themselves a code:
want to be able to resend it to themselves
effectively registering a new device
The old library had a hook for this, no idea why Amplify doesn't. This is not a duplicate of #1614 (comment), it is different as discussed in last comment.
Describe the solution you'd like
The old library used to have code that we implemented pretty horribly, so would love this to have more attention. I'd like it if I could implement as such:
Describe alternatives you've considered
There is none in
amplify
. It existed inamazon-cognito-identity-js
, which it appears is all Amplify is just a layer over, so assume this would be an easy hook?Additional context
N/A
The text was updated successfully, but these errors were encountered: