Фикс TOTP 2fa
This commit is contained in:
@@ -58,7 +58,7 @@ private fun generateTotpCode(
|
||||
digits,
|
||||
macAlgorithm,
|
||||
)
|
||||
val secretKey = SecretKeySpec(key, "RAW")
|
||||
val secretKey = SecretKeySpec(key, macAlgorithm)
|
||||
val otp = generator.generateOneTimePassword(
|
||||
secretKey,
|
||||
Instant.ofEpochMilli(nowMillis),
|
||||
|
||||
Reference in New Issue
Block a user