Skip to main content

MoIdentity

"I know who you are"

MoIdentity handles user authentication, profiles, and goals. It's the entry point for all user context in the Mo Universe.


Systems

SystemNameStatusDescription
MoAuth"The Gatekeeper"✅ BuiltAuthentication, user accounts
MoProfile"The Record"✅ BuiltUser profile, fitness level
MoGoals"The Target"⚠️ PartialTraining goals, targets

Data Flow

User Login → MoAuth → MoProfile → MoGoals

User Context available to all domains

Vertical Interface

interface MoIdentityInterface {
// Authentication
getCurrentUser(): Promise<User | null>;

// Profile
getProfile(): Promise<UserProfile>;
updateProfile(data: Partial<UserProfile>): Promise<void>;

// Goals
getGoals(): Promise<UserGoals>;
setGoals(goals: UserGoals): Promise<void>;
}