Instance of TOTP
Time-based One-Time Password library
import crypto from 'crypto';
import totp from 'otplib/totp';
totp.options = {
crypto
}
totp.generate(...)
totp.check(...)
totp.verify(...)
- Since:
- 3.0.0
- Source:
Instance of TOTP
Time-based One-Time Password library
import crypto from 'crypto';
import totp from 'otplib/totp';
totp.options = {
crypto
}
totp.generate(...)
totp.check(...)
totp.verify(...)