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.

After the user is redirected back to your callback URL (from signInWithWebAuth), call this to extract and store the refresh token from the URL parameters.

Returns

SignInResult \| null — An object with refreshToken, publicId, and expiresAt if successful. null if no token was found in the URL.

Example

// On your callback page after redirect:
const client = new DiscovrClient("your-client-id");
const result = client.handleRedirectResult();
if (result) {
  console.log("Signed in! Refresh token:", result.refreshToken);
  // Proceed to profile selection
} else {
  console.log("No token found in URL");
}