【发布时间】:2019-03-12 21:14:59
【问题描述】:
是否可以在 AWS Cognito 身份验证后 lambda 触发器中返回自定义数据?
我已尝试在event.response 中设置属性,但这些不会传播回客户端。
例如:
module.exports.post_auth_trigger = (event, context, callback) => {
context.callbackWaitsForEmptyEventLoop = false;
event.response.some_custom_property = 'this is custom';
callback(null, event);
};
使用此代码不会在身份验证后将some_custom_property 返回给客户端。如何做到这一点?
【问题讨论】:
标签: node.js aws-lambda amazon-cognito