Cognito client confirm_device is not working with MFA set to optional #4059
Labels
bug
This issue is a confirmed bug.
closed-for-staleness
cognito-idp
p2
This is a standard priority issue
response-requested
Waiting on additional information or feedback.
service-api
This issue is caused by the service API, not the SDK implementation.
Describe the bug
I'm using confirm_device to enable trust device. When MFA enforcement is set to Require MFA on the user pool, the confirm_device is successful. When it's set to optional the confirm_device returns:
An error occurred (InvalidParameterException) when calling the ConfirmDevice operation: Invalid device key given.
theExpected Behavior
No matter the MFA Enforcement the function should succeed.
Current Behavior
With the same arguments - valid access key and device key from NewDeviceMetadata the confirm_device function is failing with:
An error occurred (InvalidParameterException) when calling the ConfirmDevice operation: Invalid device key given.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.34.53
Environment details (OS name and version, etc.)
MacOs 14.4 (23E214)
The text was updated successfully, but these errors were encountered: