in packages/amplify_auth_cognito/ios/Classes/FlutterSignInResult.swift [61:79]
func setCodeDeliveryDetails(res: AmplifyOperation<AuthSignInRequest, AuthSignInResult, AuthError>.OperationResult) -> [String: String] {
var deliveryMap:[String: String] = [:]
switch res {
case .success(let signInResult):
if case let .confirmSignInWithSMSMFACode(deliveryDetails, _) = signInResult.nextStep {
if case let .sms(e) = deliveryDetails.destination {
deliveryMap["deliveryMedium"] = "SMS"
deliveryMap["destination"] = e! as String
}
}
if case .resetPassword(_) = signInResult.nextStep {}
if case .confirmSignInWithCustomChallenge(_) = signInResult.nextStep {}
if case .confirmSignInWithNewPassword(_) = signInResult.nextStep {}
if case .done = signInResult.nextStep {}
case .failure:
deliveryMap = [:]
}
return deliveryMap
}