@theholocron/holocron-plugin-clerk 5.0.0-alpha.270 → 5.0.0-alpha.271

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.d.mts CHANGED
@@ -1,6 +1,8 @@
1
- import { Auth, AuthDescription, AuthError, AuthEvent, AuthIdentity, AuthUser, CreateAuthUserInput, ParseWebhookInput, ResolveTokenInput, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess, WebhookDashboardInfo } from "@theholocron/cli";
1
+ import { Auth, AuthDescription, AuthError, AuthEvent, AuthIdentity, AuthUser, CreateAuthUserInput, ParseWebhookInput, PluginToken, ResolveTokenInput, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess, WebhookDashboardInfo } from "@theholocron/cli";
2
2
  import { ClerkClient, ClerkClientOptions, createClerkClient } from "@theholocron/clerk-client";
3
- export declare const resolveToken: (input?: ResolveTokenInput) => string;
3
+ export declare const resolveToken: import("@theholocron/cli").TokenResolver;
4
+ /** Every token this plugin takes, for `holocron doctor tokens`. */
5
+ export declare const tokens: PluginToken[];
4
6
  type ClerkAuthOptions = Record<string, never>;
5
7
  export declare class ClerkAuth implements Auth {
6
8
  private readonly client;
package/dist/index.mjs CHANGED
@@ -9,6 +9,8 @@ const resolveToken = createResolveToken({
9
9
  keyringService: "clerk",
10
10
  errorMessage: "no Clerk secret key found. Pass --token <KEY>, set HOLOCRON_CLERK_SECRET_KEY / CLERK_SECRET_KEY, or run: holocron auth set clerk <KEY>"
11
11
  });
12
+ /** Every token this plugin takes, for `holocron doctor tokens`. */
13
+ const tokens = [resolveToken.token];
12
14
  // src/capabilities/auth.ts
13
15
  var ClerkAuth = class {
14
16
  client;
@@ -206,4 +208,4 @@ function createPlugin(options = {}) {
206
208
  * (sk_test_* / sk_live_*), not the publishable key.
207
209
  */
208
210
  const AUTH_HINT = "grab your SECRET key (sk_test_* / sk_live_*) at https://dashboard.clerk.com → API Keys, then run: holocron auth set clerk <KEY>. Do NOT use the publishable key.";
209
- export { AUTH_HINT, AuthError, ClerkAuth, auth, createClerkClient, createContext, createPlugin, parseWebhook, resolveToken, verifyToken };
211
+ export { AUTH_HINT, AuthError, ClerkAuth, auth, createClerkClient, createContext, createPlugin, parseWebhook, resolveToken, tokens, verifyToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-clerk",
3
- "version": "5.0.0-alpha.270",
3
+ "version": "5.0.0-alpha.271",
4
4
  "description": "Holocron plugin for Clerk. Implements the auth capability against Clerk's Backend REST API.",
5
5
  "keywords": [
6
6
  "auth",
@@ -40,19 +40,19 @@
40
40
  "tsx": "4.23.15",
41
41
  "typescript": "^5.9.3",
42
42
  "vitest": "^5.0.5",
43
- "@theholocron/cli": "5.0.0-alpha.270",
44
43
  "@theholocron/clerk-client": "^1.58.0-alpha.2",
44
+ "@theholocron/eslint-config": "^8.9.0-alpha.3",
45
+ "@theholocron/cli": "5.0.0-alpha.271",
46
+ "@theholocron/http-client": "^1.58.0-alpha.2",
45
47
  "@theholocron/misc-utils": "^1.16.1-alpha.1",
46
48
  "@theholocron/tsconfig": "^8.9.0-alpha.3",
47
- "@theholocron/http-client": "^1.58.0-alpha.2",
48
49
  "@theholocron/tsdown-config": "^8.9.0-alpha.3",
49
- "@theholocron/vitest-config": "^8.9.0-alpha.3",
50
- "@theholocron/eslint-config": "^8.9.0-alpha.3"
50
+ "@theholocron/vitest-config": "^8.9.0-alpha.3"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@theholocron/clerk-client": "^1.43.1",
54
54
  "@theholocron/misc-utils": "^1.16.0",
55
- "@theholocron/cli": "5.0.0-alpha.270"
55
+ "@theholocron/cli": "5.0.0-alpha.271"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=22"