© 2026 Hedgehog Software, LLC
const { error } = await supabase.auth.signInWithOAuth({ provider, options: { redirectTo: `${window.location.origin}/auth/callback`, }, });
export default function AuthCallback() { const router = useRouter(); const cookies = useCookies(); useEffect(() => { const handleAuthCallback = async () => { try { // Get the session from the URL hash const { data, error } = await supabase.auth.getSession();
supabase.auth.exchangeCodeForSession(String(code))