ERP-node/frontend/types/auth.ts

25 lines
379 B
TypeScript

/**
* 인증 관련 타입 정의
*/
export interface LoginFormData {
userId: string;
password: string;
}
export interface LoginResponse {
success: boolean;
message?: string;
data?: {
token?: string;
userInfo?: any;
firstMenuPath?: string | null;
};
errorCode?: string;
}
export interface AuthStatus {
isLoggedIn: boolean;
isAdmin?: boolean;
}