File size: 481 Bytes
e9a8d0a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export type UserRole = 'admin' | 'influencer' | 'viewer';

export interface User {
  id: string;
  email: string;
  password: string; // In production, this should be hashed
  role: UserRole;
  influencerId?: string; // For influencer accounts, link to their influencer ID
  name?: string;
  createdAt: string;
}

export interface AuthSession {
  user: User;
  isLoggedIn: boolean;
  loginTime: string;
}

export interface LoginCredentials {
  email: string;
  password: string;
}