【发布时间】:2020-08-29 21:54:23
【问题描述】:
我正在尝试执行以下操作:
AWSUtil.generateSecretHash('test@test.com', ClientId).then(SECRET_HASH => {
return AWSUtil.Cognito.adminInitiateAuth({
AuthFlow: 'USER_PASSWORD_AUTH',
ClientId,
UserPoolId: process.env.COGNITO_USER_POOL_ID,
AuthParameters: {
USERNAME: 'test@test.com',
PASSWORD: 'lamepassword123',
SECRET_HASH
}
}).promise();
})
.then(resp => {
console.log(resp)
});
除了"Initiate Auth method not supported.",它不会返回任何东西
根据docs,这应该可以工作。什么给了?
【问题讨论】:
标签: amazon-web-services amazon-cognito