From f202b7ea7ab4eb2a7651b8d2db0119945296ff8c Mon Sep 17 00:00:00 2001 From: Harshdeep Singh <6162866+harsh62@users.noreply.github.com> Date: Mon, 27 Nov 2023 12:45:56 -0500 Subject: [PATCH] fix to use correct options --- .../AWSAuthSendUserAttributeVerificationCodeTask.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Task/UserTasks/AWSAuthSendUserAttributeVerificationCodeTask.swift b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Task/UserTasks/AWSAuthSendUserAttributeVerificationCodeTask.swift index 276f6d890d..5dc3962038 100644 --- a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Task/UserTasks/AWSAuthSendUserAttributeVerificationCodeTask.swift +++ b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Task/UserTasks/AWSAuthSendUserAttributeVerificationCodeTask.swift @@ -50,7 +50,7 @@ class AWSAuthSendUserAttributeVerificationCodeTask: AuthSendUserAttributeVerific func initiateGettingVerificationCode(with accessToken: String) async throws -> AuthCodeDeliveryDetails { let userPoolService = try userPoolFactory() - let clientMetaData = (request.options.pluginOptions as? AWSAttributeResendConfirmationCodeOptions)?.metadata ?? [:] + let clientMetaData = (request.options.pluginOptions as? AWSSendUserAttributeVerificationCodeOptions)?.metadata ?? [:] let input = GetUserAttributeVerificationCodeInput( accessToken: accessToken,