To share the same aws cognito pool between two web clients do we just generate a new web client, allow amplify to setup the cognito pool, and replace the generated configuration parameters with the following parameters from the existing pool:
"aws_project_region": "us-east-1",
"aws_cognito_identity_pool_id": "us-east-1:8b81-8b47-aea37d",
"aws_cognito_region": "us-east-1",
"aws_user_pools_id": "us-east-1_ngkACLtve"
Thus we we only be left with a new aws_user_pools_web_client_id
setting like this:
"aws_user_pools_web_client_id": "7e0b47c4m",
And the oauth domain and redirect links will be different:
"oauth": {
"domain": "amp82-dev.auth.us-east-1.amazoncognito.com",
"scope": [
"phone",
"email",
"openid",
"profile",
"aws.cognito.signin.user.admin"
],
"redirectSignIn": "http://localhost:4200/",
"redirectSignOut": "http://localhost:4200/",
"responseType": "code"
},
But everything else is the same. I think this is right but wanted to double check whether I have left any steps out.