Unfortunately type definitions are currently not available for this package


  • Version 12.0.1
  • Published
  • 25.6 kB
  • 3 dependencies
  • MIT license


npm i otplib
yarn add otplib
pnpm add otplib


HMAC-based (HOTP) and Time-based (TOTP) One-Time Password library

Dependencies (3)

Dev Dependencies (0)

No dev dependencies.

Peer Dependencies (0)

No peer dependencies.


To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/otplib.

  • Markdown
  • HTML
    <a href="https://www.jsdocs.io/package/otplib"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>