Closed merbula closed 5 months ago
Hi @merbula, thank you for bringing this issue to our attention. We will investigate the matter and provide an update once we have gathered more details.
Hi @merbula, the behaviour you described is expected and coming directly from Amplify Swift: the delivery details destination is only available during the Sign Up flow, as the code is sent during the flow.
If you attempt to Sign In a non-confirmed user, you'll be instructed to confirm the user but no new code will be sent. Since neither the Authenticator nor Amplify Swift track the state of past authentication flows, there is no details destination information available at that moment.
Having said that, the Authenticator allows you to send a new code by calling state.sendCode()
in which case a new details destination information becomes available and displayed in the default view. However, it's currently not updating the value of state.deliveryDetails
, which makes it inaccessible for custom views.
This is a bug and I'll work on fixing it.
This has been fixed in 1.1.2, now deliveryDetails
is populated/updated when a new code is requested.
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.
Background:
Steps to reproduce this issue:
I want to show text like "Activation code is sent to %@" in custom sign up confirmation view but destination is nil.