import type { UserStatus, UserRole } from '../../generated/prisma/enums';

export type SafeUser = {
  id: string;
  name: string;
  email: string;
  role: UserRole;
  status: UserStatus;
};

export type JwtPayload = {
  sub: string;
  email: string;
  role: UserRole;
};

export type AuthResponse = {
  user: SafeUser;
  redirectTo: string;
};
