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

Replace Component Interfaces with Auth Guard #141

Open Craig1f opened 6 years ago

Craig1f commented 6 years ago

Components should not be aware of the authorization layer. Use an auth guard in the router to prevent access to routes that require authorization. This decouples the auth layer from the rest of the application and makes it easier for people to fork this project and add it to theirs.