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
val now = System.now()
val otp = totp.generate(<secret>, now)
totp.verify(<secret>, now, otp)
val secret = "...".encodeToByteArray()
val time = System.now()
val otp = totp.generate(secret, time)
totp.verify(secret, time, otp)
}
```