# @wogworkz/login-component

> Customizable UI component to log in with cognito user pools

Latest version **1.3.2** (published 2019-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wogworkz/login-component
pnpm add @wogworkz/login-component
yarn add @wogworkz/login-component
bun add @wogworkz/login-component
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.2 |
| Published | 2019-12-15 |
| First published | 2019-04-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 614.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | jangolano |

## Links

- npm: https://www.npmjs.com/package/@wogworkz/login-component
- Repository: https://github.com/wogworkz/login-component
- Homepage: https://github.com/wogworkz/login-component#readme
- Issues: https://github.com/wogworkz/login-component/issues
- npm.io page: https://npm.io/package/@wogworkz/login-component

## Dependencies (2)

- [lit-element](https://npm.io/package/lit-element.md) ^2.2.1
- [amazon-cognito-identity-js](https://npm.io/package/amazon-cognito-identity-js.md) ^3.2.0

## Recent versions

- 1.3.2 (latest) — 2019-12-15
- 1.3.1 — 2019-11-03
- 1.3.0 — 2019-04-01
- 1.2.0 — 2019-04-01

## README

# AWS Cognito Login Component
A simple web component for logging into AWS Cognito 

[![Build Status](https://travis-ci.org/wogworkz/login-component.svg?branch=master)](https://travis-ci.org/wogworkz/login-component)
[![Published on npm](https://img.shields.io/npm/v/@wogworkz/login-component.svg)](https://www.npmjs.com/package/@wogworkz/login-component)

## 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:

```bash
$ npm install @wogworkz\login-component
```

Add the following to the head element
```html
<script type="text/javascript" src="login_component.bundle.min.js"></script>
```
## Usage
```html
<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.

---
_Source: https://npm.io/package/@wogworkz/login-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
