SetTOTPRequest

data class SetTOTPRequest(secret: String, period: Int, digits: Int, algorithm: String, key: String)

Properties

algorithm
Link copied to clipboard
val algorithm: String

Algorithm to use for HMAC, accepted values: SHA1, SHA256, SHA512.

digits
Link copied to clipboard
val digits: Int

The required length of the generated TOTP.

key
Link copied to clipboard
val key: String

The key under which the TOTP secret data should be stored.

period
Link copied to clipboard
val period: Int

The time in seconds a generated TOTP hash is valid for.

secret
Link copied to clipboard
val secret: String

A Base 32 encoded string.