@voyantjs/auth-react 0.31.4 → 0.32.1

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.
Files changed (2) hide show
  1. package/README.md +11 -0
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -14,6 +14,8 @@ This package wraps the shared Voyant auth HTTP contract:
14
14
  - `/auth/organization/update-member-role`
15
15
  - `/auth/organization/remove-member`
16
16
  - `/auth/organization/cancel-invitation`
17
+ - `/auth/api-tokens`
18
+ - `/auth/api-tokens/:keyId`
17
19
 
18
20
  It provides reusable React surfaces for:
19
21
 
@@ -22,6 +24,7 @@ It provides reusable React surfaces for:
22
24
  - organization member listing
23
25
  - organization invitation listing
24
26
  - invite, cancel, remove, and role update mutations
27
+ - API token listing, creation, update, and deletion
25
28
 
26
29
  ## Single-Tenant Apps
27
30
 
@@ -34,3 +37,11 @@ Do not make workspace queries part of the base admin loading gate unless the app
34
37
  intentionally requires organization switching or team management. Apps that do
35
38
  not mount the organization routes can still use the current-user hooks without
36
39
  providing `/auth/workspace/current` or `/auth/organization/*` endpoints.
40
+
41
+ ## API Tokens
42
+
43
+ The API-token hooks call Voyant's `/auth/api-tokens` facade, not Better Auth's
44
+ raw `/auth/api-key/*` plugin routes. Mount
45
+ `handleApiTokenManagementRequest(...)` from `@voyantjs/auth/server` before
46
+ falling through to `auth.handler(request)` so the shared UI can manage
47
+ permissioned `voy_` service tokens.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/auth-react",
3
- "version": "0.31.4",
3
+ "version": "0.32.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,8 +41,8 @@
41
41
  "react": "^19.0.0",
42
42
  "react-dom": "^19.0.0",
43
43
  "zod": "^4.0.0",
44
- "@voyantjs/auth": "0.31.4",
45
- "@voyantjs/types": "0.31.4"
44
+ "@voyantjs/auth": "0.32.1",
45
+ "@voyantjs/types": "0.32.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tanstack/react-query": "^5.96.2",
@@ -53,13 +53,13 @@
53
53
  "typescript": "^6.0.2",
54
54
  "vitest": "^4.1.2",
55
55
  "zod": "^4.3.6",
56
- "@voyantjs/auth": "0.31.4",
57
- "@voyantjs/react": "0.31.4",
58
- "@voyantjs/types": "0.31.4",
56
+ "@voyantjs/auth": "0.32.1",
57
+ "@voyantjs/react": "0.32.1",
58
+ "@voyantjs/types": "0.32.1",
59
59
  "@voyantjs/voyant-typescript-config": "0.1.0"
60
60
  },
61
61
  "dependencies": {
62
- "@voyantjs/react": "0.31.4"
62
+ "@voyantjs/react": "0.32.1"
63
63
  },
64
64
  "files": [
65
65
  "dist"