# @raresail/yubico-otp-client

> An offline Client for Yubico OTP

Latest version **1.0.1** (published 2023-07-06) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @raresail/yubico-otp-client
pnpm add @raresail/yubico-otp-client
yarn add @raresail/yubico-otp-client
bun add @raresail/yubico-otp-client
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-07-06 |
| First published | 2023-05-28 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | ^16.10.0 \|\| >=18.0.0 |
| Dependencies | 0 |
| Unpacked size | 22.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (Unknown) |
| GitHub stars | 1 |
| Author | RaresAil |
| Maintainers | raresdesigns |
| Keywords | yubico, otp, offline, 2fa, mfa, yubikey, fido, yubi, client, authentication |

## Links

- npm: https://www.npmjs.com/package/@raresail/yubico-otp-client
- Repository: https://github.com/RaresAil/yubico-otp-client
- Issues: https://github.com/RaresAil/yubico-otp-client/issues
- npm.io page: https://npm.io/package/@raresail/yubico-otp-client

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-07-06
- 1.0.0 — 2023-05-28

## README

# @raresail/yubico-otp-client

### An offline Client for Yubico OTP

[![Node.js CI](https://github.com/RaresAil/yubico-otp-client/actions/workflows/node.js.yml/badge.svg)](https://github.com/RaresAil/yubico-otp-client/actions/workflows/node.js.yml)
[![Yarn Audit CI](https://github.com/RaresAil/yubico-otp-client/actions/workflows/audit.yml/badge.svg)](https://github.com/RaresAil/yubico-otp-client/actions/workflows/audit.yml)
[![CodeQL](https://github.com/RaresAil/yubico-otp-client/actions/workflows/codeql.yml/badge.svg)](https://github.com/RaresAil/yubico-otp-client/actions/workflows/codeql.yml)

## Installation

### Yarn

```bash
yarn add @raresail/yubico-otp-client
```

### NPM

```bash
npm install @raresail/yubico-otp-client
```

## Usage

When making the setup for OTP you create a Public ID, a Private ID and a Secret Token.

```ts
import { Token } from '@raresail/yubico-otp-client';

const token = new Token('secret', 'private-id', 'public-id');

token.validateCode('code-0'); // return true or false
token.validateCode('code-0'); // will return false if the same code or an older one is used
```

---
_Source: https://npm.io/package/@raresail/yubico-otp-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
