gpt4 book ai didi

javascript - Cognito 用户池 "username"显示为 id 而不是电子邮件,如何解决?

转载 作者:行者123 更新时间:2023-12-03 06:55:21 26 4
gpt4 key购买 nike

我正在使用 Amazon Cognito 用户池,并且我选择让用户注册/使用他们的电子邮件。 According to online guides, when choosing so, the user pool should list users with "username"value as their email, but this is not the case, i'm seeing the "id"which is also referred to as "sub"as the “用户名”字段!
它具有 UUID 格式。

任何想法如何获取用户名显示电子邮件?
** 注意:我说的是从 AWS cognito 控制台显示用户。
附上截图

enter image description here

最佳答案

当您选择使用电子邮件或电话注册时,这似乎会发生。
显然,在该配置中,Cognito 使用子...

我建议将 Congito 配置为使用“用户名”,然后在注册时将“用户名”设置为电子邮件,您还可以将电子邮件(和电话)作为附加属性传递。

我希望这会有所帮助

关于javascript - Cognito 用户池 "username"显示为 id 而不是电子邮件,如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59985119/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com