import type { UserRole } from './enums';

export interface JwtPayload {
  sub: string;
  clubId: string;
  role: UserRole;
  iat?: number;
  exp?: number;
}

export interface LoginRequest {
  phone: string;
  password: string;
}

export interface LoginResponse {
  accessToken: string;
  refreshToken: string;
  user: {
    id: string;
    firstName: string;
    lastName: string;
    role: UserRole;
    clubId: string;
  };
}

export interface RefreshTokenRequest {
  refreshToken: string;
}

export interface RefreshTokenResponse {
  accessToken: string;
}
