@oneuid/sdk-web
v0.1.3
Published
OneUID web helpers — see https://oneuid.dev/docs for the REST API and dashboard Postman export.
Readme
@oneuid/sdk-web
Browser-oriented helpers for OneUID. Depends on @oneuid/shared for shared types and validation.
Usage
import { OneUIDClient } from '@oneuid/sdk-web';
const client = new OneUIDClient({
apiUrl: 'https://api.oneuid.dev',
tenantSlug: 'acme',
appId: 'your-client-id',
env: 'prod',
});
await client.login('[email protected]', 'password');
// Request a reset email (public client ID only — no client secret)
await client.forgotPassword('[email protected]');
// Complete reset from the token in the email link
await client.resetPassword(tokenFromEmail, 'new-password');Documentation
- REST API reference — https://oneuid.dev/docs
- Postman — Import the collection from the OneUID dashboard; it mirrors the public API docs.
License
MIT
