NgAuth is a suite of Angular modules
comprising a set of auth-related reusable components and services.
The library is mostly frontend/UI, and it uses AWS Cognito for serverless backend.
NgAuth/Cognito module provide a concrete auth service provider implemenation for
It uses AWS Cognito User Pool as an identity provider.
(Note: this library is currently in beta, and the APIs may change over time.)
To install this library, run:
$ npm install --save @ngauth/cognito @ngauth/services @ngauth/core
Note that NgAuth requires at least one concrete backend auth service provider.
@ngauth/cognito is one such implementation.
You will need to inject the cognito service provider (via the
in your app (in your main
Using the library
From your Angular
;;;// Import the library;;;
Once the library is imported, you can use its components and services in your Angular application:
MIT © Harry Y