Appearance
Function: parseOrganizationKey()
ts
function parseOrganizationKey(organizationKey: string): OrganizationConfig;Defined in: src/data-store/index.ts:35
Parse an organization key string into slug and token.
Parameters
| Parameter | Type | Description |
|---|---|---|
organizationKey | string | Key in the format slug:token. |
Returns
OrganizationConfig
The parsed slug and tokens array.
Example
ts
const { slug, tokens } = parseOrganizationKey('matterway:abc123');
// slug === 'matterway'
// tokens === ['abc123']