Userobject holds all the information for a user of your application and provides a set of methods to manage their account.
Userobjects hold profile data like their name, a profile image and a set of metadata that can be used internally to store arbitrary information. The metadata are split into public and private. Both types are set from the Backend API, but public metadata can be accessed from the Frontend API and Backend API.
createEmailAddress(email: string) => Promise<EmailAddressResource>
createPhoneNumber(phoneNumber: string) => Promise<PhoneNumberResource>
getSessions() => Promise<SessionWithActivities>
getToken(service: JWTService, options?: GetUserTokenOptions) => Promise<string>
Promisethat resolves to a
string. The string is the user's token for the provided integration service.
setProfileImage(file: Blob | File) => Promise<ImageResource>
twoFactorEnabled() => boolean
truewhen the user has enabled 2-factor authentication,
update(params: UpdateUserParams) => Promise<UserResource>
clerk | firebase | hasura
facebook | github | google | hubspot | tiktok | gitlab | discord | twitter | twitch