Skip to content

Instantly share code, notes, and snippets.

@albertpak
Last active July 15, 2018 08:01
Show Gist options
  • Save albertpak/dbf5b12fbcfa27db72b0c93d40d2189d to your computer and use it in GitHub Desktop.
Save albertpak/dbf5b12fbcfa27db72b0c93d40d2189d to your computer and use it in GitHub Desktop.
AWS Cognito Credentials

You can find all the creds in your AWS Account in Cognito section:

const awsConfig = {
  identityPoolId: 'XX',  (Federated Identities > Selected Identity Pool/Create new > Sample code > Select Javascript > Get AWS Credentials)
  region: 'us-east-1', (User pools > General Settings > Pool Id) The first part of the Pool Id us-east-1
  userPoolId: 'us-east-1_XXXXXX', (User pools > General Settings > Pool Id)
  userPoolWebClientId: 'XXXXXXXXX', (User pools > General Settings > App clients > App client id)
};

export default awsConfig;

userPoolWebClientId: Make sure you don’t have a secret key in the input field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment