The token provider used to generate authorization tokens to authenticate against the API.
This could be:
// Basic setup
import { createAudiotoolClient } from "@audiotool/nexus";
// create client
const client = await createAudiotoolClient({authorization: status});
// Connect to an online project
const document = await client.createSyncedDocument({
mode: "online",
project: "https://beta.audiotool.com/studio?project=abc123"
});
await document.start();
// Access API services
const client = await createAudiotoolClient({authorization: status});
// List projects
const projects = await client.api.projectService.listProjects({});
Create the main Audiotool client instance.
This is the primary entry point to interact with the audiotool backend.
See getLoginStatus for how to authorize the client.