AWS Cognito Login Component
A simple web component for logging into AWS Cognito
Overview
This component was created with Lit-Element. In order to use this component you need to have a Cognito User Pool Id and an application client id.
Attributes
userPoolId - String - The Cognito user Pool Id
clientId - String - Your application client Id
redirectUrl - String - The url to redirect to after successful login.
Installation
From inside your project folder, run:
$ npm install @wogworkz\login-component
Add the following to the head element
<script type="text/javascript" src="login_component.bundle.min.js"></script>
Usage
<login-component userPoolId="userpoolId" redirectUrl="/redirect" clientId="clientId"></login-component>
Supported Browsers
The last 2 versions of all modern browsers are supported, including Chrome, Safari, Opera, Firefox.