【问题标题】:AWS Cognito: How to prevent collection of phone number?AWS Cognito:如何防止收集电话号码?
【发布时间】:2020-04-22 01:40:39
【问题描述】:

我有一个集成了 AWS Amplify 的 React 应用程序。通过 Cognito 添加身份验证时,我不想在注册人时收集电话号码,但我无法更改用户池的设置(因为它是在 amplify add auth 过程中自动创建的。

如何防止收集电话号码?

【问题讨论】:

    标签: reactjs amazon-web-services amazon-cognito aws-amplify


    【解决方案1】:

    运行:

    amplify add auth
    

    接下来,在您生成的 -cloudformation-template.yml 目录中的 amplify/backend/auth// 中确保您具有以下内容:

    Schema:
      - Name: phone_number
        Required: false
    

    这将使 phone_number 成为可选的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-01
      • 2019-06-26
      • 1970-01-01
      • 2017-02-18
      • 1970-01-01
      • 2018-09-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多