better-auth 1.4.0-beta.3 → 1.4.0-beta.4
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 +1 -1
- package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.ts +1 -1
- package/dist/adapters/index.d.cts +2 -2
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.d.ts +2 -2
- package/dist/adapters/kysely-adapter/index.d.cts +1 -1
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.d.ts +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.d.ts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
- package/dist/adapters/prisma-adapter/index.d.cts +1 -1
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.d.ts +1 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api/index.cjs +7 -6
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.mjs +9 -8
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.mjs +3 -3
- package/dist/client/plugins/index.d.cts +3 -3
- package/dist/client/plugins/index.d.mts +3 -3
- package/dist/client/plugins/index.d.ts +3 -3
- package/dist/client/react/index.cjs +2 -2
- package/dist/client/react/index.d.cts +9 -9
- package/dist/client/react/index.d.mts +9 -9
- package/dist/client/react/index.d.ts +9 -9
- package/dist/client/react/index.mjs +2 -2
- package/dist/client/solid/index.cjs +2 -2
- package/dist/client/solid/index.d.cts +9 -9
- package/dist/client/solid/index.d.mts +9 -9
- package/dist/client/solid/index.d.ts +9 -9
- package/dist/client/solid/index.mjs +2 -2
- package/dist/client/svelte/index.cjs +2 -2
- 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/svelte/index.mjs +2 -2
- package/dist/client/vue/index.cjs +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/client/vue/index.mjs +3 -3
- package/dist/cookies/index.cjs +2 -2
- package/dist/cookies/index.d.cts +1 -1
- package/dist/cookies/index.d.mts +1 -1
- package/dist/cookies/index.d.ts +1 -1
- package/dist/cookies/index.mjs +2 -2
- package/dist/db/index.cjs +1 -1
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.mjs +1 -1
- package/dist/index.cjs +7 -6
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.mjs +7 -6
- package/dist/integrations/next-js.cjs +6 -5
- package/dist/integrations/next-js.d.cts +1 -1
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/next-js.d.ts +1 -1
- package/dist/integrations/next-js.mjs +6 -5
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/react-start.cjs +6 -5
- package/dist/integrations/react-start.d.cts +1 -1
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/react-start.d.ts +1 -1
- package/dist/integrations/react-start.mjs +6 -5
- package/dist/integrations/svelte-kit.cjs +5 -4
- package/dist/integrations/svelte-kit.d.cts +1 -1
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.ts +1 -1
- package/dist/integrations/svelte-kit.mjs +5 -4
- package/dist/oauth2/index.cjs +5 -4
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/oauth2/index.mjs +5 -4
- package/dist/plugins/admin/index.cjs +6 -5
- package/dist/plugins/admin/index.d.cts +7 -6
- package/dist/plugins/admin/index.d.mts +7 -6
- package/dist/plugins/admin/index.d.ts +7 -6
- package/dist/plugins/admin/index.mjs +6 -5
- package/dist/plugins/anonymous/index.cjs +5 -4
- package/dist/plugins/anonymous/index.d.cts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.ts +1 -1
- package/dist/plugins/anonymous/index.mjs +5 -4
- package/dist/plugins/bearer/index.cjs +5 -4
- package/dist/plugins/bearer/index.d.cts +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.ts +1 -1
- package/dist/plugins/bearer/index.mjs +5 -4
- package/dist/plugins/captcha/index.cjs +5 -4
- package/dist/plugins/captcha/index.d.cts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.ts +1 -1
- package/dist/plugins/captcha/index.mjs +5 -4
- package/dist/plugins/custom-session/index.cjs +11 -8
- package/dist/plugins/custom-session/index.d.cts +1 -1
- package/dist/plugins/custom-session/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.mjs +11 -8
- package/dist/plugins/device-authorization/index.cjs +52 -19
- package/dist/plugins/device-authorization/index.d.cts +1 -1
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/device-authorization/index.d.ts +1 -1
- package/dist/plugins/device-authorization/index.mjs +52 -19
- package/dist/plugins/email-otp/index.cjs +62 -21
- package/dist/plugins/email-otp/index.d.cts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.ts +1 -1
- package/dist/plugins/email-otp/index.mjs +62 -21
- package/dist/plugins/generic-oauth/index.cjs +44 -25
- package/dist/plugins/generic-oauth/index.d.cts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.ts +1 -1
- package/dist/plugins/generic-oauth/index.mjs +44 -25
- package/dist/plugins/haveibeenpwned/index.cjs +5 -4
- package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
- package/dist/plugins/haveibeenpwned/index.mjs +5 -4
- package/dist/plugins/index.cjs +11 -10
- package/dist/plugins/index.d.cts +6 -6
- package/dist/plugins/index.d.mts +6 -6
- package/dist/plugins/index.d.ts +6 -6
- package/dist/plugins/index.mjs +13 -12
- package/dist/plugins/jwt/index.cjs +5 -4
- package/dist/plugins/jwt/index.d.cts +1 -1
- package/dist/plugins/jwt/index.d.mts +1 -1
- package/dist/plugins/jwt/index.d.ts +1 -1
- package/dist/plugins/jwt/index.mjs +5 -4
- package/dist/plugins/magic-link/index.cjs +32 -21
- package/dist/plugins/magic-link/index.mjs +32 -21
- package/dist/plugins/multi-session/index.cjs +11 -6
- package/dist/plugins/multi-session/index.d.cts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.ts +1 -1
- package/dist/plugins/multi-session/index.mjs +11 -6
- package/dist/plugins/oauth-proxy/index.cjs +11 -6
- package/dist/plugins/oauth-proxy/index.d.cts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.ts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +11 -6
- package/dist/plugins/oidc-provider/index.cjs +6 -5
- package/dist/plugins/oidc-provider/index.d.cts +5 -5
- package/dist/plugins/oidc-provider/index.d.mts +5 -5
- package/dist/plugins/oidc-provider/index.d.ts +5 -5
- package/dist/plugins/oidc-provider/index.mjs +6 -5
- package/dist/plugins/one-tap/index.cjs +8 -7
- package/dist/plugins/one-tap/index.mjs +8 -7
- package/dist/plugins/one-time-token/index.cjs +7 -6
- package/dist/plugins/one-time-token/index.d.cts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.ts +1 -1
- package/dist/plugins/one-time-token/index.mjs +7 -6
- package/dist/plugins/open-api/index.cjs +5 -4
- package/dist/plugins/open-api/index.d.cts +1 -1
- package/dist/plugins/open-api/index.d.mts +1 -1
- package/dist/plugins/open-api/index.d.ts +1 -1
- package/dist/plugins/open-api/index.mjs +5 -4
- package/dist/plugins/organization/index.cjs +7 -6
- package/dist/plugins/organization/index.d.cts +9 -9
- package/dist/plugins/organization/index.d.mts +9 -9
- package/dist/plugins/organization/index.d.ts +9 -9
- package/dist/plugins/organization/index.mjs +7 -6
- package/dist/plugins/passkey/index.cjs +17 -12
- package/dist/plugins/passkey/index.d.cts +1 -1
- package/dist/plugins/passkey/index.d.mts +1 -1
- package/dist/plugins/passkey/index.d.ts +1 -1
- package/dist/plugins/passkey/index.mjs +17 -12
- package/dist/plugins/phone-number/index.cjs +41 -24
- package/dist/plugins/phone-number/index.d.cts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.ts +1 -1
- package/dist/plugins/phone-number/index.mjs +41 -24
- package/dist/plugins/siwe/index.cjs +5 -4
- package/dist/plugins/siwe/index.d.cts +1 -1
- package/dist/plugins/siwe/index.d.mts +1 -1
- package/dist/plugins/siwe/index.d.ts +1 -1
- package/dist/plugins/siwe/index.mjs +5 -4
- package/dist/plugins/sso/index.cjs +89 -62
- package/dist/plugins/sso/index.d.cts +3 -3
- package/dist/plugins/sso/index.d.mts +3 -3
- package/dist/plugins/sso/index.d.ts +3 -3
- package/dist/plugins/sso/index.mjs +89 -62
- package/dist/plugins/two-factor/index.cjs +50 -19
- package/dist/plugins/two-factor/index.d.cts +1 -1
- package/dist/plugins/two-factor/index.d.mts +1 -1
- package/dist/plugins/two-factor/index.d.ts +1 -1
- package/dist/plugins/two-factor/index.mjs +50 -19
- package/dist/plugins/username/index.cjs +18 -11
- package/dist/plugins/username/index.d.cts +19 -19
- package/dist/plugins/username/index.d.mts +19 -19
- package/dist/plugins/username/index.d.ts +19 -19
- package/dist/plugins/username/index.mjs +18 -11
- package/dist/shared/{better-auth.CuyhlHls.cjs → better-auth.1iHKsGdY.cjs} +2 -2
- package/dist/shared/{better-auth.DyZUF2_t.d.ts → better-auth.3es9ZU_K.d.ts} +36 -37
- package/dist/shared/{better-auth.COdnr6eY.cjs → better-auth.B2Bmtu6f.cjs} +83 -47
- package/dist/shared/{better-auth.T3Ux10v9.mjs → better-auth.BAPVOPl3.mjs} +3 -3
- package/dist/shared/{better-auth.DxV4YGX3.mjs → better-auth.BAQSo96z.mjs} +6 -4
- package/dist/shared/{better-auth.cXemjp2M.mjs → better-auth.BHwIy11H.mjs} +83 -47
- package/dist/shared/{better-auth.B1Za4fb4.d.cts → better-auth.BLDIAFp8.d.cts} +5 -5
- package/dist/shared/{better-auth.DHiuXI9L.d.cts → better-auth.BOKSn3AP.d.cts} +36 -37
- package/dist/shared/{better-auth.ZC_QEMLv.d.cts → better-auth.BW0VS3vZ.d.cts} +1 -1
- package/dist/shared/{better-auth.DXd8qaHd.mjs → better-auth.Bc2H_kPB.mjs} +54 -28
- package/dist/shared/{better-auth.DhQzyejE.mjs → better-auth.BoY6Vo7c.mjs} +1 -1
- package/dist/shared/{better-auth.D1jaLDAW.mjs → better-auth.C-9OPnjJ.mjs} +151 -71
- package/dist/shared/{better-auth.A_lT_4ey.cjs → better-auth.C0WkvM-b.cjs} +151 -71
- package/dist/shared/{better-auth.iE8wqp5_.cjs → better-auth.C2xLgiCv.cjs} +1 -1
- package/dist/shared/{better-auth.Cdkx1UlR.cjs → better-auth.C4gSFtQb.cjs} +54 -28
- package/dist/shared/{better-auth.D3u5pPGf.d.ts → better-auth.CAc8m5ps.d.ts} +1 -1
- package/dist/shared/{better-auth.BUqsHDoX.d.ts → better-auth.CBpfh9gd.d.ts} +1 -1
- package/dist/shared/{better-auth.BUmFH1YH.d.mts → better-auth.CHakYG_s.d.mts} +5 -5
- package/dist/shared/{better-auth.Co88PbP3.mjs → better-auth.CIqzVuC5.mjs} +15 -9
- package/dist/shared/{better-auth.DL28hkwE.mjs → better-auth.CJk6lu9H.mjs} +5 -5
- package/dist/shared/{better-auth.wBgaxGEw.cjs → better-auth.CWoe8tep.cjs} +15 -9
- package/dist/shared/{better-auth.TQtfFmwt.mjs → better-auth.Cs4ObP2J.mjs} +246 -139
- package/dist/shared/{better-auth.BftmE2f4.mjs → better-auth.Cw2Wb5xl.mjs} +2 -2
- package/dist/shared/{better-auth.BTmQo2-r.mjs → better-auth.CyhdLtgz.mjs} +122 -54
- package/dist/shared/{better-auth.Cn3gHKIq.d.ts → better-auth.D1mfnXw8.d.ts} +5 -5
- package/dist/shared/better-auth.D2xndZ2p.mjs +5 -0
- package/dist/shared/{better-auth.LBYUF6qL.d.mts → better-auth.D63GoHoT.d.mts} +1 -1
- package/dist/shared/{better-auth.DrO1u8u7.cjs → better-auth.DVpUemsq.cjs} +49 -10
- package/dist/shared/{better-auth.CYRK2rir.cjs → better-auth.DcLnIy5M.cjs} +122 -54
- package/dist/shared/{better-auth.B-RhOtHf.cjs → better-auth.Df7v65t4.cjs} +3 -3
- package/dist/shared/{better-auth.g25nv4YL.mjs → better-auth.DpE8ZxDZ.mjs} +49 -10
- package/dist/shared/{better-auth.8am3GyvS.d.cts → better-auth.DqouI_5s.d.cts} +1 -1
- package/dist/shared/{better-auth.DRmln2Nr.cjs → better-auth.DxBcELEX.cjs} +6 -4
- package/dist/shared/{better-auth.BSU7i7gN.cjs → better-auth.Fhb5xDFB.cjs} +5 -5
- package/dist/shared/{better-auth.CNhgW39t.cjs → better-auth.W6wY8Xk1.cjs} +246 -139
- package/dist/shared/{better-auth.DIfV2UBl.cjs → better-auth.oHfRlmfe.cjs} +1 -1
- package/dist/shared/{better-auth.C3bLnul-.mjs → better-auth.pyHheoY8.mjs} +1 -1
- package/dist/shared/better-auth.uykCWCYS.cjs +7 -0
- package/dist/shared/{better-auth.DQBMcFsm.d.mts → better-auth.vNMd9aBC.d.mts} +36 -37
- package/dist/shared/{better-auth.BC_XVl81.d.mts → better-auth.x83uJ-Ru.d.mts} +1 -1
- package/dist/social-providers/index.cjs +5 -4
- package/dist/social-providers/index.mjs +5 -4
- package/dist/test-utils/index.cjs +10 -9
- package/dist/test-utils/index.d.cts +59 -57
- package/dist/test-utils/index.d.mts +59 -57
- package/dist/test-utils/index.d.ts +59 -57
- package/dist/test-utils/index.mjs +10 -9
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
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.BOKSn3AP.cjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
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.vNMd9aBC.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
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.3es9ZU_K.js';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.4SXCyo06.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.BOKSn3AP.cjs';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.BOKSn3AP.cjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../shared/better-auth.v_lf-jeY.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.vNMd9aBC.mjs';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.vNMd9aBC.mjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../shared/better-auth.XefKa8DI.mjs';
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.
|
|
2
|
-
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.3es9ZU_K.js';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.3es9ZU_K.js';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../shared/better-auth.4SXCyo06.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
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.BOKSn3AP.cjs';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
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.vNMd9aBC.mjs';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
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.3es9ZU_K.js';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.4SXCyo06.js';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
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.BOKSn3AP.cjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
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.vNMd9aBC.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
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.3es9ZU_K.js';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.4SXCyo06.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.BOKSn3AP.cjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.vNMd9aBC.mjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.3es9ZU_K.js';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.4SXCyo06.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
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.BOKSn3AP.cjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
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.vNMd9aBC.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
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.3es9ZU_K.js';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../../shared/better-auth.4SXCyo06.js';
|
package/dist/adapters/test.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.BOKSn3AP.cjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../shared/better-auth.v_lf-jeY.cjs';
|
package/dist/adapters/test.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.vNMd9aBC.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../shared/better-auth.XefKa8DI.mjs';
|
package/dist/adapters/test.d.ts
CHANGED
package/dist/api/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
5
|
-
const session = require('../shared/better-auth.
|
|
4
|
+
const socialProviders_index = require('../shared/better-auth.C0WkvM-b.cjs');
|
|
5
|
+
const session = require('../shared/better-auth.CWoe8tep.cjs');
|
|
6
6
|
const z = require('zod');
|
|
7
|
-
const cookies_index = require('../shared/better-auth.
|
|
7
|
+
const cookies_index = require('../shared/better-auth.oHfRlmfe.cjs');
|
|
8
8
|
const schema = require('../shared/better-auth.DcYLM7Us.cjs');
|
|
9
9
|
const env = require('../shared/better-auth.B6fIklBU.cjs');
|
|
10
10
|
const logger = require('../shared/better-auth.DTvRBuq4.cjs');
|
|
@@ -24,12 +24,13 @@ require('../shared/better-auth.ANpbi45u.cjs');
|
|
|
24
24
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
25
25
|
require('@better-auth/utils/random');
|
|
26
26
|
require('@better-fetch/fetch');
|
|
27
|
-
require('../shared/better-auth.
|
|
27
|
+
require('../shared/better-auth.DxBcELEX.cjs');
|
|
28
28
|
require('jose/errors');
|
|
29
29
|
require('../shared/better-auth.Bg6iw3ig.cjs');
|
|
30
30
|
require('@better-auth/utils/hmac');
|
|
31
31
|
require('@better-auth/utils/binary');
|
|
32
32
|
require('defu');
|
|
33
|
+
require('../shared/better-auth.uykCWCYS.cjs');
|
|
33
34
|
|
|
34
35
|
function _interopNamespaceCompat(e) {
|
|
35
36
|
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
@@ -194,7 +195,7 @@ const signUpEmail = () => session.createAuthEndpoint(
|
|
|
194
195
|
rememberMe,
|
|
195
196
|
...additionalFields
|
|
196
197
|
} = body;
|
|
197
|
-
const isValidEmail = z__namespace.
|
|
198
|
+
const isValidEmail = z__namespace.email().safeParse(email);
|
|
198
199
|
if (!isValidEmail.success) {
|
|
199
200
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
200
201
|
message: session.BASE_ERROR_CODES.INVALID_EMAIL
|
|
@@ -220,7 +221,7 @@ const signUpEmail = () => session.createAuthEndpoint(
|
|
|
220
221
|
`Sign-up attempt for existing email: ${email}`
|
|
221
222
|
);
|
|
222
223
|
throw new betterCall.APIError("UNPROCESSABLE_ENTITY", {
|
|
223
|
-
message: session.BASE_ERROR_CODES.
|
|
224
|
+
message: session.BASE_ERROR_CODES.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL
|
|
224
225
|
});
|
|
225
226
|
}
|
|
226
227
|
const additionalData = schema.parseUserInput(
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.v_lf-jeY.cjs';
|
|
2
|
-
export { z as AuthEndpoint, D as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, w as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, w as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.BOKSn3AP.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.XefKa8DI.mjs';
|
|
2
|
-
export { z as AuthEndpoint, D as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, w as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, w as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.vNMd9aBC.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.4SXCyo06.js';
|
|
2
|
-
export { z as AuthEndpoint, D as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, w as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, w as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.3es9ZU_K.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.js';
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { APIError, createRouter } from 'better-call';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
import { k as createEmailVerificationToken, w as wildcardMatch, u as updateUser, t as toAuthEndpoints, l as originCheckMiddleware, m as error, n as ok, q as accountInfo, x as getAccessToken, y as refreshToken, z as unlinkAccount, A as deleteUserCallback, B as listUserAccounts, C as linkSocialAccount, D as requestPasswordResetCallback, E as requestPasswordReset, F as forgetPasswordCallback, G as deleteUser, I as setPassword, J as changePassword, K as changeEmail, L as sendVerificationEmail, M as verifyEmail, N as resetPassword, O as forgetPassword, P as signInEmail, Q as signOut, R as callbackOAuth, S as signInSocial } from '../shared/better-auth.
|
|
4
|
-
export { o as originCheck, T as sendVerificationEmailFn } from '../shared/better-auth.
|
|
5
|
-
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, l as listSessions, b as getSession, r as revokeOtherSessions, d as revokeSessions, e as revokeSession } from '../shared/better-auth.
|
|
6
|
-
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, h as getSessionQuerySchema, o as optionsMiddleware, j as requestOnlySessionMiddleware, i as sensitiveSessionMiddleware, s as sessionMiddleware } from '../shared/better-auth.
|
|
3
|
+
import { k as createEmailVerificationToken, w as wildcardMatch, u as updateUser, t as toAuthEndpoints, l as originCheckMiddleware, m as error, n as ok, q as accountInfo, x as getAccessToken, y as refreshToken, z as unlinkAccount, A as deleteUserCallback, B as listUserAccounts, C as linkSocialAccount, D as requestPasswordResetCallback, E as requestPasswordReset, F as forgetPasswordCallback, G as deleteUser, I as setPassword, J as changePassword, K as changeEmail, L as sendVerificationEmail, M as verifyEmail, N as resetPassword, O as forgetPassword, P as signInEmail, Q as signOut, R as callbackOAuth, S as signInSocial } from '../shared/better-auth.C-9OPnjJ.mjs';
|
|
4
|
+
export { o as originCheck, T as sendVerificationEmailFn } from '../shared/better-auth.C-9OPnjJ.mjs';
|
|
5
|
+
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, l as listSessions, b as getSession, r as revokeOtherSessions, d as revokeSessions, e as revokeSession } from '../shared/better-auth.CIqzVuC5.mjs';
|
|
6
|
+
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, h as getSessionQuerySchema, o as optionsMiddleware, j as requestOnlySessionMiddleware, i as sensitiveSessionMiddleware, s as sessionMiddleware } from '../shared/better-auth.CIqzVuC5.mjs';
|
|
7
7
|
import * as z from 'zod';
|
|
8
|
-
import { s as setSessionCookie } from '../shared/better-auth.
|
|
8
|
+
import { s as setSessionCookie } from '../shared/better-auth.pyHheoY8.mjs';
|
|
9
9
|
import { r as runWithTransaction, i as parseUserInput } from '../shared/better-auth.CJ2rnsDV.mjs';
|
|
10
10
|
import { a as isDevelopment } from '../shared/better-auth.CiuwFiHM.mjs';
|
|
11
11
|
import { a as logger } from '../shared/better-auth.C4g12FAA.mjs';
|
|
@@ -25,12 +25,13 @@ import '../shared/better-auth.DdzSJf-n.mjs';
|
|
|
25
25
|
import '../shared/better-auth.B4Qoxdgc.mjs';
|
|
26
26
|
import '@better-auth/utils/random';
|
|
27
27
|
import '@better-fetch/fetch';
|
|
28
|
-
import '../shared/better-auth.
|
|
28
|
+
import '../shared/better-auth.BAQSo96z.mjs';
|
|
29
29
|
import 'jose/errors';
|
|
30
30
|
import '../shared/better-auth.BUPPRXfK.mjs';
|
|
31
31
|
import '@better-auth/utils/hmac';
|
|
32
32
|
import '@better-auth/utils/binary';
|
|
33
33
|
import 'defu';
|
|
34
|
+
import '../shared/better-auth.D2xndZ2p.mjs';
|
|
34
35
|
|
|
35
36
|
const signUpEmail = () => createAuthEndpoint(
|
|
36
37
|
"/sign-up/email",
|
|
@@ -181,7 +182,7 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
181
182
|
rememberMe,
|
|
182
183
|
...additionalFields
|
|
183
184
|
} = body;
|
|
184
|
-
const isValidEmail = z.
|
|
185
|
+
const isValidEmail = z.email().safeParse(email);
|
|
185
186
|
if (!isValidEmail.success) {
|
|
186
187
|
throw new APIError("BAD_REQUEST", {
|
|
187
188
|
message: BASE_ERROR_CODES.INVALID_EMAIL
|
|
@@ -207,7 +208,7 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
207
208
|
`Sign-up attempt for existing email: ${email}`
|
|
208
209
|
);
|
|
209
210
|
throw new APIError("UNPROCESSABLE_ENTITY", {
|
|
210
|
-
message: BASE_ERROR_CODES.
|
|
211
|
+
message: BASE_ERROR_CODES.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL
|
|
211
212
|
});
|
|
212
213
|
}
|
|
213
214
|
const additionalData = parseUserInput(
|
package/dist/client/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const vanilla = require('../shared/better-auth.
|
|
3
|
+
const vanilla = require('../shared/better-auth.C2xLgiCv.cjs');
|
|
4
4
|
const query = require('../shared/better-auth.D9AYOecd.cjs');
|
|
5
|
-
require('../shared/better-auth.
|
|
5
|
+
require('../shared/better-auth.Df7v65t4.cjs');
|
|
6
6
|
require('@better-fetch/fetch');
|
|
7
|
-
require('../shared/better-auth.
|
|
7
|
+
require('../shared/better-auth.DxBcELEX.cjs');
|
|
8
8
|
require('../shared/better-auth.B6fIklBU.cjs');
|
|
9
9
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
10
10
|
require('nanostores');
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.BOKSn3AP.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, S as SessionQueryParams } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e 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, S as SessionQueryParams } from '../shared/better-auth.BW0VS3vZ.cjs';
|
|
6
|
+
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.BW0VS3vZ.cjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.vNMd9aBC.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, S as SessionQueryParams } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e 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, S as SessionQueryParams } from '../shared/better-auth.D63GoHoT.mjs';
|
|
6
|
+
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.D63GoHoT.mjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.3es9ZU_K.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, S as SessionQueryParams } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e 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, S as SessionQueryParams } from '../shared/better-auth.CAc8m5ps.js';
|
|
6
|
+
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.CAc8m5ps.js';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { c as createAuthClient } from '../shared/better-auth.
|
|
1
|
+
export { c as createAuthClient } from '../shared/better-auth.BoY6Vo7c.mjs';
|
|
2
2
|
export { u as useAuthQuery } from '../shared/better-auth.BYWGbmZ5.mjs';
|
|
3
|
-
import '../shared/better-auth.
|
|
3
|
+
import '../shared/better-auth.BAPVOPl3.mjs';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.BAQSo96z.mjs';
|
|
6
6
|
import '../shared/better-auth.CiuwFiHM.mjs';
|
|
7
7
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
8
8
|
import 'nanostores';
|
|
@@ -2,11 +2,11 @@ import { OrganizationOptions, organization, InferMember, InferInvitation, Team,
|
|
|
2
2
|
import { AccessControl, Role, Statements } from '../../plugins/access/index.cjs';
|
|
3
3
|
import * as nanostores from 'nanostores';
|
|
4
4
|
import { atom } from 'nanostores';
|
|
5
|
-
import { L as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { L as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.BOKSn3AP.cjs';
|
|
6
6
|
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
7
7
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
8
8
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
9
|
-
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.
|
|
9
|
+
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.BW0VS3vZ.cjs';
|
|
10
10
|
import { username } from '../../plugins/username/index.cjs';
|
|
11
11
|
import { Session } from 'inspector';
|
|
12
12
|
import { Passkey, passkey } from '../../plugins/passkey/index.cjs';
|
|
@@ -21,7 +21,7 @@ import { multiSession } from '../../plugins/multi-session/index.cjs';
|
|
|
21
21
|
import { emailOTP } from '../../plugins/email-otp/index.cjs';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.cjs';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.cjs';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.BLDIAFp8.cjs';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.cjs';
|
|
27
27
|
export { deviceAuthorizationClient } from '../../plugins/device-authorization/index.cjs';
|
|
@@ -2,11 +2,11 @@ import { OrganizationOptions, organization, InferMember, InferInvitation, Team,
|
|
|
2
2
|
import { AccessControl, Role, Statements } from '../../plugins/access/index.mjs';
|
|
3
3
|
import * as nanostores from 'nanostores';
|
|
4
4
|
import { atom } from 'nanostores';
|
|
5
|
-
import { L as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { L as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.vNMd9aBC.mjs';
|
|
6
6
|
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
7
7
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
8
8
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
9
|
-
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.
|
|
9
|
+
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.D63GoHoT.mjs';
|
|
10
10
|
import { username } from '../../plugins/username/index.mjs';
|
|
11
11
|
import { Session } from 'inspector';
|
|
12
12
|
import { Passkey, passkey } from '../../plugins/passkey/index.mjs';
|
|
@@ -21,7 +21,7 @@ import { multiSession } from '../../plugins/multi-session/index.mjs';
|
|
|
21
21
|
import { emailOTP } from '../../plugins/email-otp/index.mjs';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.mjs';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.mjs';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.CHakYG_s.mjs';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.mjs';
|
|
27
27
|
export { deviceAuthorizationClient } from '../../plugins/device-authorization/index.mjs';
|
|
@@ -2,11 +2,11 @@ import { OrganizationOptions, organization, InferMember, InferInvitation, Team,
|
|
|
2
2
|
import { AccessControl, Role, Statements } from '../../plugins/access/index.js';
|
|
3
3
|
import * as nanostores from 'nanostores';
|
|
4
4
|
import { atom } from 'nanostores';
|
|
5
|
-
import { L as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { L as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.3es9ZU_K.js';
|
|
6
6
|
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.js';
|
|
7
7
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
8
8
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
9
|
-
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.
|
|
9
|
+
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.CAc8m5ps.js';
|
|
10
10
|
import { username } from '../../plugins/username/index.js';
|
|
11
11
|
import { Session } from 'inspector';
|
|
12
12
|
import { Passkey, passkey } from '../../plugins/passkey/index.js';
|
|
@@ -21,7 +21,7 @@ import { multiSession } from '../../plugins/multi-session/index.js';
|
|
|
21
21
|
import { emailOTP } from '../../plugins/email-otp/index.js';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.js';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.js';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.D1mfnXw8.js';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.js';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.js';
|
|
27
27
|
export { deviceAuthorizationClient } from '../../plugins/device-authorization/index.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const proxy = require('../../shared/better-auth.
|
|
3
|
+
const proxy = require('../../shared/better-auth.Df7v65t4.cjs');
|
|
4
4
|
const nanostores = require('nanostores');
|
|
5
5
|
const react = require('react');
|
|
6
6
|
require('@better-fetch/fetch');
|
|
7
|
-
require('../../shared/better-auth.
|
|
7
|
+
require('../../shared/better-auth.DxBcELEX.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
9
9
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
10
10
|
require('../../shared/better-auth.D9AYOecd.cjs');
|
|
@@ -4,10 +4,10 @@ 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, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.BW0VS3vZ.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.BOKSn3AP.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
data: InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
-
data: infer S;
|
|
71
|
-
error: null;
|
|
72
|
-
} | {
|
|
73
70
|
data: null;
|
|
74
71
|
error: {
|
|
75
72
|
message?: string | undefined;
|
|
76
73
|
status: number;
|
|
77
74
|
statusText: string;
|
|
78
75
|
};
|
|
76
|
+
} | {
|
|
77
|
+
data: infer S;
|
|
78
|
+
error: null;
|
|
79
79
|
} ? S : Res : never;
|
|
80
80
|
isPending: boolean;
|
|
81
81
|
error: BetterFetchError | null;
|
|
@@ -87,15 +87,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
87
87
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
88
88
|
getSession: () => Promise<infer Res>;
|
|
89
89
|
} ? Res extends {
|
|
90
|
-
data: infer S;
|
|
91
|
-
error: null;
|
|
92
|
-
} | {
|
|
93
90
|
data: null;
|
|
94
91
|
error: {
|
|
95
92
|
message?: string | undefined;
|
|
96
93
|
status: number;
|
|
97
94
|
statusText: string;
|
|
98
95
|
};
|
|
96
|
+
} | {
|
|
97
|
+
data: infer S;
|
|
98
|
+
error: null;
|
|
99
99
|
} ? S : Res : never>;
|
|
100
100
|
};
|
|
101
101
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -115,13 +115,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
115
115
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
116
116
|
};
|
|
117
117
|
})[];
|
|
118
|
+
redirect?: RequestRedirect | undefined;
|
|
118
119
|
method: string;
|
|
119
120
|
headers?: (HeadersInit & (HeadersInit | {
|
|
120
121
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
121
122
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
122
123
|
authorization: "Bearer" | "Basic";
|
|
123
124
|
})) | undefined;
|
|
124
|
-
redirect?: RequestRedirect | undefined;
|
|
125
125
|
cache?: RequestCache | undefined;
|
|
126
126
|
credentials?: RequestCredentials;
|
|
127
127
|
integrity?: string | undefined;
|
|
@@ -4,10 +4,10 @@ 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, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.D63GoHoT.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.vNMd9aBC.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
data: InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
-
data: infer S;
|
|
71
|
-
error: null;
|
|
72
|
-
} | {
|
|
73
70
|
data: null;
|
|
74
71
|
error: {
|
|
75
72
|
message?: string | undefined;
|
|
76
73
|
status: number;
|
|
77
74
|
statusText: string;
|
|
78
75
|
};
|
|
76
|
+
} | {
|
|
77
|
+
data: infer S;
|
|
78
|
+
error: null;
|
|
79
79
|
} ? S : Res : never;
|
|
80
80
|
isPending: boolean;
|
|
81
81
|
error: BetterFetchError | null;
|
|
@@ -87,15 +87,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
87
87
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
88
88
|
getSession: () => Promise<infer Res>;
|
|
89
89
|
} ? Res extends {
|
|
90
|
-
data: infer S;
|
|
91
|
-
error: null;
|
|
92
|
-
} | {
|
|
93
90
|
data: null;
|
|
94
91
|
error: {
|
|
95
92
|
message?: string | undefined;
|
|
96
93
|
status: number;
|
|
97
94
|
statusText: string;
|
|
98
95
|
};
|
|
96
|
+
} | {
|
|
97
|
+
data: infer S;
|
|
98
|
+
error: null;
|
|
99
99
|
} ? S : Res : never>;
|
|
100
100
|
};
|
|
101
101
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -115,13 +115,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
115
115
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
116
116
|
};
|
|
117
117
|
})[];
|
|
118
|
+
redirect?: RequestRedirect | undefined;
|
|
118
119
|
method: string;
|
|
119
120
|
headers?: (HeadersInit & (HeadersInit | {
|
|
120
121
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
121
122
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
122
123
|
authorization: "Bearer" | "Basic";
|
|
123
124
|
})) | undefined;
|
|
124
|
-
redirect?: RequestRedirect | undefined;
|
|
125
125
|
cache?: RequestCache | undefined;
|
|
126
126
|
credentials?: RequestCredentials;
|
|
127
127
|
integrity?: string | undefined;
|