Converts a File to a Base64 data URI string Used for file uploads in settings UI
Gets the display URL for an avatar based on user settings Priority: UserImageURL > UserImageIconClass > default
The MJUserEntity
Optional default URL if no avatar is set
The URL to display, or null if using an icon
Gets the icon class for an avatar if using icon mode
Validates if a string is a valid Base64 data URI
Validates if a string is a valid URL
Syncs user avatar from an image URL (typically from auth provider profile). Downloads the image, converts to Base64, and saves to the user entity.
The MJUserEntity to update with avatar data
URL to the image (can be from Microsoft Graph, Google, etc.)
OptionalauthHeaders: Record<string, string>Optional headers for authenticated requests (e.g., { 'Authorization': 'Bearer token' })
Promise
Service for managing user avatar operations across the application.
NOTE: This service does NOT depend on any Explorer-specific packages to remain usable across different Angular applications. All auth provider logic should be handled by the calling code.