fix: typo and lint

This commit is contained in:
Prateek Sunal
2024-04-26 11:33:30 +05:30
parent 6cd624c90c
commit e84b9da35e
2 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ String getNextTotp(Code code) {
return otp.OTP.generateTOTPCodeString(
getSanitizedSecret(code.secret),
DateTime.now().millisecondsSinceEpoch + code.period * 1000,
length: code.issuer.toLowerCase() == "stream" ? 5 : code.digits,
length: code.issuer.toLowerCase() == "steam" ? 5 : code.digits,
interval: code.period,
algorithm: _getAlgorithm(code),
isGoogle: true,