Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 8, 2021 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/3a3cb00d52668f84124b7c58e986c20c to your computer and use it in GitHub Desktop.
Save velotiotech/3a3cb00d52668f84124b7c58e986c20c to your computer and use it in GitHub Desktop.
const awsconfig = {
Auth : {
identityPoolId: "idenity pool id created during authorization setup",
region : "your aws region",
identityPoolRegion: "same as above if cognito is in same region",
userPoolId : "cognito user pool id created during authentication setup",
userPoolWebClientId : "cognito app client id",
cookieStorage : {
domain : "https://your-app-domain-name", //this is very important
secure: true
},
oauth: {
domain : "{cognito domain name}.auth.{cognito region name}.amazoncognito.com",
scope : ["profile","email","openid"],
redirectSignIn: 'https://your-app-domain-name',
redirectSignOut: 'https://your-app-domain-name',
responseType : "token"
}
},
Storage: {
AWSS3 : {
bucket: "your-actual-bucket-name",
region: "region-of-your-bucket"
}
}
};
export default awsconfig;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment