1 import { createClient } from '@supabase/supabase-js'
2 import { single } from './supabase';
3 import { supabase } from '$lib/config/config';
5 import type { User } from '$lib/data/types';
7 const client = createClient(supabase.url, supabase.key);
9 export const user = (id: string) => single<User>(client