otplib-authenticator

Instance of Authenticator

Google Authenticator library

 import crypto from 'crypto';
 import authenticator from 'otplib/authenticator';

 authenticator.options = {
   crypto
 }

 authenticator.generate(...)
 authenticator.check(...)
 authenticator.generateSecret(...)
Since:
  • 3.0.0
Source: