refactor README
/ test (pull_request) Successful in 33s

This commit is contained in:
Infendro committed 2026-01-30 13:31:04 +01:00
1 parent f5f073168d
commit 733d633753
1 file changed
+4 -3
+4 -3
View File
@@ -32,8 +32,9 @@ fun main() {
) )
// generate and verify OTP // generate and verify OTP
val now = System.now() val secret = "...".encodeToByteArray()
val otp = totp.generate(<secret>, now) val time = System.now()
totp.verify(<secret>, now, otp) val otp = totp.generate(secret, time)
totp.verify(secret, time, otp)
} }
``` ```