Remove Supabase integration

This commit is contained in:
gpt-engineer-app[bot]
2025-10-10 22:43:05 +00:00
parent 15babfa801
commit ef888052e2
3 changed files with 4 additions and 14 deletions

View File

@@ -1,6 +0,0 @@
import { createClient } from '@supabase/supabase-js';
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL || '';
const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY || '';
export const supabase = createClient(supabaseUrl, supabaseAnonKey);

View File

@@ -1,5 +1,3 @@
import { supabase } from '@/lib/supabase';
const API_BASE_URL = 'https://karibeo.lesoluciones.net:8443/api';
export interface Review {
@@ -42,8 +40,8 @@ export interface ReviewStats {
class ReviewService {
private async getAuthToken(): Promise<string | null> {
const { data: { session } } = await supabase.auth.getSession();
return session?.access_token || null;
// Get token from localStorage or your preferred auth method
return localStorage.getItem('auth_token');
}
async getReviews(itemId?: string): Promise<Review[]> {

View File

@@ -1,5 +1,3 @@
import { supabase } from '@/lib/supabase';
const API_BASE_URL = 'https://karibeo.lesoluciones.net:8443/api';
export interface TourismOffer {
@@ -50,8 +48,8 @@ export interface TourBooking {
class TourismService {
private async getAuthToken(): Promise<string | null> {
const { data: { session } } = await supabase.auth.getSession();
return session?.access_token || null;
// Get token from localStorage or your preferred auth method
return localStorage.getItem('auth_token');
}
async getTourismOffers(filters?: {