Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Can I use exsiting cognito pool #12

Open
yahavb opened this issue Apr 14, 2020 · 1 comment
Open

Can I use exsiting cognito pool #12

yahavb opened this issue Apr 14, 2020 · 1 comment

Comments

@yahavb
Copy link

yahavb commented Apr 14, 2020

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?

@kswierszczyk
Copy link

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", },

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants