Fields in the User Object
Fields in the User Object
The user object contains the following information:
userId: User’s unique identifier.email: User’s email address.phoneNumber: User’s phone number.google: User’s Google account data.farcaster: User’s Farcaster account data.
name: User’s Google display name.picture: User’s Google profile picture URL.
fid: User’s Farcaster ID.username: User’s Farcaster username.bio: User’s Farcaster bio.displayName: User’s Farcaster display name.pfpUrl: User’s Farcaster profile image URL.custody: User’s FID custody address.verifications: List of the user’s verified addresses.
Reading User Data
This API requires theusers.read scope.
- Server side: Requires a server-side API key.
- Client side: Requires a client-side API key, and a logged in user.
Server-side
For server-side operations, use the@crossmint/server-sdk that provides a getUser function to fetch user information.
Response Format
Client-side
Use theuseAuth react hook from @crossmint/client-sdk-react-ui to access the user object.
If you would like to use a different framework, contact support
React

