tradewithlive / src /types /auth.ts
SherlockHolmes786's picture
Upload 27 files
e9a8d0a verified
Raw History Blame Contribute Delete
481 Bytes
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;
}