User Interface
TheUser interface represents an authenticated user account in Arraf Auth. It contains all the core user profile information and verification status.
Unique identifier for the user
The user’s email address. Can be
null if the user authenticated via phone only.The user’s phone number. Can be
null if the user authenticated via email only.The user’s display name. Can be
null if not provided.Indicates whether the user’s email address has been verified
Indicates whether the user’s phone number has been verified
URL to the user’s profile image. Can be
null if not set.Timestamp when the user account was created
Timestamp when the user account was last updated
Usage Example
Users can authenticate with email, phone, or OAuth providers. At least one of
email or phone will be set, but not necessarily both.The
emailVerified and phoneVerified fields are automatically set to true when users verify their contact information via OTP or when authenticating through OAuth providers that provide verified email addresses.