aws-amplify / amplify-ui-swift-authenticator

The Amplify UI Authenticator is a component that supports several authentiation flows using Amplify Authentication.
https://ui.docs.amplify.aws/swift/connected-components/authenticator
Apache License 2.0
15 stars 9 forks source link

Is there way to show sign in view after resetting new password? #81

Closed merbula closed 5 months ago

merbula commented 5 months ago

Hi,

After resetting the password user is signed in directly (in happy case). Is there way to force user to sign in after resetting the new password? I´m using Authenticator state machine with custom UI´s.

Thanks!

lawmicha commented 5 months ago

Hi @merbula, do you mean to automatically sign in the user with the new password that they entered in the reset password flow?

ruisebas commented 5 months ago

@merbula once the reset password workflow is successfully completed, the Authenticator will automatically sign in the user with the new password.

There is no way to change this.

merbula commented 5 months ago

Why this is different compared to Android? Is there plan to change this functionality similar to Android? Android is redirecting user to sign in view after resetting the password and user needs to sign in with the new password.

ruisebas commented 5 months ago

Thanks for pointing out the discrepancy between platforms. We will discuss among the teams and post updates here.

ruisebas commented 5 months ago

The Swift Authenticator matches the behaviour of the Flutter one, when after successfully resetting a password the user is automatically signed in.

The Android team opened a feature-request to update their behaviour to match: https://github.com/aws-amplify/amplify-ui-android/issues/160

github-actions[bot] commented 5 months ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.