otplib-hotp

Instance of HOTP

Time-based One-Time Password library

 import crypto from 'crypto';
 import hotp from 'otplib/hotp';

 hotp.options = {
   crypto
 }

 hotp.generate(...)
 hotp.check(...)
 hotp.verify(...)
Since:
  • 3.0.0
Source: