# @hiveid/verify-js

> The hassle-free way to integrate identity verification into any web application

Latest version **2.2.1** (published 2021-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hiveid/verify-js
pnpm add @hiveid/verify-js
yarn add @hiveid/verify-js
bun add @hiveid/verify-js
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.1 |
| Published | 2021-09-07 |
| First published | 2020-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 3.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Hive Identity |
| Maintainers | yznatokov, antsiferovmaxim |
| Keywords | identity, verify, verify-js, hive.id |

## Links

- npm: https://www.npmjs.com/package/@hiveid/verify-js
- Repository: https://github.com/hiveidentity/verify-js
- Homepage: https://github.com/hiveidentity/verify-js#readme
- Issues: https://github.com/hiveidentity/verify-js/issues
- npm.io page: https://npm.io/package/@hiveid/verify-js

## Dependencies (10)

- [preact](https://npm.io/package/preact.md) ^10.3.2
- [linaria](https://npm.io/package/linaria.md) ^1.3.3
- [effector](https://npm.io/package/effector.md) ^20.13.4
- [patronum](https://npm.io/package/patronum.md) ^0.106.0
- [preact-compat](https://npm.io/package/preact-compat.md) ^3.19.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.9.2
- [effector-react](https://npm.io/package/effector-react.md) ^20.6.3
- [@elastic/apm-rum](https://npm.io/package/@elastic/apm-rum.md) ^5.6.2
- [socket.io-client](https://npm.io/package/socket.io-client.md) ^2.3.0
- [enumerate-devices](https://npm.io/package/enumerate-devices.md) ^1.1.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 2.2.1 (latest) — 2021-09-07
- 2.2.0 — 2021-06-02
- 2.1.0 — 2020-12-09
- 2.0.4 — 2020-11-17
- 2.0.3 — 2020-10-25
- 2.0.2 — 2020-10-06
- 2.0.1 — 2020-09-16
- 2.0.0 — 2020-09-11
- 1.1.6 — 2020-08-14
- 1.1.5 — 2020-08-10
- 1.1.4 — 2020-08-09
- 1.1.3 — 2020-08-06
- 1.1.2 — 2020-07-14
- 1.1.1 — 2020-07-12
- 1.1.0 — 2020-07-10
- … 4 more at https://npm.io/package/@hiveid/verify-js/versions

## README

# Verify Web SDK

### Browser

```js
const applicationKey = "application key";
const customerId = "customer id";

const verificationBtn = document.getElementById("verification-btn");
const verificationContainer = document.getElementById("verification-container");

Verify.configure(applicationKey, {
  language: "en", // supported de, en, es, fr
  languageSelector: true, // default true
  mode: "modal", // modal (default) | inline
});

const handleVerificationCompleted = (payload) => {
  createCheck({ sessionId: payload.sessionId });
};

const handleVerificationCanceled = () => {
  console.log("Verification canceled");
};

const handleStartVerification = async () => {
  const sessionToken = await createSession({
    customerId,
    applicationKey,
  });

  Verify.mount(verificationContainer, sessionToken);
};

Verify.on("completed", handleVerificationCompleted);
Verify.on("canceled", handleVerificationCanceled);
verificationBtn.addEventListener("click", handleStartVerification);
```

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