Menu
Amazon Cognito
Developer Guide

Post-Authentication Lambda Parameters

Amazon Cognito invokes this trigger after authenticating a user, allowing you to add custom logic.

The request includes the following:

  • newDeviceUsed flag – indicates if the user has signed in on a new device.

The newDeviceUsed flag is set only if the remembered devices value of the user pool is set to Always or User Opt-In.

"request": { "userAttributes": { "string": "string", .... }, "newDeviceUsed": boolean }
userAttributes

One or more name-value pairs representing user attributes.

No return information is expected in the response.

"response": { }