@umituz/web-hono 1.12.0 → 1.13.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/auth.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-hono",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "API backend platform for Cloudflare Workers + Neon Postgres: createApi skeleton + error envelope layer, full-CRUD resource factory (opt-in create/remove, list params), schema→client type bridge (ClientRow), apiFetch/apiWrite client, reactive fetch-backed store (+React hooks), better-auth server integration (tables/getter/mount/session helpers), weak-compare If-None-Match matcher (matchesEtag), and db lifecycle scripts (reset / snapshot / seed)",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/auth.ts CHANGED
@@ -110,7 +110,11 @@ function initAuth(env: AuthEnv, opts: AuthOptions<AuthEnv>) {
110
110
  enabled: true,
111
111
  sendResetPassword: async (data) => {
112
112
  const send =
113
- opts.sendResetPassword ?? (({ user, url }) => console.log(`[password-reset] ${user.email} ${url}`));
113
+ opts.sendResetPassword ??
114
+ (({ user, url, token }) => {
115
+ const link = `${new URL(url).origin}/reset-password?token=${token}`;
116
+ console.log(`[password-reset] ${user.email} ${link}`);
117
+ });
114
118
  await send({ user: data.user, url: data.url, token: data.token });
115
119
  },
116
120
  onPasswordReset: async ({ user }) => {