Cognito Hosted UI - Forgot password functionality is broken on Hosted UI

0

Hello Cognito users,

I have two apps that use AWS Cognito. One of the registered users complained that they are not able to reset the password and get an error on the screen. I too was able to reproduce this issue. Anyone else also facing this issue? The error says "Unrecognizable lambda output". I don't have custom lambda for reset password function which makes the error strange.

  1. I have a custom domain for my auth.
  2. I have one lambda trigger for PostConfirmation_ConfirmSignUp which hasn't changed in months.
  3. No recent changes.

Attaching the screenshot of the error. It happens attempting to reset the password. Enter image description here

kunal
asked 5 months ago162 views
1 Answer
0
Accepted Answer

Found the issue. Putting it out here so that others can benefit. I had the Post confirmation Lambda trigger where I was only checking for PostConfirmation_ConfirmSignUp event. I did not expect that the lambda will also be triggered for PostConfirmation_ConfirmForgotPassword event. I fixed it by returning the event for both types of events. I overlooked the documentation and thus thought that the functionality was broken.

kunal
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions