Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

367 B
Raw Blame
import { supabase } from "@editor/auth/supabase";
export { redirectToLogin as handlePortalSessionRequired } from "@editor/auth/redirectToLogin";

/** Hosted billing shares the app login and must never create an instance-link session. */
export function getPortalSessionClient() {
  return supabase;
}

export const ensurePortalSessionClient = getPortalSessionClient;