Setting up User Pool in AWS Cognito
It's easy to get started with User Pool in AWS Cognito for your application.
Go to AWS Cognito
Click Manage User Pools
Click Create a user pool (top right corner)
Give it a name and click Review Default
As part of default, only email is required.
Scroll all the way to bottom and click
On the next screen, you should see a notification that the pool was created successfully
Save the Pool Id
You can also retrieve this Pool Id later by selecting the pool and then selecting General settings
Click App Clients (sub-category of General settings)
Click add an app client
Give it a name and deselect all options
Create and save App client id
That's it. Now you can use Pool ID and App Client ID in your application, such as config.js.
window._config = { cognito: { userPoolId: 'us-east-1_xxx', // e.g. us-east-2_uXboG5pAb userPoolClientId: '32', // e.g. 25ddkmj4v6hfsfvruhpfi7n4hv region: 'us-east-1' // e.g. us-east-2 }, api: { invokeUrl: 'https://xyz.execute-api.us-east-1.amazonaws.com/prod' // e.g. https://rc7nyt4tql.execute-api.us-west-2.amazonaws.com/prod', } };