amazon-archives / aws-serverless-auth-reference-app

Serverless reference app and backend API, showcasing authentication and authorization patterns using Amazon Cognito, Amazon API Gateway, AWS Lambda, and AWS IAM.
Other
754 stars 193 forks source link

AWSCognito is not defined in account-management.service.ts #46

Closed onecreativestudio closed 6 years ago

onecreativestudio commented 6 years ago

Greetings. Thank you very much for sharing this great project.

Everything worked smoothly out of the box at first, but now I'm having an issue with in account-management.service.ts

I was hoping to understand from someone experienced what is the expected role of declare const AWSCognito: any; and how this object is updated.

My current error is that "AWSCognito is not defined." in the browser's console, and so far I've traced it to : AWSCognito.config.region = CognitoUtil._REGION;

I may have removed the default users that are made in the gulp bootstrap process, though I would expect a different type of error or alert.