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

Refactor CognitoUtil into CognitoSessionService #82

Closed dpantke closed 7 years ago

dpantke commented 7 years ago

Also removes the AWSUtil service entirely and simplifies the codebase. Uses Promises for interactions with Cognito for session management.

dpantke commented 7 years ago

I realize that in this PR I had some leaky abstraction appear in a couple of components; I intend on refactoring the UserParameters service to remove the leaky abstraction next.

vbudilov commented 7 years ago

Thanks for the PR! I started testing it and for the most part everything works. One thing that's broken (and I don't know if that the old code or the new, but it's in the new CognitoSession class) is that I can't login a user after I register him. See the error below

image