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.

Switches to a different profile and mints a fresh session JWT (which starts a new recommendation snapshot). Identical to selectProfile() but semantically clearer when switching from an already-selected profile.

Parameters

NameTypeRequiredDescription
profileIdstringYesThe ID of the profile to switch to.

Returns

void — New session token minted for the new profile.

Example

// Already on profileA
await client.switchProfile(profileB.id); // Switch to profileB
// Existing page data is now stale — rebuild your UI
const newPage = await client.createPage();