Created
September 8, 2021 09:46
-
-
Save velotiotech/3a3cb00d52668f84124b7c58e986c20c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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