上次 successful/fail 登录时间 AWS Cognito

Last successful/fail login time AWS Cognito

我正在使用 AWS cognito,想知道 last/previous 用户移动应用程序的成功登录时间。

据我了解,AWS cognito 没有内置支持,因此我提供了两个触发器 Pre authenticationPost authentication,它们是用于将计时存储到 dynamodb 中的 lambda 函数。不过,我想问问有没有把存储的时间发送到手机应用程序。

不完全确定,但我认为您正在尝试 [Use] Amazon Pinpoint Analytics with Amazon Cognito User Pools。通过这种本地集成,Amazon Cognito 用户池将向 Amazon Pinpoint Analytics 发送事件。

这些事件将包括 Cognito 用户 ID、事件 type/status (Login/Fail) 以及时间戳等属性。然后,此 Analytics 数据可以是 visualized in the Amazon Pinpoint console or streamed to a destination of your choosing (like Amazon Redshift) for post processing.