Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

PublicUserData

Information about the user that's publicly available.

Properties

NameTypeDescription
firstNamestring | nullThe user's first name.
lastNamestring | nullThe user's last name.
imageUrlstringHolds the default avatar or users uploaded profile image.
hasImagebooleanA getter 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.
identifierstringThe user's identifier.
userId?string | nullThe user's ID.

Last updated on October 10, 2023

What did you think of this content?

Clerk © 2023