forTotp

fun forTotp(code: String, timeRemaining: Int, totalPeriod: Int): OathCodeInfo

Create an instance for a TOTP code.

Return

An OathCodeInfo instance for TOTP.

Parameters

code

The generated OTP code.

timeRemaining

The time remaining in seconds before the code expires.

totalPeriod

The total validity period in seconds.