Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.discovr.media/llms.txt

Use this file to discover all available pages before exploring further.

Opens an authentication popup in the browser. The user enters credentials and returns to your app with a refresh token. Best for web applications.

Returns

SignInResult — An object containing refreshToken, publicId, and expiresAt (90-day expiry timestamp).

Example

const client = new DiscovrClient("your-client-id");
const result = await client.signInWithPopup();
console.log("Signed in, refresh token:", result.refreshToken);