refactor README
All checks were successful
/ test (pull_request) Successful in 33s

This commit is contained in:
2026-01-30 13:30:56 +01:00
parent f5f073168d
commit 733d633753

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)
} }
``` ```