TOTPResource

@Serializable
data class TOTPResource(val id: String, val secret: String, val uri: String, val verified: Boolean, val createdAt: Long, val updatedAt: Long)

Represents a TOTP (Time-based One-Time Password) resource for two-factor authentication.

TOTP is commonly used for two-factor authentication with authenticator apps like Google Authenticator, Authy, or 1Password. This resource contains the secret key and configuration needed to set up TOTP authentication.

Constructors

Link copied to clipboard
constructor(id: String, secret: String, uri: String, verified: Boolean, createdAt: Long, updatedAt: Long)

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Long

Timestamp when the TOTP resource was created (Unix timestamp in milliseconds)

Link copied to clipboard
val id: String

The unique identifier for this TOTP resource

Link copied to clipboard

The base32-encoded secret key used for generating TOTP codes

Link copied to clipboard
@SerialName(value = "updated_at")
val updatedAt: Long

Timestamp when the TOTP resource was last updated (Unix timestamp in milliseconds)

Link copied to clipboard
val uri: String

The otpauth:// URI that can be used to generate QR codes for authenticator apps

Link copied to clipboard

Whether the TOTP setup has been verified by the user