TOTP constructor
Create a new TOTP instance.
@param hotp
- The HOTP instance.
@param digits
- The number of digits in the code.
@param period
- The number of seconds in the time period.
Implementation
const TOTP(
this.hotp, {
this.digits = 6,
this.period = 30,
});