/**
 * Configuração da API
 * Frontend chama Supabase diretamente
 */

export const SUPABASE_URL = "https://yuanqfswhberkoevtmfr.supabase.co";
export const SUPABASE_ANON_KEY =
  "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl1YW5xZnN3aGJlcmtvZXZ0bWZyIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTQ5NTQzNjksImV4cCI6MjA3MDUzMDM2OX0.g8Fm4XAvtX46zifBZnYVH4tVuQkqUH6Ia9CXQj4DztQ";

// URL base do app
export const APP_URL = "https://mediconnectbrasil.app";

export const API_CONFIG = {
  // Base URLs do Supabase
  SUPABASE_URL,
  SUPABASE_ANON_KEY,
  AUTH_URL: `${SUPABASE_URL}/auth/v1`,
  REST_URL: `${SUPABASE_URL}/rest/v1`,
  FUNCTIONS_URL: `${SUPABASE_URL}/functions/v1`,

  // URL base do app
  APP_URL,

  // Timeout padrão (30 segundos)
  TIMEOUT: 30000,

  // Storage keys
  STORAGE_KEYS: {
    ACCESS_TOKEN: "mediconnect_access_token",
    REFRESH_TOKEN: "mediconnect_refresh_token",
    USER: "mediconnect_user",
  },
} as const;
