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
gefragt vor 6 Monaten171 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
beantwortet vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen