Download src/types/auth.ts from SherlockHolmes786/tradewithlive: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/SherlockHolmes786/tradewithlive/resolve/main/src/types/auth.ts
- Command line
-
hf download hf://SherlockHolmes786/tradewithlive/src/types/auth.ts
-
curl -L -o auth.ts https://huggingface.co/SherlockHolmes786/tradewithlive/resolve/main/src/types/auth.ts
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; | |
| } | |