Skip to content

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

427 B
Raw Blame
/** Checkout uses the account session installed by the validated owner connection flow. */
export async function getAccessToken(): Promise<string | null> {
  // Dynamic import: the portal session module registers Supabase auth listeners
  // and would otherwise sit on the startup path of every build.
  const { getPortalSaasToken } =
    await import("@editor/portal/auth/portalSaasSession");
  return getPortalSaasToken();
}