@vaiftech/client 1.5.5 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,26 +17,13 @@ yarn add @vaiftech/client
|
|
|
17
17
|
```typescript
|
|
18
18
|
import { createVaifClient } from '@vaiftech/client';
|
|
19
19
|
|
|
20
|
-
// For end-user apps (project-scoped auth → project_users table)
|
|
21
20
|
const vaif = createVaifClient({
|
|
22
21
|
baseUrl: 'https://api.vaif.studio',
|
|
23
22
|
projectId: 'your-project-id',
|
|
24
23
|
apiKey: 'vaif_pk_xxx',
|
|
25
24
|
});
|
|
26
|
-
|
|
27
|
-
// For platform/admin apps (developer auth → users table)
|
|
28
|
-
const vaif = createVaifClient({
|
|
29
|
-
baseUrl: 'https://api.vaif.studio',
|
|
30
|
-
accessToken: 'jwt_token_here',
|
|
31
|
-
});
|
|
32
25
|
```
|
|
33
26
|
|
|
34
|
-
### Project-Scoped Auth
|
|
35
|
-
|
|
36
|
-
When `projectId` is set, all auth operations (signup, login, etc.) are scoped to that project's `project_users` table. This is the correct mode for apps built on VAIF Studio where end-users sign up for your app, not for the VAIF platform itself.
|
|
37
|
-
|
|
38
|
-
Without `projectId`, auth operations target the platform `users` table (for VAIF Studio dashboard/admin use).
|
|
39
|
-
|
|
40
27
|
## Modules
|
|
41
28
|
|
|
42
29
|
The client provides access to the following modules:
|
|
@@ -62,7 +49,6 @@ The client provides access to the following modules:
|
|
|
62
49
|
| `vaif.templates` | Project templates |
|
|
63
50
|
| `vaif.oauth` | OAuth provider configuration |
|
|
64
51
|
| `vaif.docs` | Documentation management |
|
|
65
|
-
| `vaif.admin` | Admin operations |
|
|
66
52
|
|
|
67
53
|
## Authentication
|
|
68
54
|
|