There are more AWS SDK examples available in the AWS Doc SDK Examples
Use ConfirmForgotPassword
with an AWS SDK or CLI
The following code examples show how to use ConfirmForgotPassword
.
Action examples are code excerpts from larger programs and must be run in context. You can see this action in context in the following code example:
- AWS CLI
-
To confirm a forgotten password
This example confirms a forgotten password for username diego@example.com.
Command:
aws cognito-idp confirm-forgot-password --client-id
3n4b5urk1ft4fl3mg5e62d9ado
--username=diego@example.com --passwordPASSWORD
--confirmation-codeCONF_CODE
-
For API details, see ConfirmForgotPassword
in AWS CLI Command Reference.
-