OtpCodeInfo

data class OtpCodeInfo(val code: String, val secondsRemaining: Int)

The current one-time passcode returned by com.pingidentity.pingonemfa.commons.PingOneMFA.getOneTimePasscode.

Constructors

Link copied to clipboard
constructor(code: String, secondsRemaining: Int)

Properties

Link copied to clipboard

The current TOTP passcode string (typically 6 digits).

Link copied to clipboard

Seconds until the code expires, computed at call time. Clamped to 0 if the code is already past its validity window. Re-call com.pingidentity.pingonemfa.commons.PingOneMFA.getOneTimePasscode when this reaches zero to receive the next code.