Remove Supabase integration
This commit is contained in:
@@ -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);
|
||||
@@ -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[]> {
|
||||
|
||||
@@ -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?: {
|
||||
|
||||
Reference in New Issue
Block a user