@contentgrowth/content-auth 0.5.4 → 0.5.5

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.
@@ -9,7 +9,7 @@ import {
9
9
  normalizeEmail,
10
10
  schema_exports,
11
11
  verifyTurnstile
12
- } from "../chunk-VZSDOPSD.js";
12
+ } from "../chunk-ZS76KFLV.js";
13
13
  import "../chunk-R5U7XKVJ.js";
14
14
  export {
15
15
  Hono,
@@ -515,10 +515,7 @@ var createAuth = (config) => {
515
515
  }
516
516
  if (isNewUser) {
517
517
  try {
518
- const result = onSignup(user2);
519
- if (result instanceof Promise) {
520
- result.catch((e) => console.error(`[ContentAuth] onSignup hook failed: ${e.message}`));
521
- }
518
+ await onSignup(user2);
522
519
  } catch (e) {
523
520
  console.error(`[ContentAuth] onSignup hook failed: ${e.message}`);
524
521
  }
@@ -527,10 +524,7 @@ var createAuth = (config) => {
527
524
  if (onSignin) {
528
525
  if (path.includes("/sign-in") || path.includes("/sign-up") || path.includes("/callback")) {
529
526
  try {
530
- const result = onSignin(user2);
531
- if (result instanceof Promise) {
532
- result.catch((e) => console.error(`[ContentAuth] onSignin hook failed: ${e.message}`));
533
- }
527
+ await onSignin(user2);
534
528
  } catch (e) {
535
529
  console.error(`[ContentAuth] onSignin hook failed: ${e.message}`);
536
530
  }
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  normalizeEmail,
10
10
  schema_exports,
11
11
  verifyTurnstile
12
- } from "./chunk-VZSDOPSD.js";
12
+ } from "./chunk-ZS76KFLV.js";
13
13
  import {
14
14
  AuthForm,
15
15
  CreateOrganizationForm,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentgrowth/content-auth",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Better Auth wrapper with UI components for Cloudflare Workers & Pages. Includes custom schema mapping, Turnstile bot protection, and email normalization.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",