BackupCodeResource

@Serializable
data class BackupCodeResource(val objectType: String, val id: String, val codes: List<String>, val createdAt: Long, val updatedAt: Long)

Represents a backup code resource for two-factor authentication recovery.

Backup codes are single-use recovery codes that can be used to authenticate when the user's primary two-factor authentication method (like TOTP or SMS) is unavailable. These codes should be stored securely by the user and can only be used once each.

Constructors

Link copied to clipboard
constructor(objectType: String, id: String, codes: List<String>, createdAt: Long, updatedAt: Long)

Properties

Link copied to clipboard

List of backup codes that can be used for recovery authentication

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

Timestamp when the backup codes were created (Unix timestamp in milliseconds)

Link copied to clipboard
val id: String

The unique identifier for this backup code resource

Link copied to clipboard
@SerialName(value = "object")
val objectType: String

The type of object, typically "backup_code"

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

Timestamp when the backup codes were last updated (Unix timestamp in milliseconds)