CustomMessage lambda not getting clientMetata from forgotPassword()

0

We are using Cognito Pools for storing identities and calling them using the AWS SDK for PHP. We are using the mail triggers calling AWS lambda function to customize the mails dynamically.

The solution works well in Mumbai region (Cognito and Lambda both in Mumbai region) but the same code DOES NOT work in Ohio region. The lambda function returns a null value for clientMetadata in Ohio. Can someone please share a resolution?

gefragt vor 4 Jahren284 Aufrufe
1 Antwort
0

Hi, We were able to resolve the issue in AWS SDK for PHP. The issue is with the version of the SDK. The earlier versions of the SDK did not support clientMetadata to be passed back to the Cognito handler. That in turn results in no data into the Lambda function.

When we upgraded the SDK, everything just started to work like a charm.

Best regards !!

beantwortet vor 3 Jahren

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