# passwordless-node

> PasswordlessJS implementation for the server.

Latest version **1.0.4** (published 2022-06-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install passwordless-node
pnpm add passwordless-node
yarn add passwordless-node
bun add passwordless-node
```

## 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.4 |
| Published | 2022-06-21 |
| First published | 2022-06-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Dominik |
| Maintainers | randomprogramming |
| Keywords | passwordless |

## Links

- npm: https://www.npmjs.com/package/passwordless-node
- Repository: https://github.com/randomprogramming/passwordless-node
- Homepage: https://github.com/randomprogramming/passwordless-node#readme
- Issues: https://github.com/randomprogramming/passwordless-node/issues
- npm.io page: https://npm.io/package/passwordless-node

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.27.2

## Recent versions

- 1.0.4 (latest) — 2022-06-21
- 1.0.3 — 2022-06-21
- 1.0.2 — 2022-06-21
- 1.0.1 — 2022-06-20
- 1.0.0 — 2022-06-20

## README

## Overview

A wrapper for the [unpass.me](unpass.me) API to be used on a server. You will need to register for a Private Key.

## Installing

### NPM

```bash
npm install passwordless-node
```

### Yarn

```bash
yarn add passwordless-node
```

## Usage

#### Import Library

```js
import { loginComplete } from "passwordless-node";
```

#### Pass in data

```js
const isLoginComplete = await loginComplete(loginData, your_private_key);
```

Pass in the `loginData` object that you recieved from the frontend library into the `loginComplete` function, along with your private key. The function will either return true and you can authenticate the user, or it will throw an error with a message.

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