better-auth 1.3.17 → 1.3.19
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 +5 -4
- 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 +7 -6
- 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/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.d.cts +2 -2
- package/dist/client/react/index.d.mts +2 -2
- package/dist/client/react/index.d.ts +2 -2
- package/dist/client/solid/index.d.cts +8 -8
- package/dist/client/solid/index.d.mts +8 -8
- package/dist/client/solid/index.d.ts +8 -8
- package/dist/client/svelte/index.d.cts +2 -2
- package/dist/client/svelte/index.d.mts +2 -2
- package/dist/client/svelte/index.d.ts +2 -2
- package/dist/client/vue/index.d.cts +11 -11
- package/dist/client/vue/index.d.mts +11 -11
- package/dist/client/vue/index.d.ts +11 -11
- 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/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 +5 -4
- 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 +5 -4
- package/dist/integrations/next-js.cjs +4 -3
- 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 +4 -3
- 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 +4 -3
- 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 +4 -3
- package/dist/integrations/svelte-kit.cjs +3 -2
- 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 +3 -2
- package/dist/oauth2/index.cjs +3 -2
- 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 +3 -2
- package/dist/plugins/admin/index.cjs +4 -3
- package/dist/plugins/admin/index.d.cts +5 -4
- package/dist/plugins/admin/index.d.mts +5 -4
- package/dist/plugins/admin/index.d.ts +5 -4
- package/dist/plugins/admin/index.mjs +4 -3
- package/dist/plugins/anonymous/index.cjs +3 -2
- 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 +3 -2
- package/dist/plugins/bearer/index.cjs +3 -2
- 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 +3 -2
- 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 +14 -6
- 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 +14 -6
- package/dist/plugins/device-authorization/index.cjs +50 -17
- 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 +50 -17
- package/dist/plugins/email-otp/index.cjs +68 -19
- 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 +68 -19
- package/dist/plugins/generic-oauth/index.cjs +42 -23
- 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 +42 -23
- package/dist/plugins/haveibeenpwned/index.cjs +3 -2
- 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 +3 -2
- package/dist/plugins/index.cjs +9 -8
- 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 +11 -10
- package/dist/plugins/jwt/index.cjs +3 -2
- 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 +3 -2
- package/dist/plugins/magic-link/index.cjs +30 -19
- package/dist/plugins/magic-link/index.mjs +30 -19
- package/dist/plugins/multi-session/index.cjs +9 -4
- 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 +9 -4
- package/dist/plugins/oauth-proxy/index.cjs +9 -4
- 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 +9 -4
- package/dist/plugins/oidc-provider/index.cjs +4 -3
- 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 +4 -3
- package/dist/plugins/one-tap/index.cjs +6 -5
- package/dist/plugins/one-tap/index.mjs +6 -5
- package/dist/plugins/one-time-token/index.cjs +5 -4
- 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 +5 -4
- package/dist/plugins/open-api/index.cjs +3 -2
- 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 +3 -2
- package/dist/plugins/organization/index.cjs +5 -4
- package/dist/plugins/organization/index.d.cts +1 -1
- package/dist/plugins/organization/index.d.mts +1 -1
- package/dist/plugins/organization/index.d.ts +1 -1
- package/dist/plugins/organization/index.mjs +5 -4
- package/dist/plugins/passkey/index.cjs +15 -10
- 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 +15 -10
- package/dist/plugins/phone-number/index.cjs +39 -22
- 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 +39 -22
- package/dist/plugins/siwe/index.cjs +3 -2
- 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 +3 -2
- package/dist/plugins/sso/index.cjs +87 -60
- 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 +87 -60
- package/dist/plugins/two-factor/index.cjs +48 -17
- 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 +48 -17
- package/dist/plugins/username/index.cjs +43 -36
- 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 +43 -36
- package/dist/shared/{better-auth.Dhor3u3I.d.mts → better-auth.1MLB7T7y.d.mts} +38 -42
- package/dist/shared/{better-auth.7CMbQ4RQ.d.mts → better-auth.B1AwX3-M.d.cts} +6 -6
- package/dist/shared/{better-auth.Ci0JNgp7.d.mts → better-auth.B1PutWq8.d.mts} +1 -1
- package/dist/shared/{better-auth.CWOdECKJ.cjs → better-auth.BA4t8YCt.cjs} +163 -69
- package/dist/shared/{better-auth.CNeuX76b.mjs → better-auth.BWSNYlLl.mjs} +2 -2
- package/dist/shared/{better-auth.7DsuGNVf.mjs → better-auth.Bb80Qhal.mjs} +49 -10
- package/dist/shared/{better-auth.D2l7V3eO.cjs → better-auth.BiEbNlTO.cjs} +83 -47
- package/dist/shared/{better-auth.Do-N98Vc.d.ts → better-auth.BkEatPJx.d.ts} +5 -5
- package/dist/shared/{better-auth.Czu_r1tV.cjs → better-auth.Br4Wfx0Y.cjs} +53 -27
- package/dist/shared/{better-auth.DHs-Mxcy.cjs → better-auth.BsV61G-v.cjs} +2 -2
- package/dist/shared/{better-auth.rbR3XU5A.d.ts → better-auth.C6Qw8sV1.d.ts} +1 -1
- package/dist/shared/{better-auth.B2VxXQPN.mjs → better-auth.CCPxTWHv.mjs} +245 -138
- package/dist/shared/{better-auth.C4NfPCyo.cjs → better-auth.CEyNnJh7.cjs} +121 -53
- package/dist/shared/{better-auth.Ojb8R38A.d.cts → better-auth.CGtFXoXL.d.mts} +6 -6
- package/dist/shared/{better-auth.ejRQe6H4.mjs → better-auth.CIqzVuC5.mjs} +14 -8
- package/dist/shared/{better-auth.BhKSn8nk.cjs → better-auth.CKHG0ATr.cjs} +3 -3
- package/dist/shared/{better-auth.C3Kf5JnA.cjs → better-auth.CWoe8tep.cjs} +14 -8
- package/dist/shared/{better-auth.DTFowPpU.mjs → better-auth.D2NikySY.mjs} +53 -27
- package/dist/shared/better-auth.D2xndZ2p.mjs +5 -0
- package/dist/shared/{better-auth.CT_zTzdl.mjs → better-auth.DAXvGuBK.mjs} +163 -69
- package/dist/shared/{better-auth.DYzo9KMV.mjs → better-auth.DHp6DNTP.mjs} +3 -3
- package/dist/shared/{better-auth.BbWr-Wga.d.cts → better-auth.DXWFn0FB.d.mts} +1 -1
- package/dist/shared/{better-auth.14oYMQQE.cjs → better-auth.DdoZ2a-L.cjs} +245 -138
- package/dist/shared/{better-auth.CAlXiYIT.mjs → better-auth.DkTnb5Io.mjs} +83 -47
- package/dist/shared/{better-auth.BeMlw-_s.d.cts → better-auth.DoZpelRk.d.cts} +38 -42
- package/dist/shared/{better-auth.KOW2Rynz.d.ts → better-auth.Dx9Ekyvb.d.ts} +1 -1
- package/dist/shared/{better-auth.BclXpYOz.cjs → better-auth.ZUJMxXV3.cjs} +49 -10
- package/dist/shared/{better-auth.uIr7L0v6.d.mts → better-auth.eEPAMsvS.d.cts} +1 -1
- package/dist/shared/{better-auth.B_Jb1_jF.d.cts → better-auth.mg6oM3Dz.d.cts} +1 -1
- package/dist/shared/{better-auth.WHclEjam.d.ts → better-auth.tUECpm9s.d.ts} +38 -42
- package/dist/shared/better-auth.uykCWCYS.cjs +7 -0
- package/dist/shared/{better-auth.CXICK9yV.mjs → better-auth.v8jPhtpB.mjs} +121 -53
- package/dist/social-providers/index.cjs +3 -2
- package/dist/social-providers/index.mjs +3 -2
- package/dist/test-utils/index.cjs +6 -5
- package/dist/test-utils/index.d.cts +66 -64
- package/dist/test-utils/index.d.mts +66 -64
- package/dist/test-utils/index.d.ts +66 -64
- package/dist/test-utils/index.mjs +6 -5
- 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.DoZpelRk.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.1MLB7T7y.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.tUECpm9s.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.DoZpelRk.cjs';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.DoZpelRk.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -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.1MLB7T7y.mjs';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.1MLB7T7y.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
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.tUECpm9s.js';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.tUECpm9s.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -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.DoZpelRk.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
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.1MLB7T7y.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
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.tUECpm9s.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
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.DoZpelRk.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.1MLB7T7y.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.tUECpm9s.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.DoZpelRk.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -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.1MLB7T7y.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -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.tUECpm9s.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -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.DoZpelRk.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.1MLB7T7y.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -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.tUECpm9s.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
package/dist/adapters/test.d.cts
CHANGED
package/dist/adapters/test.d.mts
CHANGED
package/dist/adapters/test.d.ts
CHANGED
package/dist/api/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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.BA4t8YCt.cjs');
|
|
5
|
+
const session = require('../shared/better-auth.CWoe8tep.cjs');
|
|
6
6
|
const z = require('zod');
|
|
7
7
|
const cookies_index = require('../shared/better-auth.oHfRlmfe.cjs');
|
|
8
8
|
const schema = require('../shared/better-auth.C0qxpMUS.cjs');
|
|
@@ -30,6 +30,7 @@ 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;
|
|
@@ -193,7 +194,7 @@ const signUpEmail = () => session.createAuthEndpoint(
|
|
|
193
194
|
rememberMe,
|
|
194
195
|
...additionalFields
|
|
195
196
|
} = body;
|
|
196
|
-
const isValidEmail = z__namespace.
|
|
197
|
+
const isValidEmail = z__namespace.email().safeParse(email);
|
|
197
198
|
if (!isValidEmail.success) {
|
|
198
199
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
199
200
|
message: session.BASE_ERROR_CODES.INVALID_EMAIL
|
|
@@ -217,7 +218,7 @@ const signUpEmail = () => session.createAuthEndpoint(
|
|
|
217
218
|
if (dbUser?.user) {
|
|
218
219
|
ctx.context.logger.info(`Sign-up attempt for existing email: ${email}`);
|
|
219
220
|
throw new betterCall.APIError("UNPROCESSABLE_ENTITY", {
|
|
220
|
-
message: session.BASE_ERROR_CODES.
|
|
221
|
+
message: session.BASE_ERROR_CODES.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL
|
|
221
222
|
});
|
|
222
223
|
}
|
|
223
224
|
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, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.DoZpelRk.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, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.1MLB7T7y.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, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.tUECpm9s.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,9 +1,9 @@
|
|
|
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.DAXvGuBK.mjs';
|
|
4
|
+
export { o as originCheck, T as sendVerificationEmailFn } from '../shared/better-auth.DAXvGuBK.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
8
|
import { s as setSessionCookie } from '../shared/better-auth.pyHheoY8.mjs';
|
|
9
9
|
import { h as parseUserInput } from '../shared/better-auth.Dlx1jCB2.mjs';
|
|
@@ -31,6 +31,7 @@ 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",
|
|
@@ -180,7 +181,7 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
180
181
|
rememberMe,
|
|
181
182
|
...additionalFields
|
|
182
183
|
} = body;
|
|
183
|
-
const isValidEmail = z.
|
|
184
|
+
const isValidEmail = z.email().safeParse(email);
|
|
184
185
|
if (!isValidEmail.success) {
|
|
185
186
|
throw new APIError("BAD_REQUEST", {
|
|
186
187
|
message: BASE_ERROR_CODES.INVALID_EMAIL
|
|
@@ -204,7 +205,7 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
204
205
|
if (dbUser?.user) {
|
|
205
206
|
ctx.context.logger.info(`Sign-up attempt for existing email: ${email}`);
|
|
206
207
|
throw new APIError("UNPROCESSABLE_ENTITY", {
|
|
207
|
-
message: BASE_ERROR_CODES.
|
|
208
|
+
message: BASE_ERROR_CODES.USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL
|
|
208
209
|
});
|
|
209
210
|
}
|
|
210
211
|
const additionalData = parseUserInput(
|
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.DoZpelRk.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.mg6oM3Dz.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.mg6oM3Dz.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.1MLB7T7y.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.B1PutWq8.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.B1PutWq8.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.tUECpm9s.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.Dx9Ekyvb.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.Dx9Ekyvb.js';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
@@ -2,9 +2,9 @@ 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 { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.DoZpelRk.cjs';
|
|
6
6
|
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
-
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.
|
|
7
|
+
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.mg6oM3Dz.cjs';
|
|
8
8
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
9
9
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
10
10
|
import { username } from '../../plugins/username/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.B1AwX3-M.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,9 +2,9 @@ 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 { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.1MLB7T7y.mjs';
|
|
6
6
|
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
-
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.
|
|
7
|
+
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.B1PutWq8.mjs';
|
|
8
8
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
9
9
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
10
10
|
import { username } from '../../plugins/username/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.CGtFXoXL.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,9 +2,9 @@ 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 { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { M as FieldAttribute, B as BetterAuthOptions, U as User, n as BetterAuthPlugin } from '../../shared/better-auth.tUECpm9s.js';
|
|
6
6
|
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.js';
|
|
7
|
-
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.
|
|
7
|
+
import { e as Store, C as ClientOptions, S as SessionQueryParams } from '../../shared/better-auth.Dx9Ekyvb.js';
|
|
8
8
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
9
9
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
10
10
|
import { username } from '../../plugins/username/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.BkEatPJx.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';
|
|
@@ -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.mg6oM3Dz.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.DoZpelRk.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'kysely';
|
|
@@ -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.B1PutWq8.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.1MLB7T7y.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'kysely';
|
|
@@ -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.Dx9Ekyvb.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
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.tUECpm9s.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'kysely';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.mg6oM3Dz.cjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.DoZpelRk.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -23,15 +23,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
23
23
|
data: InferClientAPI<Option> extends {
|
|
24
24
|
getSession: () => Promise<infer Res>;
|
|
25
25
|
} ? Res extends {
|
|
26
|
+
data: infer S;
|
|
27
|
+
error: null;
|
|
28
|
+
} | {
|
|
26
29
|
data: null;
|
|
27
30
|
error: {
|
|
28
31
|
message?: string | undefined;
|
|
29
32
|
status: number;
|
|
30
33
|
statusText: string;
|
|
31
34
|
};
|
|
32
|
-
} | {
|
|
33
|
-
data: infer S;
|
|
34
|
-
error: null;
|
|
35
35
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
36
36
|
isPending: boolean;
|
|
37
37
|
isRefetching: boolean;
|
|
@@ -41,15 +41,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
41
41
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
42
42
|
getSession: () => Promise<infer Res>;
|
|
43
43
|
} ? Res extends {
|
|
44
|
+
data: infer S;
|
|
45
|
+
error: null;
|
|
46
|
+
} | {
|
|
44
47
|
data: null;
|
|
45
48
|
error: {
|
|
46
49
|
message?: string | undefined;
|
|
47
50
|
status: number;
|
|
48
51
|
statusText: string;
|
|
49
52
|
};
|
|
50
|
-
} | {
|
|
51
|
-
data: infer S;
|
|
52
|
-
error: null;
|
|
53
53
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
54
54
|
};
|
|
55
55
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.B1PutWq8.mjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.1MLB7T7y.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -23,15 +23,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
23
23
|
data: InferClientAPI<Option> extends {
|
|
24
24
|
getSession: () => Promise<infer Res>;
|
|
25
25
|
} ? Res extends {
|
|
26
|
+
data: infer S;
|
|
27
|
+
error: null;
|
|
28
|
+
} | {
|
|
26
29
|
data: null;
|
|
27
30
|
error: {
|
|
28
31
|
message?: string | undefined;
|
|
29
32
|
status: number;
|
|
30
33
|
statusText: string;
|
|
31
34
|
};
|
|
32
|
-
} | {
|
|
33
|
-
data: infer S;
|
|
34
|
-
error: null;
|
|
35
35
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
36
36
|
isPending: boolean;
|
|
37
37
|
isRefetching: boolean;
|
|
@@ -41,15 +41,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
41
41
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
42
42
|
getSession: () => Promise<infer Res>;
|
|
43
43
|
} ? Res extends {
|
|
44
|
+
data: infer S;
|
|
45
|
+
error: null;
|
|
46
|
+
} | {
|
|
44
47
|
data: null;
|
|
45
48
|
error: {
|
|
46
49
|
message?: string | undefined;
|
|
47
50
|
status: number;
|
|
48
51
|
statusText: string;
|
|
49
52
|
};
|
|
50
|
-
} | {
|
|
51
|
-
data: infer S;
|
|
52
|
-
error: null;
|
|
53
53
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
54
54
|
};
|
|
55
55
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.Dx9Ekyvb.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
7
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.tUECpm9s.js';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -23,15 +23,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
23
23
|
data: InferClientAPI<Option> extends {
|
|
24
24
|
getSession: () => Promise<infer Res>;
|
|
25
25
|
} ? Res extends {
|
|
26
|
+
data: infer S;
|
|
27
|
+
error: null;
|
|
28
|
+
} | {
|
|
26
29
|
data: null;
|
|
27
30
|
error: {
|
|
28
31
|
message?: string | undefined;
|
|
29
32
|
status: number;
|
|
30
33
|
statusText: string;
|
|
31
34
|
};
|
|
32
|
-
} | {
|
|
33
|
-
data: infer S;
|
|
34
|
-
error: null;
|
|
35
35
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
36
36
|
isPending: boolean;
|
|
37
37
|
isRefetching: boolean;
|
|
@@ -41,15 +41,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
41
41
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
42
42
|
getSession: () => Promise<infer Res>;
|
|
43
43
|
} ? Res extends {
|
|
44
|
+
data: infer S;
|
|
45
|
+
error: null;
|
|
46
|
+
} | {
|
|
44
47
|
data: null;
|
|
45
48
|
error: {
|
|
46
49
|
message?: string | undefined;
|
|
47
50
|
status: number;
|
|
48
51
|
statusText: string;
|
|
49
52
|
};
|
|
50
|
-
} | {
|
|
51
|
-
data: infer S;
|
|
52
|
-
error: null;
|
|
53
53
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
54
54
|
};
|
|
55
55
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -4,9 +4,9 @@ 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.mg6oM3Dz.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
9
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.DoZpelRk.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'kysely';
|