Welcome to the June 2024 release of the Anon platform. Key highlights include:

  • Runtime SDK – Managed Browser Contexts
  • Runtime SDK – Cleanup Options
  • React Native Support for iOS
  • Hosted UserPools

Runtime SDK v0.5.0

🆕 Managed Browser Contexts

Anon now handles headless browsers, eliminating the need to run Playwright or Puppeteer on your own infrastructure.

To use this feature, set the type option to "managed" in the setupAnonBrowserWithContext function:

const { browserContext, browser } = await setupAnonBrowserWithContext(
  client,
  account,
  { type: "managed", input: { }, },
);

const page = browser.contexts()[0].pages()[0];

await executeRuntimeScript({
  client,
  account,
  target: { page },
  initialUrl: "www.example.com",
  run,
});

🆕 Cleanup Options

You can indicate whether or not you want to close your page or browser context when running executeRuntimeScript. This change enables you to control whether you’d like to execute different scripts on the same page or a new one.

To use the feature, you just need to specify the cleanupOptions when running executeRuntimeScript.

const { browserContext, browser } = await setupAnonBrowserWithContext(
  client,
  account,
  { type: "managed", input: { }, },
);

const page = browser.contexts()[0].pages()[0];

await executeRuntimeScript({
  client,
  account,
  target: { page: page },
  initialUrl: "www.example.com",
  cleanupOptions: { closePage: false, closeBrowserContext: false },
  run: run,
});

🆕 React Native Support for iOS

Use Link SDK in React Native iOS applications.

View React Native documentation

🐛 Fix: iOS integration reliability

Resolved hanging logins and false positive success pages.

UserPools

🆕 Hosted UserPools

Create UserPools without external identity provider JWKS URI and generate appUserIdToken using new endpoint.