LOADING...
(async function() { await new Promise(resolve => setTimeout(resolve, 1500)) const mod = await import("https://esm.sh/@supabase/supabase-js@2") const { createClient } = mod const supabase = createClient( "https://cdaunkqzwkzadivvgogz.supabase.co", "sb_publishable_Q0OqmR04CaKEF_IqleJ1BQ_aHrnUv1f" ) const { data: { session } } = await supabase.auth.getSession() if (!session?.user?.email) { window.location.href = "/access" return } const res = await fetch("https://hook.eu1.make.com/do9qlydxwjc45794p5yu744qkqjysqbl", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email: session.user.email }) }) const data = await res.json() if (data?.license_url?.startsWith("http")) { window.location.href = data.license_url } else { window.location.href = "/account" } })()