The public snapshot of a user that Clerk attaches to a session and to an organization membership.
It is deliberately smaller than Clerk.User: it is the data Clerk is happy
to show to other members of an organization.
Decode a PublicUserData from the JSON the shim sends.
{ "firstName": "Ada"
, "lastName": "Lovelace"
, "imageUrl": "https://img.clerk.com/ada"
, "hasImage": true
, "identifier": "[email protected]"
, "userId": "user_1"
, "username": "ada"
, "banned": false
, "deprovisioned": false
}banned and deprovisioned are optional in ClerkJS; the shim sends
false when they are absent.
The public fields of a user.
identifieris whatever the user signs in with (an email address, a phone number or a username).