package com.example.tasks.components

import io.github.jan.supabase.createSupabaseClient
import io.github.jan.supabase.gotrue.Auth
import io.github.jan.supabase.postgrest.Postgrest
import io.github.jan.supabase.postgrest.PropertyConversionMethod
import io.github.jan.supabase.storage.Storage


object Constants {
    val supabase = createSupabaseClient(
        supabaseUrl = "https://cqmexntdbxfgpnfjsafm.supabase.co",
        supabaseKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNxbWV4bnRkYnhmZ3BuZmpzYWZtIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjU1NTc3NjUsImV4cCI6MjA0MTEzMzc2NX0.KoVVxzNbQN22qweOIqsu9SCLxQAqX1R69p2R5pKxrDw"
    ) {
        install(Auth)
        install(Postgrest){
            propertyConversionMethod = PropertyConversionMethod.SERIAL_NAME
        }
        install(Storage)
    }
}