videosphere
    Preparing search index...

    Interface UserProfileDocument

    Raw MongoDB document shape for the user_profiles collection.

    interface UserProfileDocument {
        _id: string;
        userId: string;
        email: string;
        name?: string;
        passwordHash?: string;
        hasCompletedOnboarding: boolean;
        role: UserRole;
        authProvider: UserAuthProvider;
        googleRefreshToken?: string;
        totpSecret?: string;
        totpEnabled: boolean;
        platformDefaults?: PlatformDefaults;
        preferences?: UserPreferences;
        createdAt: Date;
        updatedAt: Date;
    }
    Index

    Properties

    _id: string
    userId: string
    email: string
    name?: string
    passwordHash?: string
    hasCompletedOnboarding: boolean
    role: UserRole
    authProvider: UserAuthProvider

    Sign-in method; required on every profile at creation.

    googleRefreshToken?: string

    AES-256-GCM encrypted Google login refresh token for revoke-on-delete.

    totpSecret?: string

    AES-256-GCM encrypted TOTP secret when two-factor auth is configured.

    totpEnabled: boolean

    Whether TOTP second factor is required at login.

    platformDefaults?: PlatformDefaults

    Per-platform upload default settings for new drafts.

    preferences?: UserPreferences

    Cross-device UI preferences.

    createdAt: Date
    updatedAt: Date