@user-hub/auth 0.4.2 → 0.5.0

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 CHANGED
@@ -32,7 +32,7 @@ The hub decides how long a scan keeps someone signed in: 1, 2 or 4 hours, or unt
32
32
  bun add @user-hub/auth
33
33
  ```
34
34
 
35
- Using a coding agent? The package ships an agent skill. Add it to your agents with:
35
+ Using a coding agent? The package ships the `user-hub-auth` skill (and `user-hub` ships `user-hub-cli`, for the commands). Add them to your agents with:
36
36
 
37
37
  ```sh
38
38
  bunx skills experimental_sync
@@ -40,30 +40,16 @@ bunx skills experimental_sync
40
40
 
41
41
  ### 2. Sign in and register your app
42
42
 
43
- Ask the hub's admin for its URL and an account. Then, from your app's folder (with `@user-hub/auth` installed: `bunx hub-user` runs the installed CLI), sign in once:
43
+ Register the app with the [`user-hub`](https://www.npmjs.com/package/user-hub) CLI. Ask the hub's admin for its URL and an account, then from your app's folder:
44
44
 
45
45
  ```sh
46
- bunx hub-user login --hub https://hub.example.com
46
+ bun add -d user-hub
47
+ bunx user-hub login --hub https://hub.example.com
48
+ bunx user-hub events list
49
+ bunx user-hub apps register --event spring-workshop --name "Your App" --new --prod https://your-app.com --dev http://localhost:3000
47
50
  ```
48
51
 
49
- Paste an API key you created on the hub's **Account** page (`<hub>/account`; it shows as stars), or press Enter to sign in with your browser: it prints a link, you approve the request in the hub, and the CLI makes its own API key. Either way it checks the key with the hub and saves `HUB_URL` and `HUB_API_KEY` to the folder's `.env.local`, readable only by you, keeping the file's other lines. Keep `.env.local` gitignored. Without a terminal (scripts, coding agents), `bunx hub-user login --browser` prints the link for a person to approve, and `bunx hub-user login --api-key-stdin` reads a key from stdin. `bunx hub-user whoami` shows which account the folder is signed in as. Keys do not expire: delete one on `<hub>/account` to revoke it. Outside a folder with the package installed, run it as `bunx -p @user-hub/auth hub-user …`, never a bare `bunx hub-user`: there it fetches an npm package called `hub-user`, which is not ours. Hubs with accounts need `@user-hub/auth` 0.3 or newer. Upgrading from 0.2? Run `bun add @user-hub/auth@latest` (a `^0.2` range never installs 0.3), then `bunx hub-user login`; `HUB_ADMIN_PASSWORD` is no longer used, so delete it from your env files.
50
-
51
- A hub runs many **events** (workshops); people, apps and the schedule each belong to one. Find the event your app is for by its slug, or create one (its time zone defaults to your machine's; pass `--time-zone Europe/Berlin` to pick another):
52
-
53
- ```sh
54
- bunx hub-user events
55
- bunx hub-user events create --name "Spring Workshop"
56
- ```
57
-
58
- Hubs with events need `@user-hub/auth` 0.4 or newer. Upgrading from 0.3? Run `bun add @user-hub/auth@latest` first (a `^0.3` range never installs 0.4); no app code changes.
59
-
60
- Then register the app in that event (`bunx` reads `.env` and `.env.local` automatically; if `HUB_URL` and `HUB_API_KEY` live in a secret manager, run it through that):
61
-
62
- ```sh
63
- bunx hub-user register --event spring-workshop --name "Your App" --new --prod https://your-app.com --dev http://localhost:3000
64
- ```
65
-
66
- `--event` is needed on every run; set `HUB_EVENT=<slug>` in `.env.local` to leave it out. An unknown slug exits with code 5. It prints your **app key** (made from the event's slug and the name) and the values to set. Not deployed yet? Leave out `--prod`: you can develop, and badge scans start reaching the app once you add it. Run it again with the same `--event` and `--name` to update the URLs; a URL left out keeps the registered one. `--new` refuses to touch an app that already has that name, so you never take over someone else's; leave it out when updating your own app later. New apps are **listed** in the badge app list by default: when the hub shows the app list instead of one live app, listed apps with a production URL appear in it. Pass `--unlisted` to keep one out of it (it can still be scheduled or forced live), or `--listed` to show it again. Pass neither on an update and the hub's current setting stays; the output shows it. Any hub account can update any app, so register only under your app's own name. (The same can be done under **Apps** in the hub, with the values under **Setup**.) Quote a value with spaces (`--name "Summer Camp"`): an unexpected extra word stops any `hub-user` command with exit code 1 before it sends anything. When you pass `--hub`, the commands the CLI suggests next keep it.
52
+ `login` saves `HUB_URL` and `HUB_API_KEY` to the folder's `.env.local` (keep it gitignored). A hub runs many **events** (workshops), and an app belongs to one. `apps register` prints your **app key** (made from the event's slug and the name) and the values to set. Not deployed yet? Leave out `--prod`; add it later the same way. `--new` refuses a name another app already has. See `bunx user-hub --help` for everything else, including the event's people. (The same can be done under **Apps** in the hub, with the values under **Setup**.) A new app made with `bun create user-hub@latest` does all of this with `bun run setup`.
67
53
 
68
54
  ### 3. Set the values
69
55
 
@@ -127,7 +113,7 @@ export const myVotes = query({
127
113
  Run your dev server as usual and open it. With no token yet, it sends you to the hub, where you pick who to be (sign in to the hub with your account once per browser), and brings you back signed in. You stay signed in across reloads and restarts until that person's expiration in the hub (4 hours unless set otherwise).
128
114
 
129
115
  - **Switch person:** open `<hub>/open/<your-app-key>`.
130
- - **Different port:** run `hub-user register` again (same `--event` and `--name`) with the new `--dev` URL. The hub only sends tokens to registered URLs.
116
+ - **Different port:** run `user-hub apps register` again (same `--event` and `--name`) with the new `--dev` URL. The hub only sends tokens to registered URLs.
131
117
  - **Production:** someone without a token sees "Scan your badge to sign in". Pass `signedOut={…}` to `<HubSignedIn>` to style that screen.
132
118
 
133
119
  ## Sign out
@@ -193,12 +179,6 @@ Apps without Convex use `HubAuthProvider` and `HubSignedIn` from `@user-hub/auth
193
179
  | | `useHubUser()`, `useHubToken()`, `useHubSignOut()` | The person (or null), the current token (or null; it changes as it is refreshed), a sign-out function. Also from `/convex-react` |
194
180
  | | `useHubSession()` | `undefined` while loading, `null` when signed out, otherwise `{ token, user }`; most apps need only `useHubUser()` or `<HubSignedIn>`. Also from `/convex-react` |
195
181
  | `@user-hub/auth/server` | `verifyHubToken(requestOrToken, { app })` | Checks a token anywhere else |
196
- | CLI | `hub-user login [--hub <url>] [--browser\|--api-key-stdin]` | Signs the folder in: an API key pasted (hidden) or from stdin, or a browser sign-in it prints a link for (it never opens a browser). Saves `HUB_URL` and `HUB_API_KEY` to `./.env.local` (mode 600) |
197
- | | `hub-user whoami [--json]` | The account `HUB_API_KEY` belongs to; exit code 4 when not signed in |
198
- | | `hub-user events [--json]` | The hub's events, newest first: slug, name, time zone, ended ones marked. `--json` prints the array of `{ slug, name, status, timeZone }` |
199
- | | `hub-user events create --name <name> [--time-zone <zone>] [--json]` | Creates an event (the IANA time zone defaults to this machine's); exit code 3 if its slug is taken. `--json` prints the created event |
200
- | | `hub-user register --event <slug> --name <name> [--prod <url>] [--dev <url>] [--listed\|--unlisted] [--new] [--hub <url>] [--json]` | Registers or updates the app in an event (`--event` falls back to `HUB_EVENT`; exit code 5 when no event has that slug; a new app needs at least one URL; an update may leave both out); `--new` only creates, exit code 3 if the name is taken (also without `--new` when the key belongs to an app of another event); `--json` includes `event: { slug, name }`; `--listed`/`--unlisted` set whether the app shows in the badge app list once it has a production URL (new apps default to listed, omitted keeps the hub's setting) |
201
- | | Exit codes | 0 done, 1 error (an unexpected extra word, such as an unquoted `--name Summer Camp`, stops before any request), 3 name taken (`register`, `events create`), 4 not signed in (run `hub-user login`), 5 unknown event (`register`) |
202
182
 
203
183
  ## Developing this package
204
184
 
@@ -1,7 +1,7 @@
1
1
  // src/react.tsx
2
2
  import { useMemo as useMemo2 } from "react";
3
3
 
4
- // src/session.tsx
4
+ // src/internal/session.tsx
5
5
  import {
6
6
  createContext,
7
7
  useCallback,
@@ -13,7 +13,14 @@ import {
13
13
  useSyncExternalStore
14
14
  } from "react";
15
15
 
16
- // src/token.ts
16
+ // src/internal/clock.ts
17
+ var clockSkewMs = 0;
18
+ var hubNow = () => Date.now() + clockSkewMs;
19
+ function learnHubClock(issuedAt) {
20
+ clockSkewMs = issuedAt - Date.now();
21
+ }
22
+
23
+ // src/internal/token.ts
17
24
  function decodeSegment(segment) {
18
25
  const base64 = segment.replace(/-/g, "+").replace(/_/g, "/");
19
26
  return JSON.parse(atob(base64.padEnd(Math.ceil(base64.length / 4) * 4, "=")));
@@ -27,7 +34,7 @@ function payloadOf(token) {
27
34
  }
28
35
  function readClaims(token) {
29
36
  const payload = payloadOf(token);
30
- if (typeof payload?.sub !== "string" || typeof payload.exp !== "number" || typeof payload.aud !== "string") {
37
+ if (typeof payload?.sub !== "string" || typeof payload.exp !== "number" || typeof payload.aud !== "string" || typeof payload.auth_time !== "number") {
31
38
  return null;
32
39
  }
33
40
  return {
@@ -45,7 +52,7 @@ function sessionFor(token, app, now = Date.now()) {
45
52
  }
46
53
  function refreshInfo(token) {
47
54
  const payload = payloadOf(token);
48
- if (typeof payload?.iss !== "string" || typeof payload.iat !== "number" || typeof payload.auth_time !== "number") {
55
+ if (typeof payload?.iss !== "string" || typeof payload.iat !== "number") {
49
56
  return null;
50
57
  }
51
58
  return {
@@ -55,66 +62,14 @@ function refreshInfo(token) {
55
62
  }
56
63
  function sessionKeyOf(token) {
57
64
  const payload = payloadOf(token);
58
- if (typeof payload?.sub !== "string") {
65
+ if (typeof payload?.sub !== "string" || typeof payload.auth_time !== "number") {
59
66
  return null;
60
67
  }
61
- return [
62
- payload.iss,
63
- payload.aud,
64
- payload.sub,
65
- payload.auth_time ?? payload.iat
66
- ].join("|");
68
+ return [payload.iss, payload.aud, payload.sub, payload.auth_time].join("|");
67
69
  }
68
70
 
69
- // src/session.tsx
70
- import { jsx } from "react/jsx-runtime";
71
- var MAX_TIMEOUT_MS = 2 ** 31 - 1;
72
- var REFRESH_AFTER_MS = 5 * 60 * 1000;
73
- var REFRESH_BEFORE_EXPIRY_MS = 60 * 1000;
74
- var RETRY_MS = 30 * 1000;
71
+ // src/internal/refresh.ts
75
72
  var REQUEST_TIMEOUT_MS = 10 * 1000;
76
- var FRESH_MS = 5 * 1000;
77
- var clockSkewMs = 0;
78
- var hubNow = () => Date.now() + clockSkewMs;
79
- var LOCAL_HOST = /^(localhost|127(\.\d{1,3}){3}|10(\.\d{1,3}){3}|192\.168(\.\d{1,3}){2}|172\.(1[6-9]|2\d|3[01])(\.\d{1,3}){2}|\[::1\]|[a-z0-9-]+\.local)$/i;
80
- var HubContext = createContext({
81
- session: undefined,
82
- redirecting: false,
83
- signOut: () => {},
84
- suspend: () => {},
85
- currentToken: () => null,
86
- refresh: async () => null
87
- });
88
- var useHubState = () => useContext(HubContext);
89
- var storageKey = (app) => `user-hub-token:${app}`;
90
- function readStorage(key) {
91
- try {
92
- return window.localStorage.getItem(key);
93
- } catch {
94
- return null;
95
- }
96
- }
97
- function writeStorage(key, token) {
98
- try {
99
- if (token)
100
- window.localStorage.setItem(key, token);
101
- else
102
- window.localStorage.removeItem(key);
103
- } catch {}
104
- }
105
- function tokenInUrl() {
106
- return new URLSearchParams(window.location.hash.slice(1)).get("token");
107
- }
108
- function takeTokenFromUrl() {
109
- const hash = new URLSearchParams(window.location.hash.slice(1));
110
- const token = hash.get("token");
111
- if (token) {
112
- hash.delete("token");
113
- const rest = hash.toString();
114
- window.history.replaceState(window.history.state, "", `${window.location.pathname}${window.location.search}${rest ? `#${rest}` : ""}`);
115
- }
116
- return token;
117
- }
118
73
  function originOf(url) {
119
74
  try {
120
75
  return new URL(url).origin;
@@ -124,8 +79,12 @@ function originOf(url) {
124
79
  }
125
80
  function refreshUrlFor(token, app, hubUrl) {
126
81
  const info = readClaims(token)?.app === app ? refreshInfo(token) : null;
127
- const hub = hubUrl && originOf(hubUrl);
128
- return info && (!hub || originOf(info.url) === hub) ? info.url : null;
82
+ if (!info)
83
+ return null;
84
+ if (hubUrl === undefined || hubUrl === "")
85
+ return info.url;
86
+ const hub = originOf(hubUrl);
87
+ return hub && originOf(info.url) === hub ? info.url : null;
129
88
  }
130
89
  async function exchange(token, app, hubUrl) {
131
90
  const url = refreshUrlFor(token, app, hubUrl);
@@ -149,7 +108,7 @@ async function exchange(token, app, hubUrl) {
149
108
  }
150
109
  const issuedAt = refreshInfo(next)?.issuedAt;
151
110
  if (issuedAt) {
152
- clockSkewMs = issuedAt - Date.now();
111
+ learnHubClock(issuedAt);
153
112
  }
154
113
  const session = sessionFor(next, app, hubNow());
155
114
  return session ? { status: "refreshed", session } : { status: "failed" };
@@ -159,6 +118,41 @@ async function exchange(token, app, hubUrl) {
159
118
  clearTimeout(timeout);
160
119
  }
161
120
  }
121
+
122
+ // src/internal/storage.ts
123
+ var storageKey = (app) => `user-hub-token:${app}`;
124
+ function readStorage(key) {
125
+ try {
126
+ return window.localStorage.getItem(key);
127
+ } catch {
128
+ return null;
129
+ }
130
+ }
131
+ function writeStorage(key, token) {
132
+ try {
133
+ if (token)
134
+ window.localStorage.setItem(key, token);
135
+ else
136
+ window.localStorage.removeItem(key);
137
+ } catch {}
138
+ }
139
+
140
+ // src/internal/url-token.ts
141
+ function tokenInUrl() {
142
+ return new URLSearchParams(window.location.hash.slice(1)).get("token");
143
+ }
144
+ function takeTokenFromUrl() {
145
+ const hash = new URLSearchParams(window.location.hash.slice(1));
146
+ const token = hash.get("token");
147
+ if (token) {
148
+ hash.delete("token");
149
+ const rest = hash.toString();
150
+ window.history.replaceState(window.history.state, "", `${window.location.pathname}${window.location.search}${rest ? `#${rest}` : ""}`);
151
+ }
152
+ return token;
153
+ }
154
+
155
+ // src/internal/store.ts
162
156
  var LOADING = { session: undefined, stalled: null };
163
157
  var loadingState = () => LOADING;
164
158
  function sameSession(a, b) {
@@ -192,6 +186,24 @@ function createSessionStore(first) {
192
186
  }
193
187
  };
194
188
  }
189
+
190
+ // src/internal/session.tsx
191
+ import { jsx } from "react/jsx-runtime";
192
+ var MAX_TIMEOUT_MS = 2 ** 31 - 1;
193
+ var REFRESH_AFTER_MS = 5 * 60 * 1000;
194
+ var REFRESH_BEFORE_EXPIRY_MS = 60 * 1000;
195
+ var RETRY_MS = 30 * 1000;
196
+ var FRESH_MS = 5 * 1000;
197
+ var LOCAL_HOST = /^(localhost|127(\.\d{1,3}){3}|10(\.\d{1,3}){3}|192\.168(\.\d{1,3}){2}|172\.(1[6-9]|2\d|3[01])(\.\d{1,3}){2}|\[::1\]|[a-z0-9-]+\.local)$/i;
198
+ var HubContext = createContext({
199
+ session: undefined,
200
+ redirecting: false,
201
+ signOut: () => {},
202
+ suspend: () => {},
203
+ currentToken: () => null,
204
+ refresh: async () => null
205
+ });
206
+ var useHubState = () => useContext(HubContext);
195
207
  function HubSessionProvider({
196
208
  app,
197
209
  hubUrl,
@@ -1,7 +1,7 @@
1
1
  import { type ConvexReactClient } from "convex/react";
2
- import { type HubAuthProviderProps } from "./session";
2
+ import { type HubAuthProviderProps } from "./internal/session";
3
3
  export { HubSignedIn, useHubSession, useHubSignOut, useHubToken, useHubUser, } from "./react";
4
- export type { HubRole, HubUser } from "./token";
4
+ export type { HubRole, HubUser } from "./internal/token";
5
5
  /**
6
6
  * HubAuthProvider for apps on Convex: the hub token becomes the Convex
7
7
  * identity. Use it in place of ConvexProvider, with the same client, inside
@@ -7,7 +7,7 @@ import {
7
7
  useHubSession2,
8
8
  useHubUser2,
9
9
  useHubToken2
10
- } from "./convex-bymky2mf.js";
10
+ } from "./convex-89hjtnwh.js";
11
11
 
12
12
  // src/convex-react.tsx
13
13
  import {
package/dist/convex.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Auth, AuthConfig } from "convex/server";
2
- import type { HubUser } from "./token";
3
- export type { HubRole, HubUser } from "./token";
2
+ import type { HubUser } from "./internal/token";
3
+ export type { HubRole, HubUser } from "./internal/token";
4
4
  type Provider = AuthConfig["providers"][number];
5
5
  /**
6
6
  * The Convex auth provider for hub tokens. In `convex/auth.config.ts`:
@@ -8,7 +8,7 @@ type Provider = AuthConfig["providers"][number];
8
8
  * export default { providers: [hubAuth({ app: "voting" })] } satisfies AuthConfig;
9
9
  *
10
10
  * Reads HUB_ISSUER and HUB_JWKS from the Convex deployment's environment
11
- * (`bunx hub-user register` prints both). Then `ctx.auth.getUserIdentity()`
11
+ * (`bunx user-hub apps register` prints both). Then `ctx.auth.getUserIdentity()`
12
12
  * returns the person: `subject` is their hub id, plus `name`, `team`, `role`.
13
13
  */
14
14
  export declare function hubAuth({ app }: {
package/dist/convex.js CHANGED
@@ -4,7 +4,7 @@ function hubAuth({ app }) {
4
4
  const issuer = process.env.HUB_ISSUER;
5
5
  const jwks = process.env.HUB_JWKS;
6
6
  if (!issuer || !jwks) {
7
- throw new Error("Set HUB_ISSUER and HUB_JWKS on this Convex deployment: run `bunx hub-user register`");
7
+ throw new Error("Set HUB_ISSUER and HUB_JWKS on this Convex deployment: run `bunx user-hub apps register`");
8
8
  }
9
9
  return {
10
10
  type: "customJwt",
@@ -0,0 +1,3 @@
1
+ export declare const hubNow: () => number;
2
+ export declare function learnHubClock(issuedAt: number): void;
3
+ export declare function resetHubClock(): void;
@@ -0,0 +1,11 @@
1
+ import { type HubSession } from "./token";
2
+ export declare function refreshUrlFor(token: string, app: string, hubUrl?: string): string | null;
3
+ export type Exchange = {
4
+ status: "refreshed";
5
+ session: HubSession;
6
+ } | {
7
+ status: "ended";
8
+ } | {
9
+ status: "failed";
10
+ };
11
+ export declare function exchange(token: string, app: string, hubUrl?: string): Promise<Exchange>;
@@ -1,6 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
2
  import { type HubSession } from "./token";
3
- export declare function resetHubClock(): void;
4
3
  type HubState = {
5
4
  session: HubSession | null | undefined;
6
5
  redirecting: boolean;
@@ -0,0 +1,3 @@
1
+ export declare const storageKey: (app: string) => string;
2
+ export declare function readStorage(key: string): string | null;
3
+ export declare function writeStorage(key: string, token: string | null): void;
@@ -0,0 +1,13 @@
1
+ import { type HubSession } from "./token";
2
+ export type SessionState = {
3
+ session: HubSession | null | undefined;
4
+ stalled: string | null;
5
+ };
6
+ export declare const LOADING: SessionState;
7
+ export declare const loadingState: () => SessionState;
8
+ export declare function firstState(app: string, key: string): SessionState;
9
+ export declare function createSessionStore(first: SessionState): {
10
+ get: () => SessionState;
11
+ set: (next: Partial<SessionState>) => void;
12
+ subscribe: (listener: () => void) => () => void;
13
+ };
@@ -0,0 +1,2 @@
1
+ export declare function tokenInUrl(): string | null;
2
+ export declare function takeTokenFromUrl(): string | null;
package/dist/react.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { type ReactNode } from "react";
2
- import { type HubAuthProviderProps } from "./session";
3
- import type { HubSession, HubUser } from "./token";
4
- export type { HubAuthProviderProps } from "./session";
5
- export type { HubRole, HubUser } from "./token";
2
+ import { type HubAuthProviderProps } from "./internal/session";
3
+ import type { HubSession, HubUser } from "./internal/token";
4
+ export type { HubAuthProviderProps } from "./internal/session";
5
+ export type { HubRole, HubUser } from "./internal/token";
6
6
  /**
7
7
  * Provides the signed-in person to the app. Always renders its children:
8
8
  * put it inside the root document's <body>, and use <HubSignedIn> to decide
package/dist/react.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  useHubSession2,
6
6
  useHubUser2,
7
7
  useHubToken2
8
- } from "./convex-bymky2mf.js";
8
+ } from "./convex-89hjtnwh.js";
9
9
  export {
10
10
  HubAuthProvider2 as HubAuthProvider,
11
11
  HubSignedIn2 as HubSignedIn,
package/dist/server.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { HubUser } from "./token";
2
- export type { HubRole, HubUser } from "./token";
1
+ import type { HubUser } from "./internal/token";
2
+ export type { HubRole, HubUser } from "./internal/token";
3
3
  type Options = {
4
4
  app: string;
5
5
  issuer?: string;
package/dist/server.js CHANGED
@@ -31,7 +31,7 @@ async function verifyHubToken(input, {
31
31
  jwks = process.env.HUB_JWKS
32
32
  }) {
33
33
  if (!issuer) {
34
- throw new Error("Set HUB_ISSUER: run `bunx hub-user register`");
34
+ throw new Error("Set HUB_ISSUER: run `bunx user-hub apps register`");
35
35
  }
36
36
  const token = bearer(input);
37
37
  if (!token) {
@@ -42,6 +42,9 @@ async function verifyHubToken(input, {
42
42
  audience: app,
43
43
  algorithms: ["ES256"]
44
44
  });
45
+ if (typeof payload.auth_time !== "number") {
46
+ throw new Error("Not a hub sign-in token: it has no auth_time");
47
+ }
45
48
  return {
46
49
  id: payload.sub,
47
50
  name: payload.name,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@user-hub/auth",
3
- "version": "0.4.2",
4
- "description": "Sign people in from User Hub badges: Convex auth config, React provider, server verification and the hub-user CLI.",
3
+ "version": "0.5.0",
4
+ "description": "Sign people in from User Hub badges: Convex auth config, React provider and server verification.",
5
5
  "keywords": [
6
6
  "auth",
7
7
  "badge",
@@ -10,9 +10,6 @@
10
10
  "react",
11
11
  "user-hub"
12
12
  ],
13
- "bin": {
14
- "hub-user": "./dist/cli.js"
15
- },
16
13
  "files": [
17
14
  "dist",
18
15
  "skills"
@@ -40,7 +37,7 @@
40
37
  "access": "public"
41
38
  },
42
39
  "scripts": {
43
- "build": "rm -rf dist && bun build src/convex.ts src/react.tsx src/convex-react.tsx src/server.ts src/cli.ts --outdir dist --target node --format esm --splitting --packages external && tsc -p tsconfig.build.json && chmod +x dist/cli.js",
40
+ "build": "rm -rf dist && bun build src/convex.ts src/react.tsx src/convex-react.tsx src/server.ts --outdir dist --target node --format esm --splitting --packages external && tsc -p tsconfig.build.json",
44
41
  "check": "vp check",
45
42
  "fix": "vp check --fix",
46
43
  "lint": "vp lint",
@@ -49,7 +46,7 @@
49
46
  "prepublishOnly": "bun run build && bun test"
50
47
  },
51
48
  "dependencies": {
52
- "jose": "^6.2.17"
49
+ "jose": "^6.2.18"
53
50
  },
54
51
  "devDependencies": {
55
52
  "@happy-dom/global-registrator": "^21.0.4",