# bomser-login

> A Bomser Login Component for React

Latest version **1.0.2** (published 2022-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install bomser-login
pnpm add bomser-login
yarn add bomser-login
bun add bomser-login
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-02-22 |
| First published | 2022-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 16.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Oleh Shutiak |
| Maintainers | qatsuro |
| Keywords | react, reactjs, react-component |

## Links

- npm: https://www.npmjs.com/package/bomser-login
- npm.io page: https://npm.io/package/bomser-login

## Dependencies (2)

- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0
- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 1.0.2 (latest) — 2022-02-22
- 1.0.1 — 2022-02-22
- 1.0.0 — 2022-02-17

## README

# React Bomser Login

A Bomser oAUth Sign-in / Log-in Component for React

## Install

```
npm install bomser-login
```

## How to use

```js
import React from 'react';
import ReactDOM from 'react-dom';
import BomserLogin from 'bomser-login';
// or
import { BomserLogin } from 'bomser-login';

const responseBomser = (response) => {
  console.log(response);
};

ReactDOM.render(
  <BomserLogin onSuccess={responseBomser} onFailure={responseBomser} />,
  document.getElementById('BomserButton')
);
```

## onSuccess callback

| property name | value  |
| :-----------: | :----: |
|      key      | string |
|      id       | string |
|     index     | number |
|   imageUrl    | string |
|   firstname   | string |
|   lasttname   | string |

## onFailure callback

onFailure callback is called when either initialization or a signin attempt fails.

| property name | value  |         definition         |
| :-----------: | :----: | :------------------------: |
|    details    | string | Detailed error description |

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