@raresail/yubico-otp-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@raresail/yubico-otp-client

An offline Client for Yubico OTP

Node.js CI Yarn Audit CI CodeQL

Installation

Yarn

yarn add @raresail/yubico-otp-client

NPM

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.

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

Package Sidebar

Install

npm i @raresail/yubico-otp-client

Weekly Downloads

5

Version

1.0.1

License

Apache-2.0

Unpacked Size

22.6 kB

Total Files

11

Last publish

Collaborators

  • raresdesigns