@contentgrowth/content-auth 0.4.1 → 0.4.2

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-I7BMKFVZ.js";
12
+ } from "../chunk-PEQDNHFE.js";
13
13
  import "../chunk-R5U7XKVJ.js";
14
14
  export {
15
15
  Hono,
@@ -334,6 +334,8 @@ var createAuth = (config) => {
334
334
  };
335
335
  const userConfig = buildModelConfig(schemaMapping?.user);
336
336
  const sessionConfig = buildModelConfig(schemaMapping?.session);
337
+ const accountConfig = buildModelConfig(schemaMapping?.account);
338
+ const verificationConfig = buildModelConfig(schemaMapping?.verification);
337
339
  const userTableName = schemaMapping?.user?.tableName || "users";
338
340
  const userIdColumn = schemaMapping?.user?.fields?.id || "id";
339
341
  const emailConfig = rest.emailAndPassword || { enabled: true };
@@ -421,6 +423,8 @@ var createAuth = (config) => {
421
423
  // Model configs for custom table/column mapping
422
424
  ...userConfig ? { user: userConfig } : {},
423
425
  ...sessionConfig ? { session: sessionConfig } : {},
426
+ ...accountConfig ? { account: accountConfig } : {},
427
+ ...verificationConfig ? { verification: verificationConfig } : {},
424
428
  // Merge content-auth hooks with user hooks
425
429
  hooks: contentAuthHooks,
426
430
  ...otherOptions
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  normalizeEmail,
10
10
  schema_exports,
11
11
  verifyTurnstile
12
- } from "./chunk-I7BMKFVZ.js";
12
+ } from "./chunk-PEQDNHFE.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.4.1",
3
+ "version": "0.4.2",
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",