UserData

The UserData interface represents additional user profile data stored in Firestore.

The UserData interface defines the structure for additional user profile information that is typically stored in a Firestore collection (e.g., users). This data complements the basic user information managed by Firebase Authentication.

Interface Definition

export interface UserData {
    display_name: string | null;
    avatar_url: string | null;
    create_timestamp: number;
}

Properties

PropertyTypeDescription
display_namestring | nullThe user’s display name, or null if not set.
avatar_urlstring | nullThe URL to the user’s avatar image, or null if not set.
create_timestampnumberThe timestamp (in milliseconds) when this user data record was created.

Usage

This interface is used when retrieving or updating user-specific profile data that goes beyond what Firebase Authentication provides directly. For example, the getSubscriptionUsers function fetches this data to enrich the UserDetails objects.


Last modified August 17, 2025: cloud functions doc (4817130)