@cozeloop/account
CozeLoop account
Overview
This package is part of the Coze Loop monorepo and provides authentication functionality. It includes hook, store, service.
Getting Started
Installation
Add this package to your package.json:
json
{
"dependencies": {
"@cozeloop/account": "workspace:*"
}
}Then run:
bash
rush updateUsage
typescript
import { /* exported functions/components */ } from '@cozeloop/account';
// Example usage
// TODO: Add specific usage examplesFeatures
- Hook
- Store
- Service
API Reference
Exports
useUserStore, setUserInfouseSpaceStore, setSpace, PERSONAL_ENTERPRISE_ID,useLoginuseRegisteruseLoginStatususeLogoutuseCheckLoginuserServiceauthnServicespaceService
For detailed API documentation, please refer to the TypeScript definitions.
Development
This package is built with:
- TypeScript
- Modern JavaScript
- Vitest for testing
- ESLint for code quality