ClerkUser
Defined in: users/users.ts:44
A user as the Clerk Backend API returns it.
Properties
Section titled “Properties”backup_code_enabled
Section titled “backup_code_enabled”backup_code_enabled:
boolean
Defined in: users/users.ts:100
Whether backup codes are enabled for the user.
banned
Section titled “banned”banned:
boolean
Defined in: users/users.ts:82
Whether the user is banned.
created_at
Section titled “created_at”created_at:
number
Defined in: users/users.ts:90
When the user was created, as a Unix timestamp in milliseconds.
email_addresses
Section titled “email_addresses”email_addresses:
ClerkEmailAddress[]
Defined in: users/users.ts:76
The user’s email addresses.
external_id
Section titled “external_id”external_id:
string|null
Defined in: users/users.ts:50
The identifier the user has in your own system, or null when unset.
first_name
Section titled “first_name”first_name:
string|null
Defined in: users/users.ts:60
The user’s first name, or null when unset.
has_image
Section titled “has_image”has_image:
boolean
Defined in: users/users.ts:68
Whether the user has uploaded an image.
id:
string
Defined in: users/users.ts:46
The user’s identifier.
image_url
Section titled “image_url”image_url:
string
Defined in: users/users.ts:66
The URL of the user’s image.
last_name
Section titled “last_name”last_name:
string|null
Defined in: users/users.ts:62
The user’s last name, or null when unset.
last_sign_in_at
Section titled “last_sign_in_at”last_sign_in_at:
number|null
Defined in: users/users.ts:80
When the user last signed in, as a Unix timestamp in milliseconds, or null if they never have.
locked
Section titled “locked”locked:
boolean
Defined in: users/users.ts:84
Whether the user is locked out.
lockout_expires_in_seconds
Section titled “lockout_expires_in_seconds”lockout_expires_in_seconds:
number|null
Defined in: users/users.ts:86
Seconds until the lockout ends, or null when the user is not locked.
object
Section titled “object”object:
"user"
Defined in: users/users.ts:48
The object type, always "user".
password_enabled
Section titled “password_enabled”password_enabled:
boolean
Defined in: users/users.ts:94
Whether the user has a password set.
phone_numbers
Section titled “phone_numbers”phone_numbers:
ClerkPhoneNumber[]
Defined in: users/users.ts:78
The user’s phone numbers.
primary_email_address_id
Section titled “primary_email_address_id”primary_email_address_id:
string|null
Defined in: users/users.ts:52
The id of the user’s primary email address, or null when there is none.
primary_phone_number_id
Section titled “primary_phone_number_id”primary_phone_number_id:
string|null
Defined in: users/users.ts:54
The id of the user’s primary phone number, or null when there is none.
primary_web3_wallet_id
Section titled “primary_web3_wallet_id”primary_web3_wallet_id:
string|null
Defined in: users/users.ts:56
The id of the user’s primary web3 wallet, or null when there is none.
private_metadata
Section titled “private_metadata”private_metadata:
Record<string,unknown>
Defined in: users/users.ts:72
Metadata readable and writable only from the backend.
profile_image_url
Section titled “profile_image_url”profile_image_url:
string
Defined in: users/users.ts:64
The URL of the user’s profile image.
public_metadata
Section titled “public_metadata”public_metadata:
Record<string,unknown>
Defined in: users/users.ts:70
Metadata readable from the frontend and backend, writable only from the backend.
totp_enabled
Section titled “totp_enabled”totp_enabled:
boolean
Defined in: users/users.ts:98
Whether authenticator-app (TOTP) two-factor is enabled for the user.
two_factor_enabled
Section titled “two_factor_enabled”two_factor_enabled:
boolean
Defined in: users/users.ts:96
Whether two-factor authentication is enabled for the user.
unsafe_metadata
Section titled “unsafe_metadata”unsafe_metadata:
Record<string,unknown>
Defined in: users/users.ts:74
Metadata that the frontend can also read and write.
updated_at
Section titled “updated_at”updated_at:
number
Defined in: users/users.ts:92
When the user was last updated, as a Unix timestamp in milliseconds.
username
Section titled “username”username:
string|null
Defined in: users/users.ts:58
The user’s username, or null when unset.
verification_attempts_remaining
Section titled “verification_attempts_remaining”verification_attempts_remaining:
number|null
Defined in: users/users.ts:88
How many verification attempts the user has left, or null when not limited.