【发布时间】:2020-11-03 23:50:06
【问题描述】:
我需要更改 aws_user_pools_web_client_id 的值,使其指向不同的 Web 客户端 ID。显然,我不能简单地编辑 aws-exports 文件,那么如何正确更改此值?
/* eslint-disable */
// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.
const awsmobile = {
"aws_project_region": "us-east-2",
"aws_cognito_identity_pool_id": "us-east-2:8e691ef4-cca0-457e-9934-3a1846b0f28c",
"aws_cognito_region": "us-east-2",
"aws_user_pools_id": "us-east-2_cdT9gJH6x",
"aws_user_pools_web_client_id": "3i3pj4u2aq4b9bq12i64ikvv6k",
"oauth": {
"domain": "nerdhub-dev.auth.us-east-2.amazoncognito.com",
"scope": [
"phone",
"email",
"openid",
"profile",
"aws.cognito.signin.user.admin"
],
"redirectSignIn": "http://localhost:3000/",
"redirectSignOut": "http://localhost:3000/",
"responseType": "code"
},
"federationTarget": "COGNITO_USER_POOLS"
};
export default awsmobile;
【问题讨论】:
标签: javascript amazon-web-services react-native amazon-cognito aws-amplify