Standard

@Serializable
data class Standard(val emailAddress: String? = null, val password: String? = null, val firstName: String? = null, val lastName: String? = null, val username: String? = null, val phoneNumber: String? = null, val legalAccepted: Boolean? = null, val unsafeMetadata: Map<String, Any>? = null) : SignUp.CreateParams

Standard sign-up strategy, allowing the user to provide common details such as email, password, and personal information.

Parameters

emailAddress

The user's email address (optional).

password

The user's password (optional).

firstName

The user's first name (optional).

lastName

The user's last name (optional).

username

The user's username (optional).

phoneNumber

The user's phone number in E.164 format (optional).

legalAccepted

Whether the user has accepted the legal terms and conditions (optional).

unsafeMetadata

Custom metadata that will be attached to the created user. This metadata is not validated by Clerk and should not contain sensitive information.

Constructors

Link copied to clipboard
constructor(emailAddress: String? = null, password: String? = null, firstName: String? = null, lastName: String? = null, username: String? = null, phoneNumber: String? = null, legalAccepted: Boolean? = null, unsafeMetadata: Map<String, Any>? = null)

Properties

Link copied to clipboard
@SerialName(value = "email_address")
val emailAddress: String?
Link copied to clipboard
@SerialName(value = "first_name")
val firstName: String?
Link copied to clipboard
@SerialName(value = "last_name")
val lastName: String?
Link copied to clipboard
@SerialName(value = "legal_accepted")
val legalAccepted: Boolean?
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "phone_number")
val phoneNumber: String?
Link copied to clipboard
@Transient
@SerialName(value = "unsafe_metadata")
val unsafeMetadata: Map<String, Any>?
Link copied to clipboard