import { Polar } from "@polar-sh/sdk";
const polar = new Polar({
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
});
async function run() {
const result = await polar.organizations.list({});
for await (const page of result) {
// Handle the page
console.log(page);
}
}
run();