aws-amplify-auth-starters icon indicating copy to clipboard operation
aws-amplify-auth-starters copied to clipboard

Can I use exsiting cognito pool

Open yahavb opened this issue 4 years ago • 1 comments

I wish to use this but already have a cognito user pool that I want to reuse. Can I attach the existing pool instead of creating one? Specifically, where can I configure the pool name/arn?

yahavb avatar Apr 14 '20 21:04 yahavb

Yes, just pass a custom config to your Amplify.configure() found in index.js.

Example: Amplify.configure({ aws_project_region: "us-east-1", aws_cognito_identity_pool_id: "us-east-1:8xyz", aws_cognito_region: "us-east-1", aws_user_pools_id: "us-east-1_xyz", aws_user_pools_web_client_id: "xyz", Auth: { mandatorySignIn: true, identityPoolId: "us-east-1:xxxxxxxxx", region: "us-east-1", },

kswierszczyk avatar May 08 '20 23:05 kswierszczyk