@theholocron/holocron-plugin-clerk 3.0.0 → 3.0.2
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/dist/index.mjs +0 -25
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -10,31 +10,6 @@ const resolveToken = createResolveToken({
|
|
|
10
10
|
});
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/capabilities/auth.ts
|
|
13
|
-
/**
|
|
14
|
-
* `auth` capability for Clerk.
|
|
15
|
-
*
|
|
16
|
-
* Ported from rando-id/rando.id `adapters/clerk-cli.ts`, swapped from
|
|
17
|
-
* shell-out (`npx clerk@latest api ...`) to direct REST against
|
|
18
|
-
* api.clerk.com/v1.
|
|
19
|
-
*
|
|
20
|
-
* Surface mirrors the Rando shape:
|
|
21
|
-
*
|
|
22
|
-
* - `whoami` — `GET /users/count`. Cheap reachability probe; the user
|
|
23
|
-
* count doubles as a sanity signal for the operator.
|
|
24
|
-
* - `ensureWebhookApp` — `POST /webhooks/svix`. Idempotent — if a Svix
|
|
25
|
-
* app already exists, the API returns an error containing "already";
|
|
26
|
-
* we suppress it and return `{ alreadyExists: true }`.
|
|
27
|
-
* - `getWebhookDashboardUrl` — `POST /webhooks/svix_url`. Returns a
|
|
28
|
-
* one-time admin login URL to Svix's dashboard so the operator can
|
|
29
|
-
* finish endpoint config there.
|
|
30
|
-
* - `createUser` — `POST /users`. Used for seeding test users into
|
|
31
|
-
* staging without touching the dashboard.
|
|
32
|
-
* - `describe` — declares the runtime env keys a Clerk-using app needs.
|
|
33
|
-
*
|
|
34
|
-
* The configured secret key (`sk_test_*` vs `sk_live_*`) decides which
|
|
35
|
-
* Clerk instance (Development vs Production) every call hits — there's
|
|
36
|
-
* no per-call instance switch.
|
|
37
|
-
*/
|
|
38
13
|
var ClerkAuth = class {
|
|
39
14
|
client;
|
|
40
15
|
key = "auth";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-clerk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Holocron plugin for Clerk. Implements the auth capability against Clerk's Backend REST API.",
|
|
5
5
|
"homepage": "https://github.com/theholocron/holocron/tree/main/packages/holocron-plugin-clerk#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/holocron/issues",
|
|
@@ -22,25 +22,25 @@
|
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@theholocron/clerk-client": "^1.3.3",
|
|
25
|
-
"@theholocron/cli": "3.0.
|
|
25
|
+
"@theholocron/cli": "3.0.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@theholocron/clerk-client": "^1.3.3",
|
|
29
|
-
"@theholocron/eslint-config": "^7.
|
|
29
|
+
"@theholocron/eslint-config": "^7.6.0",
|
|
30
30
|
"@theholocron/tsconfig": "^7.5.0",
|
|
31
31
|
"@theholocron/tsdown-config": "^7.5.0",
|
|
32
32
|
"@theholocron/vitest-config": "^7.5.0",
|
|
33
33
|
"@types/node": "^26",
|
|
34
34
|
"@vitest/coverage-v8": "^4.1.10",
|
|
35
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
36
|
-
"eslint": "^10.
|
|
35
|
+
"@vitest/eslint-plugin": "^1.6.24",
|
|
36
|
+
"eslint": "^10.8.0",
|
|
37
37
|
"eslint-plugin-n": "^18.2.2",
|
|
38
38
|
"globals": "^17.7.0",
|
|
39
|
-
"tsdown": "^0.22.
|
|
39
|
+
"tsdown": "^0.22.14",
|
|
40
40
|
"tsx": "4.23.1",
|
|
41
41
|
"typescript": "^5.9.3",
|
|
42
42
|
"vitest": "^4.1.10",
|
|
43
|
-
"@theholocron/cli": "3.0.
|
|
43
|
+
"@theholocron/cli": "3.0.2"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|