clientMetadata
A map of custom key-value pairs that you can provide as input for certain custom workflows that this action triggers.
You create custom workflows by assigning Lambda functions to user pool triggers. When you use the GetTokensFromRefreshToken
API action, Amazon Cognito invokes the Lambda function the pre token generation trigger.
For more information, see Using Lambda triggers in the Amazon Cognito Developer Guide.
When you use the ClientMetadata
parameter, note that Amazon Cognito won't do the following:
Store the
ClientMetadata
value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, theClientMetadata
parameter serves no purpose.Validate the
ClientMetadata
value.Encrypt the
ClientMetadata
value. Don't send sensitive information in this parameter.