aws-cognito-angular-quickstart
aws-cognito-angular-quickstart copied to clipboard
Replace Component Interfaces with Auth Guard
trafficstars
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.