Retrieve user profile data such as email or social login metadata
Fields in the User Object
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.users.read
scope.
@crossmint/server-sdk
that provides a getUser
function to fetch user information.
useAuth
react hook from @crossmint/client-sdk-react-ui
to access the user object.