Files
ChatApp/apps/desktop/src/lib/supabase.ts
T
2026-04-18 23:11:35 +02:00

14 lines
457 B
TypeScript

import { createClient } from '@chat-app/shared/supabase';
import { env } from './env';
import { localStorageAdapter } from './storage';
export const supabase = createClient({
url: env.supabaseUrl,
anonKey: env.supabaseAnonKey,
sessionStorage: localStorageAdapter,
// We manually parse the callback URL in App.tsx because Tauri webview
// loads a fresh route rather than appending hash params to the current one.
detectSessionInUrl: false,
});