# @reapit/login-with-reapit

> Login with reapit button

Latest version **1.0.6** (published 2021-12-02) · 0 weekly downloads

## Install

```sh
npm install @reapit/login-with-reapit
pnpm add @reapit/login-with-reapit
yarn add @reapit/login-with-reapit
bun add @reapit/login-with-reapit
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-12-02 |
| First published | 2021-10-04 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 621.6 KB |
| Known vulnerabilities | 0 (+7 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | wmcvayreapit, dawsonscott |

## Links

- npm: https://www.npmjs.com/package/@reapit/login-with-reapit
- npm.io page: https://npm.io/package/@reapit/login-with-reapit

## Dependencies (2)

- [svelte](https://npm.io/package/svelte.md) ^3.34.0
- [@reapit/connect-session](https://npm.io/package/@reapit/connect-session.md) ^3.3.0

## Recent versions

- 1.0.6 (latest) — 2021-12-02
- 1.0.4 — 2021-10-08
- 1.0.3 — 2021-10-07
- 1.0.2 — 2021-10-04
- 1.0.0 — 2021-10-04

## README

# Login With Reapit

A button component for logging in with reapit-connect-session.

## Install

```bash
$ yarn add @reapit/login-with-reapit
```

```bash
$ npm i --save @reapit/login-with-reapit
```

## Usage

```ts
import { reapitConnectComponent } from '@reapit/login-with-reapit'

const connectHasSessionCallback = (reapitConnectBrowserSession) => {
  reapitConnectBrowserSession.connectSession().then(session => {
    console.log('Session is', session)
  })
}

reapitConnectComponent({
  connectClientId: '', // Your client Id
  connectOAuthUrl: 'https://connect.reapit.cloud', // Our OAuth url
  connectLoginRedirectPath: '', // Your logout page path (when logging in)
  connectLogoutRedirectPath: '/login', // Your login page path (when logging out)
  rootElement: document.querySelector('#reapit-connect-component'), // Your Element on the page
  connectHasSessionCallback, // The callback for when the session is created
  companyName: "Test Company", // Your Company name
})
```

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