amazon-archives / aws-cognito-angular-quickstart

An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
https://cognito.budilov.com
Apache License 2.0
689 stars 304 forks source link

Error: Both UserPoolId and ClientId are required. #145

Open alonzothayn opened 6 years ago

alonzothayn commented 6 years ago

When I go through the tutorial I get the following error trying to use the app both locally and in s3.

ERROR Error: Both UserPoolId and ClientId are required. at new CognitoUserPool (CognitoUserPool.js:49) at CognitoUtil.getUserPool (cognito.service.ts:55) at CognitoUtil.getCurrentUser (cognito.service.ts:59) at UserLoginService.isAuthenticated (user-login.service.ts:125)

If I understood the tutorial the createresources.sh batch file is supposed to setup the cognito infrastructure. If that is not true could you add the steps to your readme file to let people know how to setup the userpoolid and clientid? Thanks.