FAuthenticator constructor

FAuthenticator({
  1. String? secret,
  2. Algorithm algorithm = Algorithm.SHA1,
  3. int interval = 30,
  4. bool isGoogle = true,
  5. int keyLength = 6,
  6. required String appName,
  7. required String username,
})

Implementation

FAuthenticator(
    {this.secret,
    this.algorithm = Algorithm.SHA1,
    this.interval = 30,
    this.isGoogle = true,
    this.keyLength = 6,
    required this.appName,
    required this.username}) {
  _internalSecret = secret ?? OTP.randomSecret();
}