@classflow-api/identity-client
v0.1.1
Published
Official TypeScript client for ClassFlow Identity — accounts, teacher / parent profiles, child relationships and invite flows for the universal scheduling engine.
Readme
Install
npm install @classflow-api/identity-clientUsage
import { createHttpIdentityClient } from '@classflow-api/identity-client';
const identity = createHttpIdentityClient({
baseUrl: 'https://api.classflow.example',
sessionToken: 'eyJ...',
organizationId: 'org_123',
});
const me = await identity.accounts.me();
const children = await identity.children.mine();
const invite = await identity.invites.issue({
intendedRole: 'teacher',
hintEmail: '[email protected]',
});