我们一直在使用 Amplify 和 Cognito 为部署到 Lambda 的 Angular6 应用程序注册用户。客户希望从电子邮件过渡到用户名作为主要用户标识。所以我们创建了一个新的用户池/客户端。我看不到配置设置,我只是获得了新的用户池、身份池和客户端 ID。然后我将应用程序注册的代码更改为如下所示:
return from(Auth.signUp({
'username': username, // was email
'password': password,
attributes: { // added these
'email': email,
'phone_number': phone_number,
'family_name': name,
'birthdate': DOB,
'custom:last_4_ssn': SSN // custom attribute
}}));
我得到的回应没有进行其他更改是:无法验证客户端的秘密哈希。谷歌声称问题在于secretAccess目前是不受支持的配置,但有权访问这些服务的人向我发誓,我们的设置中没有配置secretAccess。
对于无法访问配置,我深表歉意,但是还有其他可能的原因会收到此错误吗?
That error is probably originating from the fact that the app client you are connected to has an associated secret key. When you create a user pool app client, it generates a secret by default:
现在,使用 React-Native Amplify,您必须使用未生成密钥的应用程序客户端。因此,当您创建具有所需属性的新应用程序客户端时,请确保取消选中“生成客户端密钥”框。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)