Hooks
useUser
Access the authenticated user’s full profile state, including loading and error states. Provides an
updateUser action for modifying profile data.What the Current User Can Do
The authenticated user can update their own profile fields:- Name — display name shown across the platform
- Username — unique handle (subject to availability)
- Avatar — profile picture, uploaded as a file or set as a URL
- Banner — profile banner image (file upload only)
- Bio — short biography, up to 300 characters
- Birthdate — optional date of birth
- Location — optional geographic location (latitude/longitude)
- Metadata — arbitrary JSON data for project-specific user properties
- Secure Metadata — same as metadata but excluded from other users’ views
User State
TheuseUser hook returns an AuthUser object which contains the complete profile of the authenticated user, including fields that are not exposed in public profiles. See the User data model for the full field reference.
The
AuthUser type includes authMethods (e.g., ["password", "google"]) and suspensions — fields only available for the authenticated user’s own profile.
