UserData

@Serializable
data class UserData(val firstName: String? = null, val lastName: String? = null, val imageUrl: String? = null, val hasImage: Boolean? = null)

An object containing information about the user of the current sign-in. This property is populated only once an identifier is given to the SignIn object.

Constructors

Link copied to clipboard
constructor(firstName: String? = null, lastName: String? = null, imageUrl: String? = null, hasImage: Boolean? = null)

Properties

Link copied to clipboard

The user's first name.

Link copied to clipboard

A boolean to check if the user has uploaded an image or one was copied from OAuth. Returns false if Clerk is displaying an avatar for the user.

Link copied to clipboard

Holds the default avatar or user's uploaded profile image.

Link copied to clipboard

The user's last name.