Skip to Content
You are viewing a beta version of Clerk Docs
Visit the latest docs
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 user's uploaded profile image. Compatible with Clerk's Image Optimization.
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 March 1, 2024

What did you think of this content?

Clerk © 2024