【发布时间】:2018-08-06 09:25:48
【问题描述】:
我使用 JavaScript AWS 开发工具包进行 MFA 设置,但有 2 个问题: 首先,我更新电话号码(使用 updateUserAttributes 方法的 phone_number 属性)。
它更新但返回空对象而不是(根据文档):
{
"CodeDeliveryDetailsList": [
{
"AttributeName": "string",
"DeliveryMedium": "string",
"Destination": "string"
}
]
}
其次,我正在尝试向用户发送带有getAttributeVerificationCode 的验证码,其有效负载如下:
const params = {
AccessToken: auth.accessToken,
AttributeName: 'phone_number'
}
我得到了
CustomMessage failed with error
Cannot read property identity of undefined
作为错误。有什么想法吗?
【问题讨论】:
标签: amazon-web-services amazon-cognito multi-factor-authentication