Closed nizigama closed 1 year ago
passcode, err := totp.GenerateCodeCustom(secret, time.Now(), totp.ValidateOpts{ Period: otpTTL, Skew: 1, Digits: otp.DigitsSix, Algorithm: otp.AlgorithmSHA512, }) if err != nil { return err }
The code sometimes generates a 5 digits long passcode instead of 6 as set with the otp.DigitsSix parameter. And it happens randomly
otp.DigitsSix
The code sometimes generates a 5 digits long passcode instead of 6 as set with the
otp.DigitsSix
parameter. And it happens randomly