AttributesConfig

@Serializable
data class AttributesConfig(val enabled: Boolean, val required: Boolean, val usedForFirstFactor: Boolean, val firstFactors: List<String>?, val usedForSecondFactor: Boolean, val secondFactors: List<String>?, val verifications: List<String>?, val verifyAtSignUp: Boolean)

Configuration for a user attribute (email, phone, username, etc.).

This class defines how a specific user attribute behaves in the authentication system, including whether it's enabled, required, and what verification methods are available.

Constructors

Link copied to clipboard
constructor(enabled: Boolean, required: Boolean, usedForFirstFactor: Boolean, firstFactors: List<String>?, usedForSecondFactor: Boolean, secondFactors: List<String>?, verifications: List<String>?, verifyAtSignUp: Boolean)

Properties

Link copied to clipboard

Whether this attribute is enabled for the application

Link copied to clipboard
@SerialName(value = "first_factors")
val firstFactors: List<String>?

List of first-factor authentication strategies available for this attribute

Link copied to clipboard

Whether this attribute is required during sign-up

Link copied to clipboard
@SerialName(value = "second_factors")
val secondFactors: List<String>?

List of second-factor authentication strategies available for this attribute

Link copied to clipboard
@SerialName(value = "used_for_first_factor")
val usedForFirstFactor: Boolean

Whether this attribute can be used for first-factor authentication

Link copied to clipboard
@SerialName(value = "used_for_second_factor")
val usedForSecondFactor: Boolean

Whether this attribute can be used for second-factor authentication

Link copied to clipboard

List of verification methods available for this attribute

Link copied to clipboard
@SerialName(value = "verify_at_sign_up")
val verifyAtSignUp: Boolean

Whether this attribute must be verified during the sign-up process