Closed satishSKY closed 1 year ago
Hi @satishSKY 👋,
I took a look at this issue, but haven't been able to replicate it on my end. I do have some questions for you however:
Auth.signUp
?aws_user_pools_web_client_id
as seen in aws-exports.js
match the client id you are using in Cognito?@nadetastic Here is the answer to your above questions.
Auth.signUp
to sign up.confirmed
Where I can find the aws-exports.js
file. (Is it part of node-module) ?
@satishSKY Okay the issue you are facing may be part of the email not being verified. How are you receiving the code to use with Auth.forgotPasswordSubmit(username, code, new_password)
? You should first call Auth.forgotPassword(username)
which will trigger Cognito to send a verification code to the user.
Also aws-exports.js
file can be located at the root of your project under the ./src
folder
Hi @satishSKY, following up on this - let me know if you are still facing this issue.
Closing out this issue for now, if you still need assistance you can re-open at your convenience.
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
When I try to forgot password and after entering a valid OTP and trying to submit the form, Cognito return the error
username/client id combination not found
Expected behavior
It should update the new password
Reproduction steps
There are no particular scenarios here. We have registered through the signup method in cognito. Missed the password Try to rest password using forgot password
Code Snippet
const response = await Auth.forgotPasswordSubmit(username, code, new_password);
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response