@file:OptIn(SupabaseInternal::class)

package com.example.iplace.domain


import io.github.jan.supabase.annotations.SupabaseInternal
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.realtime.Realtime
import io.github.jan.supabase.storage.Storage
import io.ktor.client.plugins.websocket.WebSockets

object Constants {
    @OptIn(SupabaseInternal::class)
    val supabase = createSupabaseClient(
        supabaseUrl = "https://efcfqrvysxzbbufgymoh.supabase.co",
        supabaseKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImVmY2ZxcnZ5c3h6YmJ1Zmd5bW9oIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjkyMjc2MjksImV4cCI6MjA0NDgwMzYyOX0.46DedJ5ApZrPZJw9coNjfeKFMgdpJFJy8b3COyw8QUI"
    ) {
        install(Auth)
        install(Postgrest)
        install(Realtime)
        httpConfig {
            this.install(WebSockets)
        }
    }

}

