/**
 * Types para Autenticação
 */

export interface LoginInput {
  email: string;
  password: string;
}

export interface LoginResponse {
  access_token: string;
  token_type: string;
  expires_in: number;
  refresh_token: string;
  user: {
    id: string;
    email: string;
    email_confirmed_at: string;
  };
}

export interface AuthUser {
  id: string;
  email: string;
  email_confirmed_at: string;
}

export interface RefreshTokenInput {
  refresh_token: string;
}

export interface RefreshTokenResponse {
  access_token: string;
  token_type: string;
  expires_in: number;
  refresh_token: string;
  user: {
    id: string;
    email: string;
    email_confirmed_at: string;
  };
}
