@hogsend/engine 0.16.0 → 0.17.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hogsend/engine",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,14 +40,14 @@
40
40
  "svix": "^1.95.1",
41
41
  "winston": "^3.19.0",
42
42
  "zod": "^4.4.3",
43
- "@hogsend/core": "^0.16.0",
44
- "@hogsend/db": "^0.16.0",
45
- "@hogsend/email": "^0.16.0",
46
- "@hogsend/plugin-posthog": "^0.16.0",
47
- "@hogsend/plugin-resend": "^0.16.0"
43
+ "@hogsend/core": "^0.17.1",
44
+ "@hogsend/db": "^0.17.1",
45
+ "@hogsend/email": "^0.17.1",
46
+ "@hogsend/plugin-posthog": "^0.17.1",
47
+ "@hogsend/plugin-resend": "^0.17.1"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@hogsend/plugin-postmark": "^0.16.0"
50
+ "@hogsend/plugin-postmark": "^0.17.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/node": "^22.15.3",
package/src/lib/studio.ts CHANGED
@@ -88,7 +88,13 @@ export function mountStudio(app: OpenAPIHono<AppEnv>): MountStudioResult {
88
88
  });
89
89
 
90
90
  // Redirect the bare `/studio` to `/studio/` so relative/base assets resolve.
91
- app.get("/studio", (c) => c.redirect("/studio/"));
91
+ // The query string MUST survive the hop: better-auth's password-reset link
92
+ // redirects to `/studio?token=…`, and dropping the token here strands the
93
+ // user on the login card instead of the reset form.
94
+ app.get("/studio", (c) => {
95
+ const { search } = new URL(c.req.url);
96
+ return c.redirect(`/studio/${search}`);
97
+ });
92
98
 
93
99
  // Static assets (js/css/images) under /studio/*.
94
100
  app.use("/studio/*", staticHandler);