Download src/app/core/interfaces/auth.interface.ts from majemaai/mj-learn: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/majemaai/mj-learn/resolve/main/src/app/core/interfaces/auth.interface.ts
- Command line
-
hf download hf://spaces/majemaai/mj-learn/src/app/core/interfaces/auth.interface.ts
-
curl -L -o auth.interface.ts https://huggingface.co/spaces/majemaai/mj-learn/resolve/main/src/app/core/interfaces/auth.interface.ts
440 Bytes
| /** | |
| * Interface for user authentication credentials | |
| */ | |
| export interface LoginCredentials { | |
| username: string; | |
| password: string; | |
| } | |
| /** | |
| * Interface for authentication response | |
| */ | |
| export interface AuthResponse { | |
| success: boolean; | |
| message: string; | |
| user?: { | |
| id: string; | |
| username: string; | |
| email: string; | |
| }; | |
| } | |
| /** | |
| * Interface for error response | |
| */ | |
| export interface AuthError { | |
| message: string; | |
| status: number; | |
| } | |