better-auth 1.3.0-beta.7 → 1.3.0-beta.8
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/dist/adapters/drizzle-adapter/index.d.cts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -2
- package/dist/adapters/index.d.cts +3 -3
- package/dist/adapters/index.d.mts +3 -3
- package/dist/adapters/index.d.ts +3 -3
- package/dist/adapters/kysely-adapter/index.d.cts +2 -2
- package/dist/adapters/kysely-adapter/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.d.ts +2 -2
- package/dist/adapters/memory-adapter/index.d.cts +2 -2
- package/dist/adapters/memory-adapter/index.d.mts +2 -2
- package/dist/adapters/memory-adapter/index.d.ts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
- package/dist/adapters/prisma-adapter/index.d.cts +2 -2
- package/dist/adapters/prisma-adapter/index.d.mts +2 -2
- package/dist/adapters/prisma-adapter/index.d.ts +2 -2
- package/dist/adapters/test.d.cts +2 -2
- package/dist/adapters/test.d.mts +2 -2
- package/dist/adapters/test.d.ts +2 -2
- package/dist/api/index.cjs +24 -7
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.mjs +25 -8
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.mts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/plugins/index.d.cts +4 -4
- package/dist/client/plugins/index.d.mts +4 -4
- package/dist/client/plugins/index.d.ts +4 -4
- package/dist/client/react/index.d.cts +3 -3
- package/dist/client/react/index.d.mts +3 -3
- package/dist/client/react/index.d.ts +3 -3
- package/dist/client/solid/index.d.cts +3 -3
- package/dist/client/solid/index.d.mts +3 -3
- package/dist/client/solid/index.d.ts +3 -3
- package/dist/client/svelte/index.d.cts +3 -3
- package/dist/client/svelte/index.d.mts +3 -3
- package/dist/client/svelte/index.d.ts +3 -3
- package/dist/client/vue/index.d.cts +3 -3
- package/dist/client/vue/index.d.mts +3 -3
- package/dist/client/vue/index.d.ts +3 -3
- package/dist/cookies/index.d.cts +2 -2
- package/dist/cookies/index.d.mts +2 -2
- package/dist/cookies/index.d.ts +2 -2
- package/dist/db/index.d.cts +3 -3
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.d.ts +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/integrations/next-js.cjs +2 -2
- package/dist/integrations/next-js.d.cts +2 -2
- package/dist/integrations/next-js.d.mts +2 -2
- package/dist/integrations/next-js.d.ts +2 -2
- package/dist/integrations/next-js.mjs +2 -2
- package/dist/integrations/node.d.cts +2 -2
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/node.d.ts +2 -2
- package/dist/integrations/react-start.cjs +2 -2
- package/dist/integrations/react-start.d.cts +2 -2
- package/dist/integrations/react-start.d.mts +2 -2
- package/dist/integrations/react-start.d.ts +2 -2
- package/dist/integrations/react-start.mjs +2 -2
- package/dist/integrations/svelte-kit.cjs +1 -1
- package/dist/integrations/svelte-kit.d.cts +2 -2
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/svelte-kit.d.ts +2 -2
- package/dist/integrations/svelte-kit.mjs +1 -1
- package/dist/oauth2/index.cjs +1 -1
- package/dist/oauth2/index.d.cts +4 -4
- package/dist/oauth2/index.d.mts +4 -4
- package/dist/oauth2/index.d.ts +4 -4
- package/dist/oauth2/index.mjs +1 -1
- package/dist/plugins/admin/index.cjs +2 -2
- package/dist/plugins/admin/index.d.cts +11 -11
- package/dist/plugins/admin/index.d.mts +11 -11
- package/dist/plugins/admin/index.d.ts +11 -11
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.cjs +1 -1
- package/dist/plugins/anonymous/index.d.cts +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.d.ts +2 -2
- package/dist/plugins/anonymous/index.mjs +1 -1
- package/dist/plugins/bearer/index.cjs +1 -1
- package/dist/plugins/bearer/index.d.cts +2 -2
- package/dist/plugins/bearer/index.d.mts +2 -2
- package/dist/plugins/bearer/index.d.ts +2 -2
- package/dist/plugins/bearer/index.mjs +1 -1
- package/dist/plugins/captcha/index.d.cts +2 -2
- package/dist/plugins/captcha/index.d.mts +2 -2
- package/dist/plugins/captcha/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.cjs +1 -1
- package/dist/plugins/custom-session/index.d.cts +2 -2
- package/dist/plugins/custom-session/index.d.mts +2 -2
- package/dist/plugins/custom-session/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.mjs +1 -1
- package/dist/plugins/email-otp/index.cjs +1 -1
- package/dist/plugins/email-otp/index.d.cts +2 -2
- package/dist/plugins/email-otp/index.d.mts +2 -2
- package/dist/plugins/email-otp/index.d.ts +2 -2
- package/dist/plugins/email-otp/index.mjs +1 -1
- package/dist/plugins/generic-oauth/index.cjs +1 -1
- package/dist/plugins/generic-oauth/index.d.cts +2 -2
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/generic-oauth/index.d.ts +2 -2
- package/dist/plugins/generic-oauth/index.mjs +1 -1
- package/dist/plugins/haveibeenpwned/index.cjs +1 -1
- package/dist/plugins/haveibeenpwned/index.d.cts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.ts +2 -2
- package/dist/plugins/haveibeenpwned/index.mjs +1 -1
- package/dist/plugins/index.cjs +5 -5
- package/dist/plugins/index.d.cts +4 -4
- package/dist/plugins/index.d.mts +4 -4
- package/dist/plugins/index.d.ts +4 -4
- package/dist/plugins/index.mjs +7 -7
- package/dist/plugins/jwt/index.cjs +1 -1
- package/dist/plugins/jwt/index.d.cts +2 -2
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.d.ts +2 -2
- package/dist/plugins/jwt/index.mjs +1 -1
- package/dist/plugins/magic-link/index.cjs +1 -1
- package/dist/plugins/magic-link/index.mjs +1 -1
- package/dist/plugins/multi-session/index.cjs +1 -1
- package/dist/plugins/multi-session/index.d.cts +2 -2
- package/dist/plugins/multi-session/index.d.mts +2 -2
- package/dist/plugins/multi-session/index.d.ts +2 -2
- package/dist/plugins/multi-session/index.mjs +1 -1
- package/dist/plugins/oauth-proxy/index.cjs +1 -1
- package/dist/plugins/oauth-proxy/index.d.cts +2 -2
- package/dist/plugins/oauth-proxy/index.d.mts +2 -2
- package/dist/plugins/oauth-proxy/index.d.ts +2 -2
- package/dist/plugins/oauth-proxy/index.mjs +1 -1
- package/dist/plugins/oidc-provider/index.cjs +2 -2
- package/dist/plugins/oidc-provider/index.d.cts +2 -2
- package/dist/plugins/oidc-provider/index.d.mts +2 -2
- package/dist/plugins/oidc-provider/index.d.ts +2 -2
- package/dist/plugins/oidc-provider/index.mjs +2 -2
- package/dist/plugins/one-tap/index.cjs +1 -1
- package/dist/plugins/one-tap/index.mjs +1 -1
- package/dist/plugins/one-time-token/index.cjs +3 -3
- package/dist/plugins/one-time-token/index.d.cts +2 -2
- package/dist/plugins/one-time-token/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.d.ts +2 -2
- package/dist/plugins/one-time-token/index.mjs +3 -3
- package/dist/plugins/open-api/index.cjs +1 -1
- package/dist/plugins/open-api/index.d.cts +2 -2
- package/dist/plugins/open-api/index.d.mts +2 -2
- package/dist/plugins/open-api/index.d.ts +2 -2
- package/dist/plugins/open-api/index.mjs +1 -1
- package/dist/plugins/organization/index.cjs +2 -2
- package/dist/plugins/organization/index.d.cts +2 -2
- package/dist/plugins/organization/index.d.mts +2 -2
- package/dist/plugins/organization/index.d.ts +2 -2
- package/dist/plugins/organization/index.mjs +2 -2
- package/dist/plugins/passkey/index.cjs +1 -1
- package/dist/plugins/passkey/index.d.cts +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/plugins/passkey/index.d.ts +2 -2
- package/dist/plugins/passkey/index.mjs +1 -1
- package/dist/plugins/phone-number/index.cjs +1 -1
- package/dist/plugins/phone-number/index.d.cts +2 -2
- package/dist/plugins/phone-number/index.d.mts +2 -2
- package/dist/plugins/phone-number/index.d.ts +2 -2
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/sso/index.cjs +1 -1
- package/dist/plugins/sso/index.d.cts +2 -2
- package/dist/plugins/sso/index.d.mts +2 -2
- package/dist/plugins/sso/index.d.ts +2 -2
- package/dist/plugins/sso/index.mjs +1 -1
- package/dist/plugins/two-factor/index.cjs +1 -1
- package/dist/plugins/two-factor/index.d.cts +5 -5
- package/dist/plugins/two-factor/index.d.mts +5 -5
- package/dist/plugins/two-factor/index.d.ts +5 -5
- package/dist/plugins/two-factor/index.mjs +1 -1
- package/dist/plugins/username/index.cjs +4 -1
- package/dist/plugins/username/index.d.cts +6 -2
- package/dist/plugins/username/index.d.mts +6 -2
- package/dist/plugins/username/index.d.ts +6 -2
- package/dist/plugins/username/index.mjs +4 -1
- package/dist/shared/{better-auth.Bc-1Su7g.d.ts → better-auth.1U46rRCb.d.ts} +121 -33
- package/dist/shared/{better-auth.Y_QHVJcB.cjs → better-auth.B7DsbyxZ.cjs} +1 -1
- package/dist/shared/{better-auth.kvIPfj9F.d.mts → better-auth.BGqNvLSj.d.mts} +113 -2
- package/dist/shared/{better-auth.C6VyAxGz.mjs → better-auth.BJuT8WiU.mjs} +2 -2
- package/dist/shared/{better-auth.DcwXW4BB.d.cts → better-auth.BP35Nbhe.d.cts} +1 -1
- package/dist/shared/{better-auth.DZBS14g0.cjs → better-auth.BQ4_OHi3.cjs} +2 -2
- package/dist/shared/{better-auth.Dh9fsfY2.mjs → better-auth.BjlnHtWM.mjs} +1 -1
- package/dist/shared/{better-auth.Dde0tveQ.d.ts → better-auth.Bl6kZMTz.d.ts} +1 -1
- package/dist/shared/{better-auth.C1otFVHS.d.mts → better-auth.Bvj_fvZF.d.cts} +1 -1
- package/dist/shared/{better-auth.B2zZl7qP.cjs → better-auth.C9r4-D4D.cjs} +1 -1
- package/dist/shared/{better-auth.1M3xAdJC.d.cts → better-auth.CKaSQSiK.d.cts} +121 -33
- package/dist/shared/{better-auth.VwFr4owi.d.cts → better-auth.CZaGcPOu.d.cts} +113 -2
- package/dist/shared/{better-auth.bHQlVztX.d.ts → better-auth.CcqPcsQw.d.ts} +1 -1
- package/dist/shared/{better-auth.tST9Caqi.mjs → better-auth.CeC_YPBC.mjs} +1 -1
- package/dist/shared/{better-auth.BJa1oqpN.d.cts → better-auth.CiEL_3L9.d.mts} +1 -1
- package/dist/shared/{better-auth.BYIMqSU0.d.mts → better-auth.Cs9tnjbm.d.mts} +1 -1
- package/dist/shared/{better-auth.CQPOI-_E.mjs → better-auth.CxiUYpyi.mjs} +1 -1
- package/dist/shared/{better-auth.D9z1x8va.d.ts → better-auth.D1VhCXSa.d.ts} +113 -2
- package/dist/shared/{better-auth.D7Si_1a9.mjs → better-auth.DPYZ4lEW.mjs} +1 -1
- package/dist/shared/{better-auth.I7OjQ-oc.cjs → better-auth.DTKHr5aa.cjs} +1 -1
- package/dist/shared/{better-auth.DWRzwPcP.d.mts → better-auth.DXFEde7S.d.mts} +121 -33
- package/dist/shared/{better-auth.HT3cSIq4.cjs → better-auth.Di4b3h9T.cjs} +78 -3
- package/dist/shared/{better-auth.CJb2R19P.d.ts → better-auth.M3B56FHf.d.cts} +2 -2
- package/dist/shared/{better-auth.BjBe8STm.cjs → better-auth.YhbwFO4I.cjs} +1 -1
- package/dist/shared/{better-auth.CJ2ZGyoL.d.mts → better-auth.dkmWAMtv.d.mts} +1 -1
- package/dist/shared/{better-auth.BtyWISFt.mjs → better-auth.dm850UlW.mjs} +78 -4
- package/dist/shared/{better-auth.CpSq0H3M.d.cts → better-auth.wF952O4S.d.ts} +2 -2
- package/dist/social-providers/index.cjs +2 -1
- package/dist/social-providers/index.d.cts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/social-providers/index.d.ts +1 -1
- package/dist/social-providers/index.mjs +1 -1
- package/dist/test-utils/index.cjs +3 -3
- package/dist/test-utils/index.d.cts +117 -59
- package/dist/test-utils/index.d.mts +117 -59
- package/dist/test-utils/index.d.ts +117 -59
- package/dist/test-utils/index.mjs +3 -3
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CKaSQSiK.cjs';
|
|
2
2
|
import '../../shared/better-auth.9XhOL8gb.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.CZaGcPOu.cjs';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DXFEde7S.mjs';
|
|
2
2
|
import '../../shared/better-auth.9XhOL8gb.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.BGqNvLSj.mjs';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.1U46rRCb.js';
|
|
2
2
|
import '../../shared/better-auth.9XhOL8gb.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.D1VhCXSa.js';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.CKaSQSiK.cjs';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.CKaSQSiK.cjs';
|
|
3
3
|
import '../shared/better-auth.9XhOL8gb.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.CZaGcPOu.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-call';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.DXFEde7S.mjs';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.DXFEde7S.mjs';
|
|
3
3
|
import '../shared/better-auth.9XhOL8gb.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.BGqNvLSj.mjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-call';
|
|
8
8
|
import 'better-sqlite3';
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.1U46rRCb.js';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.1U46rRCb.js';
|
|
3
3
|
import '../shared/better-auth.9XhOL8gb.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.D1VhCXSa.js';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-call';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.CKaSQSiK.cjs';
|
|
3
3
|
import '../../shared/better-auth.9XhOL8gb.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.CZaGcPOu.cjs';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
8
|
import 'bun:sqlite';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.DXFEde7S.mjs';
|
|
3
3
|
import '../../shared/better-auth.9XhOL8gb.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.BGqNvLSj.mjs';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
8
|
import 'bun:sqlite';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.1U46rRCb.js';
|
|
3
3
|
import '../../shared/better-auth.9XhOL8gb.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.D1VhCXSa.js';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
8
|
import 'bun:sqlite';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CKaSQSiK.cjs';
|
|
2
2
|
import '../../shared/better-auth.9XhOL8gb.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.CZaGcPOu.cjs';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DXFEde7S.mjs';
|
|
2
2
|
import '../../shared/better-auth.9XhOL8gb.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.BGqNvLSj.mjs';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.1U46rRCb.js';
|
|
2
2
|
import '../../shared/better-auth.9XhOL8gb.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.D1VhCXSa.js';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CKaSQSiK.cjs';
|
|
2
2
|
import { Db } from 'mongodb';
|
|
3
3
|
import '../../shared/better-auth.9XhOL8gb.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.CZaGcPOu.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-call';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DXFEde7S.mjs';
|
|
2
2
|
import { Db } from 'mongodb';
|
|
3
3
|
import '../../shared/better-auth.9XhOL8gb.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.BGqNvLSj.mjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-call';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.1U46rRCb.js';
|
|
2
2
|
import { Db } from 'mongodb';
|
|
3
3
|
import '../../shared/better-auth.9XhOL8gb.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.D1VhCXSa.js';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-call';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CKaSQSiK.cjs';
|
|
2
2
|
import '../../shared/better-auth.9XhOL8gb.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.CZaGcPOu.cjs';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DXFEde7S.mjs';
|
|
2
2
|
import '../../shared/better-auth.9XhOL8gb.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.BGqNvLSj.mjs';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.1U46rRCb.js';
|
|
2
2
|
import '../../shared/better-auth.9XhOL8gb.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.D1VhCXSa.js';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
package/dist/adapters/test.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.CKaSQSiK.cjs';
|
|
2
2
|
import '../shared/better-auth.9XhOL8gb.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../shared/better-auth.
|
|
4
|
+
import '../shared/better-auth.CZaGcPOu.cjs';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
package/dist/adapters/test.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.DXFEde7S.mjs';
|
|
2
2
|
import '../shared/better-auth.9XhOL8gb.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../shared/better-auth.
|
|
4
|
+
import '../shared/better-auth.BGqNvLSj.mjs';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
package/dist/adapters/test.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.1U46rRCb.js';
|
|
2
2
|
import '../shared/better-auth.9XhOL8gb.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../shared/better-auth.
|
|
4
|
+
import '../shared/better-auth.D1VhCXSa.js';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'better-sqlite3';
|
package/dist/api/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
4
|
+
const socialProviders_index = require('../shared/better-auth.Di4b3h9T.cjs');
|
|
5
5
|
const zod = require('zod');
|
|
6
6
|
const cookies_index = require('../cookies/index.cjs');
|
|
7
7
|
const schema = require('../shared/better-auth.DcWKCjjf.cjs');
|
|
@@ -67,6 +67,10 @@ const signUpEmail = () => socialProviders_index.createAuthEndpoint(
|
|
|
67
67
|
callbackURL: {
|
|
68
68
|
type: "string",
|
|
69
69
|
description: "The URL to use for email verification callback"
|
|
70
|
+
},
|
|
71
|
+
rememberMe: {
|
|
72
|
+
type: "boolean",
|
|
73
|
+
description: "If this is false, the session will not be remembered. Default is `true`."
|
|
70
74
|
}
|
|
71
75
|
},
|
|
72
76
|
required: ["name", "email", "password"]
|
|
@@ -151,7 +155,15 @@ const signUpEmail = () => socialProviders_index.createAuthEndpoint(
|
|
|
151
155
|
});
|
|
152
156
|
}
|
|
153
157
|
const body = ctx.body;
|
|
154
|
-
const {
|
|
158
|
+
const {
|
|
159
|
+
name,
|
|
160
|
+
email,
|
|
161
|
+
password,
|
|
162
|
+
image,
|
|
163
|
+
callbackURL,
|
|
164
|
+
rememberMe,
|
|
165
|
+
...additionalFields
|
|
166
|
+
} = body;
|
|
155
167
|
const isValidEmail = zod.z.string().email().safeParse(email);
|
|
156
168
|
if (!isValidEmail.success) {
|
|
157
169
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
@@ -260,17 +272,22 @@ const signUpEmail = () => socialProviders_index.createAuthEndpoint(
|
|
|
260
272
|
}
|
|
261
273
|
const session = await ctx.context.internalAdapter.createSession(
|
|
262
274
|
createdUser.id,
|
|
263
|
-
ctx
|
|
275
|
+
ctx,
|
|
276
|
+
rememberMe === false
|
|
264
277
|
);
|
|
265
278
|
if (!session) {
|
|
266
279
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
267
280
|
message: socialProviders_index.BASE_ERROR_CODES.FAILED_TO_CREATE_SESSION
|
|
268
281
|
});
|
|
269
282
|
}
|
|
270
|
-
await cookies_index.setSessionCookie(
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
283
|
+
await cookies_index.setSessionCookie(
|
|
284
|
+
ctx,
|
|
285
|
+
{
|
|
286
|
+
session,
|
|
287
|
+
user: createdUser
|
|
288
|
+
},
|
|
289
|
+
rememberMe === false
|
|
290
|
+
);
|
|
274
291
|
return ctx.json({
|
|
275
292
|
token: session.token,
|
|
276
293
|
user: {
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.CZaGcPOu.cjs';
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.CKaSQSiK.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.9XhOL8gb.cjs';
|
|
5
5
|
import 'zod';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.BGqNvLSj.mjs';
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.DXFEde7S.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.9XhOL8gb.mjs';
|
|
5
5
|
import 'zod';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.D1VhCXSa.js';
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bh as accountInfo, aL as callbackOAuth, b8 as changeEmail, b4 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, a$ as createEmailVerificationToken, b6 as deleteUser, b7 as deleteUserCallback, b9 as error, aX as forgetPassword, aZ as forgetPasswordCallback, aQ as freshSessionMiddleware, bf as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bd as linkSocialAccount, aR as listSessions, bc as listUserAccounts, ba as ok, o as optionsMiddleware, bj as originCheck, bi as originCheckMiddleware, bg as refreshToken, aP as requestOnlySessionMiddleware, aW as requestPasswordReset, aY as requestPasswordResetCallback, a_ as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, b1 as sendVerificationEmail, b0 as sendVerificationEmailFn, aO as sessionMiddleware, b5 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, bb as signUpEmail, be as unlinkAccount, b3 as updateUser, b2 as verifyEmail } from '../shared/better-auth.1U46rRCb.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.9XhOL8gb.js';
|
|
5
5
|
import 'zod';
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIError, toResponse, createRouter } from 'better-call';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
import { i as createAuthEndpoint, B as BASE_ERROR_CODES, t as createEmailVerificationToken, w as wildcardMatch, u as listSessions, x as updateUser, k as getSession, y as originCheckMiddleware, z as error, A as ok, C as accountInfo, D as getAccessToken, E as refreshToken, F as unlinkAccount, G as deleteUserCallback, I as listUserAccounts, J as linkSocialAccount, K as revokeOtherSessions, L as revokeSessions, M as revokeSession, N as requestPasswordResetCallback, O as requestPasswordReset, P as forgetPasswordCallback, Q as deleteUser, R as setPassword, S as changePassword, T as changeEmail, U as sendVerificationEmail, V as verifyEmail, W as resetPassword, X as forgetPassword, Y as signInEmail, Z as signOut, _ as callbackOAuth, $ as signInSocial } from '../shared/better-auth.
|
|
4
|
-
export { f as createAuthMiddleware, l as freshSessionMiddleware, j as getSessionFromCtx, m as optionsMiddleware, o as originCheck, a0 as requestOnlySessionMiddleware, q as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.
|
|
3
|
+
import { i as createAuthEndpoint, B as BASE_ERROR_CODES, t as createEmailVerificationToken, w as wildcardMatch, u as listSessions, x as updateUser, k as getSession, y as originCheckMiddleware, z as error, A as ok, C as accountInfo, D as getAccessToken, E as refreshToken, F as unlinkAccount, G as deleteUserCallback, I as listUserAccounts, J as linkSocialAccount, K as revokeOtherSessions, L as revokeSessions, M as revokeSession, N as requestPasswordResetCallback, O as requestPasswordReset, P as forgetPasswordCallback, Q as deleteUser, R as setPassword, S as changePassword, T as changeEmail, U as sendVerificationEmail, V as verifyEmail, W as resetPassword, X as forgetPassword, Y as signInEmail, Z as signOut, _ as callbackOAuth, $ as signInSocial } from '../shared/better-auth.dm850UlW.mjs';
|
|
4
|
+
export { f as createAuthMiddleware, l as freshSessionMiddleware, j as getSessionFromCtx, m as optionsMiddleware, o as originCheck, a0 as requestOnlySessionMiddleware, q as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.dm850UlW.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { setSessionCookie } from '../cookies/index.mjs';
|
|
7
7
|
import { f as parseUserInput } from '../shared/better-auth.Cc72UxUH.mjs';
|
|
@@ -63,6 +63,10 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
63
63
|
callbackURL: {
|
|
64
64
|
type: "string",
|
|
65
65
|
description: "The URL to use for email verification callback"
|
|
66
|
+
},
|
|
67
|
+
rememberMe: {
|
|
68
|
+
type: "boolean",
|
|
69
|
+
description: "If this is false, the session will not be remembered. Default is `true`."
|
|
66
70
|
}
|
|
67
71
|
},
|
|
68
72
|
required: ["name", "email", "password"]
|
|
@@ -147,7 +151,15 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
147
151
|
});
|
|
148
152
|
}
|
|
149
153
|
const body = ctx.body;
|
|
150
|
-
const {
|
|
154
|
+
const {
|
|
155
|
+
name,
|
|
156
|
+
email,
|
|
157
|
+
password,
|
|
158
|
+
image,
|
|
159
|
+
callbackURL,
|
|
160
|
+
rememberMe,
|
|
161
|
+
...additionalFields
|
|
162
|
+
} = body;
|
|
151
163
|
const isValidEmail = z.string().email().safeParse(email);
|
|
152
164
|
if (!isValidEmail.success) {
|
|
153
165
|
throw new APIError("BAD_REQUEST", {
|
|
@@ -256,17 +268,22 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
256
268
|
}
|
|
257
269
|
const session = await ctx.context.internalAdapter.createSession(
|
|
258
270
|
createdUser.id,
|
|
259
|
-
ctx
|
|
271
|
+
ctx,
|
|
272
|
+
rememberMe === false
|
|
260
273
|
);
|
|
261
274
|
if (!session) {
|
|
262
275
|
throw new APIError("BAD_REQUEST", {
|
|
263
276
|
message: BASE_ERROR_CODES.FAILED_TO_CREATE_SESSION
|
|
264
277
|
});
|
|
265
278
|
}
|
|
266
|
-
await setSessionCookie(
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
279
|
+
await setSessionCookie(
|
|
280
|
+
ctx,
|
|
281
|
+
{
|
|
282
|
+
session,
|
|
283
|
+
user: createdUser
|
|
284
|
+
},
|
|
285
|
+
rememberMe === false
|
|
286
|
+
);
|
|
270
287
|
return ctx.json({
|
|
271
288
|
token: session.token,
|
|
272
289
|
user: {
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.CKaSQSiK.cjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.BP35Nbhe.cjs';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.BP35Nbhe.cjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
10
10
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.9XhOL8gb.cjs';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../shared/better-auth.
|
|
12
|
+
import '../shared/better-auth.CZaGcPOu.cjs';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-call';
|
|
15
15
|
import 'better-sqlite3';
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.DXFEde7S.mjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.dkmWAMtv.mjs';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.dkmWAMtv.mjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
10
10
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.9XhOL8gb.mjs';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../shared/better-auth.
|
|
12
|
+
import '../shared/better-auth.BGqNvLSj.mjs';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-call';
|
|
15
15
|
import 'better-sqlite3';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.1U46rRCb.js';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.CcqPcsQw.js';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.CcqPcsQw.js';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
10
10
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.9XhOL8gb.js';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../shared/better-auth.
|
|
12
|
+
import '../shared/better-auth.D1VhCXSa.js';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-call';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -11,23 +11,23 @@ export { twoFactorClient } from '../../plugins/two-factor/index.cjs';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.cjs';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.cjs';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.cjs';
|
|
14
|
-
import { a4 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { a4 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.CKaSQSiK.cjs';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.cjs';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.cjs';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.cjs';
|
|
18
18
|
import { multiSession } from '../../plugins/multi-session/index.cjs';
|
|
19
19
|
import { emailOTP } from '../../plugins/email-otp/index.cjs';
|
|
20
|
-
import { S as Store } from '../../shared/better-auth.
|
|
20
|
+
import { S as Store } from '../../shared/better-auth.BP35Nbhe.cjs';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.cjs';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.cjs';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.M3B56FHf.cjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
export { global } from '@simplewebauthn/server';
|
|
27
27
|
import 'zod';
|
|
28
28
|
import 'better-call';
|
|
29
29
|
import '../../plugins/organization/access/index.cjs';
|
|
30
|
-
import '../../shared/better-auth.
|
|
30
|
+
import '../../shared/better-auth.CZaGcPOu.cjs';
|
|
31
31
|
import 'kysely';
|
|
32
32
|
import 'better-sqlite3';
|
|
33
33
|
import 'bun:sqlite';
|
|
@@ -11,23 +11,23 @@ export { twoFactorClient } from '../../plugins/two-factor/index.mjs';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.mjs';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.mjs';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.mjs';
|
|
14
|
-
import { a4 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { a4 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.DXFEde7S.mjs';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.mjs';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.mjs';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.mjs';
|
|
18
18
|
import { multiSession } from '../../plugins/multi-session/index.mjs';
|
|
19
19
|
import { emailOTP } from '../../plugins/email-otp/index.mjs';
|
|
20
|
-
import { S as Store } from '../../shared/better-auth.
|
|
20
|
+
import { S as Store } from '../../shared/better-auth.dkmWAMtv.mjs';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.mjs';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.mjs';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.Cs9tnjbm.mjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
export { global } from '@simplewebauthn/server';
|
|
27
27
|
import 'zod';
|
|
28
28
|
import 'better-call';
|
|
29
29
|
import '../../plugins/organization/access/index.mjs';
|
|
30
|
-
import '../../shared/better-auth.
|
|
30
|
+
import '../../shared/better-auth.BGqNvLSj.mjs';
|
|
31
31
|
import 'kysely';
|
|
32
32
|
import 'better-sqlite3';
|
|
33
33
|
import 'bun:sqlite';
|
|
@@ -11,23 +11,23 @@ export { twoFactorClient } from '../../plugins/two-factor/index.js';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.js';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.js';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.js';
|
|
14
|
-
import { a4 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { a4 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.1U46rRCb.js';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.js';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.js';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.js';
|
|
18
18
|
import { multiSession } from '../../plugins/multi-session/index.js';
|
|
19
19
|
import { emailOTP } from '../../plugins/email-otp/index.js';
|
|
20
|
-
import { S as Store } from '../../shared/better-auth.
|
|
20
|
+
import { S as Store } from '../../shared/better-auth.CcqPcsQw.js';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.js';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.js';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.wF952O4S.js';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.js';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
export { global } from '@simplewebauthn/server';
|
|
27
27
|
import 'zod';
|
|
28
28
|
import 'better-call';
|
|
29
29
|
import '../../plugins/organization/access/index.js';
|
|
30
|
-
import '../../shared/better-auth.
|
|
30
|
+
import '../../shared/better-auth.D1VhCXSa.js';
|
|
31
31
|
import 'kysely';
|
|
32
32
|
import 'better-sqlite3';
|
|
33
33
|
import 'bun:sqlite';
|
|
@@ -4,13 +4,13 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BP35Nbhe.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.9XhOL8gb.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CKaSQSiK.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.CZaGcPOu.cjs';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
16
16
|
import 'bun:sqlite';
|
|
@@ -4,13 +4,13 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.dkmWAMtv.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.9XhOL8gb.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DXFEde7S.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.BGqNvLSj.mjs';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
16
16
|
import 'bun:sqlite';
|