@wogworkz/login-component

1.3.2 • Public • Published

AWS Cognito Login Component

A simple web component for logging into AWS Cognito

Build Status Published on npm

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @wogworkz/login-component

Weekly Downloads

3

Version

1.3.2

License

MIT

Unpacked Size

630 kB

Total Files

13

Last publish

Collaborators

  • jangolano