better-auth 1.3.9-beta.2 → 1.3.9-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.cjs +5 -6
- package/dist/adapters/drizzle-adapter/index.d.cts +2 -3
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -3
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -3
- package/dist/adapters/drizzle-adapter/index.mjs +5 -6
- package/dist/adapters/index.cjs +5 -6
- package/dist/adapters/index.d.cts +3 -4
- package/dist/adapters/index.d.mts +3 -4
- package/dist/adapters/index.d.ts +3 -4
- package/dist/adapters/index.mjs +5 -6
- package/dist/adapters/kysely-adapter/index.cjs +6 -7
- package/dist/adapters/kysely-adapter/index.d.cts +2 -3
- package/dist/adapters/kysely-adapter/index.d.mts +2 -3
- package/dist/adapters/kysely-adapter/index.d.ts +2 -3
- package/dist/adapters/kysely-adapter/index.mjs +6 -7
- package/dist/adapters/memory-adapter/index.cjs +6 -7
- package/dist/adapters/memory-adapter/index.d.cts +2 -3
- package/dist/adapters/memory-adapter/index.d.mts +2 -3
- package/dist/adapters/memory-adapter/index.d.ts +2 -3
- package/dist/adapters/memory-adapter/index.mjs +6 -7
- package/dist/adapters/mongodb-adapter/index.cjs +6 -7
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -3
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -3
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -3
- package/dist/adapters/mongodb-adapter/index.mjs +6 -7
- package/dist/adapters/prisma-adapter/index.cjs +5 -6
- package/dist/adapters/prisma-adapter/index.d.cts +2 -3
- package/dist/adapters/prisma-adapter/index.d.mts +2 -3
- package/dist/adapters/prisma-adapter/index.d.ts +2 -3
- package/dist/adapters/prisma-adapter/index.mjs +5 -6
- package/dist/adapters/test.cjs +4 -5
- package/dist/adapters/test.d.cts +2 -3
- package/dist/adapters/test.d.mts +2 -3
- package/dist/adapters/test.d.ts +2 -3
- package/dist/adapters/test.mjs +4 -5
- package/dist/api/index.cjs +23 -6
- package/dist/api/index.d.cts +2 -3
- package/dist/api/index.d.mts +2 -3
- package/dist/api/index.d.ts +2 -3
- package/dist/api/index.mjs +24 -7
- package/dist/client/index.d.cts +4 -5
- package/dist/client/index.d.mts +4 -5
- package/dist/client/index.d.ts +4 -5
- package/dist/client/plugins/index.cjs +6 -7
- package/dist/client/plugins/index.d.cts +5 -5
- package/dist/client/plugins/index.d.mts +5 -5
- package/dist/client/plugins/index.d.ts +5 -5
- package/dist/client/plugins/index.mjs +6 -7
- package/dist/client/react/index.d.cts +4 -5
- package/dist/client/react/index.d.mts +4 -5
- package/dist/client/react/index.d.ts +4 -5
- package/dist/client/solid/index.d.cts +3 -4
- package/dist/client/solid/index.d.mts +3 -4
- package/dist/client/solid/index.d.ts +3 -4
- package/dist/client/svelte/index.d.cts +3 -4
- package/dist/client/svelte/index.d.mts +3 -4
- package/dist/client/svelte/index.d.ts +3 -4
- package/dist/client/vue/index.d.cts +3 -4
- package/dist/client/vue/index.d.mts +3 -4
- package/dist/client/vue/index.d.ts +3 -4
- package/dist/cookies/index.d.cts +2 -3
- package/dist/cookies/index.d.mts +2 -3
- package/dist/cookies/index.d.ts +2 -3
- package/dist/crypto/index.cjs +12 -13
- package/dist/crypto/index.mjs +4 -5
- package/dist/db/index.cjs +8 -9
- package/dist/db/index.d.cts +3 -4
- package/dist/db/index.d.mts +3 -4
- package/dist/db/index.d.ts +3 -4
- package/dist/db/index.mjs +8 -9
- package/dist/index.cjs +10 -11
- package/dist/index.d.cts +10 -11
- package/dist/index.d.mts +10 -11
- package/dist/index.d.ts +10 -11
- package/dist/index.mjs +10 -11
- package/dist/integrations/next-js.cjs +7 -8
- package/dist/integrations/next-js.d.cts +2 -3
- package/dist/integrations/next-js.d.mts +2 -3
- package/dist/integrations/next-js.d.ts +2 -3
- package/dist/integrations/next-js.mjs +7 -8
- package/dist/integrations/node.d.cts +2 -3
- package/dist/integrations/node.d.mts +2 -3
- package/dist/integrations/node.d.ts +2 -3
- package/dist/integrations/react-start.cjs +7 -8
- package/dist/integrations/react-start.d.cts +2 -3
- package/dist/integrations/react-start.d.mts +2 -3
- package/dist/integrations/react-start.d.ts +2 -3
- package/dist/integrations/react-start.mjs +7 -8
- package/dist/integrations/svelte-kit.cjs +5 -6
- package/dist/integrations/svelte-kit.d.cts +2 -3
- package/dist/integrations/svelte-kit.d.mts +2 -3
- package/dist/integrations/svelte-kit.d.ts +2 -3
- package/dist/integrations/svelte-kit.mjs +5 -6
- package/dist/oauth2/index.cjs +5 -6
- package/dist/oauth2/index.d.cts +4 -4
- package/dist/oauth2/index.d.mts +4 -4
- package/dist/oauth2/index.d.ts +4 -4
- package/dist/oauth2/index.mjs +5 -6
- package/dist/plugins/admin/index.cjs +6 -7
- package/dist/plugins/admin/index.d.cts +4 -5
- package/dist/plugins/admin/index.d.mts +4 -5
- package/dist/plugins/admin/index.d.ts +4 -5
- package/dist/plugins/admin/index.mjs +6 -7
- package/dist/plugins/anonymous/index.cjs +5 -6
- package/dist/plugins/anonymous/index.d.cts +2 -3
- package/dist/plugins/anonymous/index.d.mts +2 -3
- package/dist/plugins/anonymous/index.d.ts +2 -3
- package/dist/plugins/anonymous/index.mjs +5 -6
- package/dist/plugins/bearer/index.cjs +5 -6
- package/dist/plugins/bearer/index.d.cts +2 -3
- package/dist/plugins/bearer/index.d.mts +2 -3
- package/dist/plugins/bearer/index.d.ts +2 -3
- package/dist/plugins/bearer/index.mjs +5 -6
- package/dist/plugins/captcha/index.d.cts +2 -3
- package/dist/plugins/captcha/index.d.mts +2 -3
- package/dist/plugins/captcha/index.d.ts +2 -3
- package/dist/plugins/custom-session/index.cjs +5 -6
- package/dist/plugins/custom-session/index.d.cts +2 -3
- package/dist/plugins/custom-session/index.d.mts +2 -3
- package/dist/plugins/custom-session/index.d.ts +2 -3
- package/dist/plugins/custom-session/index.mjs +5 -6
- package/dist/plugins/device-authorization/index.cjs +4 -5
- package/dist/plugins/device-authorization/index.d.cts +2 -3
- package/dist/plugins/device-authorization/index.d.mts +2 -3
- package/dist/plugins/device-authorization/index.d.ts +2 -3
- package/dist/plugins/device-authorization/index.mjs +4 -5
- package/dist/plugins/email-otp/index.cjs +5 -6
- package/dist/plugins/email-otp/index.d.cts +2 -3
- package/dist/plugins/email-otp/index.d.mts +2 -3
- package/dist/plugins/email-otp/index.d.ts +2 -3
- package/dist/plugins/email-otp/index.mjs +5 -6
- package/dist/plugins/generic-oauth/index.cjs +5 -6
- package/dist/plugins/generic-oauth/index.d.cts +2 -3
- package/dist/plugins/generic-oauth/index.d.mts +2 -3
- package/dist/plugins/generic-oauth/index.d.ts +2 -3
- package/dist/plugins/generic-oauth/index.mjs +5 -6
- package/dist/plugins/haveibeenpwned/index.cjs +5 -6
- package/dist/plugins/haveibeenpwned/index.d.cts +2 -3
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -3
- package/dist/plugins/haveibeenpwned/index.d.ts +2 -3
- package/dist/plugins/haveibeenpwned/index.mjs +5 -6
- package/dist/plugins/index.cjs +17 -16
- package/dist/plugins/index.d.cts +7 -7
- package/dist/plugins/index.d.mts +7 -7
- package/dist/plugins/index.d.ts +7 -7
- package/dist/plugins/index.mjs +18 -17
- package/dist/plugins/jwt/index.cjs +6 -7
- package/dist/plugins/jwt/index.d.cts +2 -2
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.d.ts +2 -2
- package/dist/plugins/jwt/index.mjs +7 -8
- package/dist/plugins/magic-link/index.cjs +5 -6
- package/dist/plugins/magic-link/index.mjs +5 -6
- package/dist/plugins/multi-session/index.cjs +5 -6
- package/dist/plugins/multi-session/index.d.cts +2 -3
- package/dist/plugins/multi-session/index.d.mts +2 -3
- package/dist/plugins/multi-session/index.d.ts +2 -3
- package/dist/plugins/multi-session/index.mjs +5 -6
- package/dist/plugins/oauth-proxy/index.cjs +5 -6
- package/dist/plugins/oauth-proxy/index.d.cts +2 -3
- package/dist/plugins/oauth-proxy/index.d.mts +2 -3
- package/dist/plugins/oauth-proxy/index.d.ts +2 -3
- package/dist/plugins/oauth-proxy/index.mjs +5 -6
- package/dist/plugins/oidc-provider/index.cjs +7 -8
- package/dist/plugins/oidc-provider/index.d.cts +2 -3
- package/dist/plugins/oidc-provider/index.d.mts +2 -3
- package/dist/plugins/oidc-provider/index.d.ts +2 -3
- package/dist/plugins/oidc-provider/index.mjs +7 -8
- package/dist/plugins/one-tap/index.cjs +5 -6
- package/dist/plugins/one-tap/index.mjs +5 -6
- package/dist/plugins/one-time-token/index.cjs +8 -9
- package/dist/plugins/one-time-token/index.d.cts +2 -3
- package/dist/plugins/one-time-token/index.d.mts +2 -3
- package/dist/plugins/one-time-token/index.d.ts +2 -3
- package/dist/plugins/one-time-token/index.mjs +8 -9
- package/dist/plugins/open-api/index.cjs +44 -13
- package/dist/plugins/open-api/index.d.cts +2 -3
- package/dist/plugins/open-api/index.d.mts +2 -3
- package/dist/plugins/open-api/index.d.ts +2 -3
- package/dist/plugins/open-api/index.mjs +44 -13
- package/dist/plugins/organization/index.cjs +8 -9
- package/dist/plugins/organization/index.d.cts +2 -3
- package/dist/plugins/organization/index.d.mts +2 -3
- package/dist/plugins/organization/index.d.ts +2 -3
- package/dist/plugins/organization/index.mjs +8 -9
- package/dist/plugins/passkey/index.cjs +5 -6
- package/dist/plugins/passkey/index.d.cts +2 -3
- package/dist/plugins/passkey/index.d.mts +2 -3
- package/dist/plugins/passkey/index.d.ts +2 -3
- package/dist/plugins/passkey/index.mjs +5 -6
- package/dist/plugins/phone-number/index.cjs +5 -6
- package/dist/plugins/phone-number/index.d.cts +2 -3
- package/dist/plugins/phone-number/index.d.mts +2 -3
- package/dist/plugins/phone-number/index.d.ts +2 -3
- package/dist/plugins/phone-number/index.mjs +5 -6
- package/dist/plugins/siwe/index.cjs +7 -8
- package/dist/plugins/siwe/index.d.cts +2 -3
- package/dist/plugins/siwe/index.d.mts +2 -3
- package/dist/plugins/siwe/index.d.ts +2 -3
- package/dist/plugins/siwe/index.mjs +7 -8
- package/dist/plugins/sso/index.cjs +5 -6
- package/dist/plugins/sso/index.d.cts +2 -3
- package/dist/plugins/sso/index.d.mts +2 -3
- package/dist/plugins/sso/index.d.ts +2 -3
- package/dist/plugins/sso/index.mjs +5 -6
- package/dist/plugins/two-factor/index.cjs +5 -6
- package/dist/plugins/two-factor/index.d.cts +2 -3
- package/dist/plugins/two-factor/index.d.mts +2 -3
- package/dist/plugins/two-factor/index.d.ts +2 -3
- package/dist/plugins/two-factor/index.mjs +5 -6
- package/dist/plugins/username/index.cjs +20 -6
- package/dist/plugins/username/index.d.cts +19 -5
- package/dist/plugins/username/index.d.mts +19 -5
- package/dist/plugins/username/index.d.ts +19 -5
- package/dist/plugins/username/index.mjs +20 -6
- package/dist/shared/{better-auth.Ck4qhtF6.mjs → better-auth.5WTE-uUO.mjs} +5 -6
- package/dist/shared/{better-auth.DGuotwA1.d.cts → better-auth.6crrbXrP.d.cts} +308 -8
- package/dist/shared/{better-auth.gF8vGD5L.mjs → better-auth.7ZeACU2v.mjs} +5 -6
- package/dist/shared/{better-auth.CnIVrMwK.d.ts → better-auth.B-CitgLp.d.ts} +1 -1
- package/dist/shared/{better-auth.CXBi-DJc.cjs → better-auth.B-GguVp5.cjs} +7 -8
- package/dist/shared/{better-auth.CEc4wau_.d.cts → better-auth.B-V8R4q7.d.cts} +1 -1
- package/dist/shared/{better-auth.mA4L_-fq.d.ts → better-auth.B5FL4Q2B.d.ts} +2 -3
- package/dist/shared/{better-auth.EF9Iq11i.d.ts → better-auth.BAnyvLX6.d.ts} +1 -1
- package/dist/shared/{better-auth.C_gHVcnc.cjs → better-auth.BEYvND1Y.cjs} +1 -1
- package/dist/shared/{better-auth.TZOo7890.cjs → better-auth.BVUwL7ru.cjs} +1 -1
- package/dist/shared/{better-auth.BjjUH-Ka.mjs → better-auth.BWl2NB1B.mjs} +1 -1
- package/dist/shared/{better-auth.BlqpEUaH.mjs → better-auth.BZTBs9Yy.mjs} +7 -8
- package/dist/shared/{better-auth.CTMmErGI.d.cts → better-auth.BaMSx6K3.d.cts} +2 -3
- package/dist/shared/{better-auth.DXKgbji-.mjs → better-auth.BduPtJy8.mjs} +1 -1
- package/dist/shared/{better-auth.Dc0nj0we.cjs → better-auth.BlsHS68J.cjs} +22 -5
- package/dist/shared/{better-auth.Dyb4JEgv.cjs → better-auth.C5ZbY8Lo.cjs} +6 -7
- package/dist/shared/{better-auth.XP_NDvic.mjs → better-auth.C7KUdiwV.mjs} +1 -1
- package/dist/shared/{better-auth.BvYLXwvp.cjs → better-auth.CMwM5enp.cjs} +1 -0
- package/dist/shared/{better-auth.DtZRMuXL.cjs → better-auth.CRFFLEbh.cjs} +6 -7
- package/dist/shared/{better-auth.B3CPLvGC.mjs → better-auth.CSEecXfV.mjs} +22 -5
- package/dist/shared/{better-auth.DTV9hYzN.cjs → better-auth.CdLjcJ6z.cjs} +7 -8
- package/dist/shared/{better-auth.B8UjXTUa.mjs → better-auth.CtB1M_c7.mjs} +1 -1
- package/dist/shared/{better-auth.DFJOJkY1.cjs → better-auth.CtgUZb45.cjs} +7 -8
- package/dist/shared/{better-auth.3K3VNUn3.mjs → better-auth.D9PzlwY_.mjs} +6 -7
- package/dist/shared/{better-auth.CY7-Inqt.mjs → better-auth.DDuRjwGK.mjs} +1 -0
- package/dist/shared/{better-auth.B1yOWNP8.cjs → better-auth.DEKJQy4E.cjs} +1 -1
- package/dist/shared/{better-auth.DAUyNtx1.mjs → better-auth.DLsqH9Hw.mjs} +7 -8
- package/dist/shared/{better-auth.BuBqXPUp.mjs → better-auth.DOXaXTC6.mjs} +4 -5
- package/dist/shared/{better-auth.BWzwHY8m.cjs → better-auth.DPsIzckY.cjs} +5 -6
- package/dist/shared/{better-auth.DDDKwecE.mjs → better-auth.DQ6bmgix.mjs} +7 -8
- package/dist/shared/{better-auth.ChqAn6N0.d.mts → better-auth.DQLetyog.d.cts} +1 -1
- package/dist/shared/{better-auth.ZUo2dMO3.d.mts → better-auth.DR57bygo.d.mts} +2 -3
- package/dist/shared/{better-auth.fBcUR9cm.mjs → better-auth.DV0Lly8-.mjs} +6 -7
- package/dist/shared/{better-auth.WOu5GuAp.d.ts → better-auth.DtrrQDoO.d.ts} +5 -5
- package/dist/shared/{better-auth.aZPAhP-f.cjs → better-auth.QqWdVDmR.cjs} +5 -6
- package/dist/shared/{better-auth.DU2vRHKI.d.ts → better-auth.S3lnSz8Y.d.ts} +308 -8
- package/dist/shared/{better-auth.C9jfJUDF.cjs → better-auth.Szg-8evr.cjs} +4 -5
- package/dist/shared/{better-auth.llWU4_4y.d.cts → better-auth.UcasWcPe.d.cts} +5 -5
- package/dist/shared/{better-auth.YWGwdADP.cjs → better-auth.WyvofoOW.cjs} +1 -1
- package/dist/shared/{better-auth.f-bUldRg.d.mts → better-auth.YK5LQtFt.d.mts} +308 -8
- package/dist/shared/{better-auth.Df1_Wu_1.d.mts → better-auth.eYki6XKk.d.mts} +5 -5
- package/dist/shared/{better-auth.BZiffGTH.d.mts → better-auth.g9DlWOx7.d.mts} +1 -1
- package/dist/shared/{better-auth.D9BrVtBy.d.cts → better-auth.km36dqos.d.mts} +1 -1
- package/dist/social-providers/index.cjs +5 -6
- package/dist/social-providers/index.d.cts +1 -2
- package/dist/social-providers/index.d.mts +1 -2
- package/dist/social-providers/index.d.ts +1 -2
- package/dist/social-providers/index.mjs +5 -6
- package/dist/test-utils/index.cjs +13 -14
- package/dist/test-utils/index.d.cts +258 -4
- package/dist/test-utils/index.d.mts +258 -4
- package/dist/test-utils/index.d.ts +258 -4
- package/dist/test-utils/index.mjs +13 -14
- package/dist/types/index.d.cts +3 -4
- package/dist/types/index.d.mts +3 -4
- package/dist/types/index.d.ts +3 -4
- package/package.json +10 -5
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import 'zod/v4';
|
|
2
2
|
import 'better-call';
|
|
3
3
|
import '../../shared/better-auth.DV5EHeYG.mjs';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.CSEecXfV.mjs';
|
|
5
5
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
6
6
|
import '@better-auth/utils/base64';
|
|
7
7
|
import '@better-auth/utils/hmac';
|
|
8
8
|
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
9
9
|
import '@better-auth/utils/binary';
|
|
10
10
|
import '../../shared/better-auth.Dcv8PS7T.mjs';
|
|
11
|
-
import '../../shared/better-auth.
|
|
11
|
+
import '../../shared/better-auth.5WTE-uUO.mjs';
|
|
12
12
|
import '../organization/access/index.mjs';
|
|
13
13
|
import '@better-auth/utils/random';
|
|
14
14
|
import '@better-auth/utils/hash';
|
|
15
|
-
import '@noble/ciphers/chacha';
|
|
16
|
-
import '@noble/ciphers/utils';
|
|
17
|
-
import '@noble/ciphers/webcrypto';
|
|
15
|
+
import '@noble/ciphers/chacha.js';
|
|
16
|
+
import '@noble/ciphers/utils.js';
|
|
18
17
|
import 'jose';
|
|
19
|
-
import '@noble/hashes/scrypt';
|
|
18
|
+
import '@noble/hashes/scrypt.js';
|
|
20
19
|
import '@better-auth/utils';
|
|
21
20
|
import '@better-auth/utils/hex';
|
|
22
|
-
import '@noble/hashes/utils';
|
|
21
|
+
import '@noble/hashes/utils.js';
|
|
23
22
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
24
23
|
import 'kysely';
|
|
25
24
|
import '@better-auth/utils/otp';
|
|
@@ -27,8 +26,8 @@ import '../admin/access/index.mjs';
|
|
|
27
26
|
import '@better-fetch/fetch';
|
|
28
27
|
import 'zod';
|
|
29
28
|
import '../custom-session/index.mjs';
|
|
30
|
-
export { o as oneTimeToken } from '../../shared/better-auth.
|
|
31
|
-
import '@noble/hashes/sha3';
|
|
29
|
+
export { o as oneTimeToken } from '../../shared/better-auth.DQ6bmgix.mjs';
|
|
30
|
+
import '@noble/hashes/sha3.js';
|
|
32
31
|
import '../device-authorization/index.mjs';
|
|
33
32
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
34
33
|
import '../../shared/better-auth.UfVWArIB.mjs';
|
|
@@ -8,19 +8,18 @@ require('../../shared/better-auth.B3274wGK.cjs');
|
|
|
8
8
|
require('@better-auth/utils/random');
|
|
9
9
|
const betterCall = require('better-call');
|
|
10
10
|
require('@better-auth/utils/hash');
|
|
11
|
-
require('@noble/ciphers/chacha');
|
|
12
|
-
require('@noble/ciphers/utils');
|
|
13
|
-
require('@noble/ciphers/webcrypto');
|
|
11
|
+
require('@noble/ciphers/chacha.js');
|
|
12
|
+
require('@noble/ciphers/utils.js');
|
|
14
13
|
require('@better-auth/utils/base64');
|
|
15
14
|
require('jose');
|
|
16
|
-
require('@noble/hashes/scrypt');
|
|
15
|
+
require('@noble/hashes/scrypt.js');
|
|
17
16
|
require('@better-auth/utils');
|
|
18
17
|
require('@better-auth/utils/hex');
|
|
19
|
-
require('@noble/hashes/utils');
|
|
18
|
+
require('@noble/hashes/utils.js');
|
|
20
19
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
21
20
|
const getTables = require('../../shared/better-auth.Byugpn9h.cjs');
|
|
22
21
|
require('kysely');
|
|
23
|
-
require('../../shared/better-auth.
|
|
22
|
+
require('../../shared/better-auth.BlsHS68J.cjs');
|
|
24
23
|
const session = require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
25
24
|
require('@better-auth/utils/hmac');
|
|
26
25
|
require('@better-auth/utils/binary');
|
|
@@ -66,11 +65,10 @@ function getParameters(options) {
|
|
|
66
65
|
name: key,
|
|
67
66
|
in: "query",
|
|
68
67
|
schema: {
|
|
69
|
-
|
|
68
|
+
...processZodType(value),
|
|
70
69
|
..."minLength" in value && value.minLength ? {
|
|
71
70
|
minLength: value.minLength
|
|
72
|
-
} : {}
|
|
73
|
-
description: value.description
|
|
71
|
+
} : {}
|
|
74
72
|
}
|
|
75
73
|
});
|
|
76
74
|
}
|
|
@@ -90,10 +88,7 @@ function getRequestBody(options) {
|
|
|
90
88
|
const required = [];
|
|
91
89
|
Object.entries(shape).forEach(([key, value]) => {
|
|
92
90
|
if (value instanceof z.ZodType) {
|
|
93
|
-
properties[key] =
|
|
94
|
-
type: getTypeFromZodType(value),
|
|
95
|
-
description: value.description
|
|
96
|
-
};
|
|
91
|
+
properties[key] = processZodType(value);
|
|
97
92
|
if (!(value instanceof z.z.ZodOptional)) {
|
|
98
93
|
required.push(key);
|
|
99
94
|
}
|
|
@@ -114,6 +109,42 @@ function getRequestBody(options) {
|
|
|
114
109
|
}
|
|
115
110
|
return void 0;
|
|
116
111
|
}
|
|
112
|
+
function processZodType(zodType) {
|
|
113
|
+
if (zodType instanceof z.ZodOptional) {
|
|
114
|
+
const innerType = zodType._def.innerType;
|
|
115
|
+
const innerSchema = processZodType(innerType);
|
|
116
|
+
return {
|
|
117
|
+
...innerSchema,
|
|
118
|
+
nullable: true
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
if (zodType instanceof z.ZodObject) {
|
|
122
|
+
const shape = zodType.shape;
|
|
123
|
+
if (shape) {
|
|
124
|
+
const properties = {};
|
|
125
|
+
const required = [];
|
|
126
|
+
Object.entries(shape).forEach(([key, value]) => {
|
|
127
|
+
if (value instanceof z.ZodType) {
|
|
128
|
+
properties[key] = processZodType(value);
|
|
129
|
+
if (!(value instanceof z.z.ZodOptional)) {
|
|
130
|
+
required.push(key);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
return {
|
|
135
|
+
type: "object",
|
|
136
|
+
properties,
|
|
137
|
+
...required.length > 0 ? { required } : {},
|
|
138
|
+
description: zodType.description
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
const baseSchema = {
|
|
143
|
+
type: getTypeFromZodType(zodType),
|
|
144
|
+
description: zodType.description
|
|
145
|
+
};
|
|
146
|
+
return baseSchema;
|
|
147
|
+
}
|
|
117
148
|
function getResponse(responses) {
|
|
118
149
|
return {
|
|
119
150
|
"400": {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { OpenAPIParameter, OpenAPISchemaType } from 'better-call';
|
|
3
|
-
import { h as AuthContext, B as BetterAuthOptions } from '../../shared/better-auth.
|
|
3
|
+
import { h as AuthContext, B as BetterAuthOptions } from '../../shared/better-auth.6crrbXrP.cjs';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'zod/v4';
|
|
7
|
-
import '../../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'zod';
|
|
11
10
|
import 'better-sqlite3';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { OpenAPIParameter, OpenAPISchemaType } from 'better-call';
|
|
3
|
-
import { h as AuthContext, B as BetterAuthOptions } from '../../shared/better-auth.
|
|
3
|
+
import { h as AuthContext, B as BetterAuthOptions } from '../../shared/better-auth.YK5LQtFt.mjs';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'zod/v4';
|
|
7
|
-
import '../../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'zod';
|
|
11
10
|
import 'better-sqlite3';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { OpenAPIParameter, OpenAPISchemaType } from 'better-call';
|
|
3
|
-
import { h as AuthContext, B as BetterAuthOptions } from '../../shared/better-auth.
|
|
3
|
+
import { h as AuthContext, B as BetterAuthOptions } from '../../shared/better-auth.S3lnSz8Y.js';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.js';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'zod/v4';
|
|
7
|
-
import '../../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'zod';
|
|
11
10
|
import 'better-sqlite3';
|
|
@@ -6,19 +6,18 @@ import '../../shared/better-auth.BjBlybv-.mjs';
|
|
|
6
6
|
import '@better-auth/utils/random';
|
|
7
7
|
import { APIError } from 'better-call';
|
|
8
8
|
import '@better-auth/utils/hash';
|
|
9
|
-
import '@noble/ciphers/chacha';
|
|
10
|
-
import '@noble/ciphers/utils';
|
|
11
|
-
import '@noble/ciphers/webcrypto';
|
|
9
|
+
import '@noble/ciphers/chacha.js';
|
|
10
|
+
import '@noble/ciphers/utils.js';
|
|
12
11
|
import '@better-auth/utils/base64';
|
|
13
12
|
import 'jose';
|
|
14
|
-
import '@noble/hashes/scrypt';
|
|
13
|
+
import '@noble/hashes/scrypt.js';
|
|
15
14
|
import '@better-auth/utils';
|
|
16
15
|
import '@better-auth/utils/hex';
|
|
17
|
-
import '@noble/hashes/utils';
|
|
16
|
+
import '@noble/hashes/utils.js';
|
|
18
17
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
19
18
|
import { g as getAuthTables } from '../../shared/better-auth.B_PTVODM.mjs';
|
|
20
19
|
import 'kysely';
|
|
21
|
-
import '../../shared/better-auth.
|
|
20
|
+
import '../../shared/better-auth.CSEecXfV.mjs';
|
|
22
21
|
import { a as createAuthEndpoint } from '../../shared/better-auth.DV5EHeYG.mjs';
|
|
23
22
|
import '@better-auth/utils/hmac';
|
|
24
23
|
import '@better-auth/utils/binary';
|
|
@@ -64,11 +63,10 @@ function getParameters(options) {
|
|
|
64
63
|
name: key,
|
|
65
64
|
in: "query",
|
|
66
65
|
schema: {
|
|
67
|
-
|
|
66
|
+
...processZodType(value),
|
|
68
67
|
..."minLength" in value && value.minLength ? {
|
|
69
68
|
minLength: value.minLength
|
|
70
|
-
} : {}
|
|
71
|
-
description: value.description
|
|
69
|
+
} : {}
|
|
72
70
|
}
|
|
73
71
|
});
|
|
74
72
|
}
|
|
@@ -88,10 +86,7 @@ function getRequestBody(options) {
|
|
|
88
86
|
const required = [];
|
|
89
87
|
Object.entries(shape).forEach(([key, value]) => {
|
|
90
88
|
if (value instanceof ZodType) {
|
|
91
|
-
properties[key] =
|
|
92
|
-
type: getTypeFromZodType(value),
|
|
93
|
-
description: value.description
|
|
94
|
-
};
|
|
89
|
+
properties[key] = processZodType(value);
|
|
95
90
|
if (!(value instanceof z.ZodOptional)) {
|
|
96
91
|
required.push(key);
|
|
97
92
|
}
|
|
@@ -112,6 +107,42 @@ function getRequestBody(options) {
|
|
|
112
107
|
}
|
|
113
108
|
return void 0;
|
|
114
109
|
}
|
|
110
|
+
function processZodType(zodType) {
|
|
111
|
+
if (zodType instanceof ZodOptional) {
|
|
112
|
+
const innerType = zodType._def.innerType;
|
|
113
|
+
const innerSchema = processZodType(innerType);
|
|
114
|
+
return {
|
|
115
|
+
...innerSchema,
|
|
116
|
+
nullable: true
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
if (zodType instanceof ZodObject) {
|
|
120
|
+
const shape = zodType.shape;
|
|
121
|
+
if (shape) {
|
|
122
|
+
const properties = {};
|
|
123
|
+
const required = [];
|
|
124
|
+
Object.entries(shape).forEach(([key, value]) => {
|
|
125
|
+
if (value instanceof ZodType) {
|
|
126
|
+
properties[key] = processZodType(value);
|
|
127
|
+
if (!(value instanceof z.ZodOptional)) {
|
|
128
|
+
required.push(key);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
return {
|
|
133
|
+
type: "object",
|
|
134
|
+
properties,
|
|
135
|
+
...required.length > 0 ? { required } : {},
|
|
136
|
+
description: zodType.description
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
const baseSchema = {
|
|
141
|
+
type: getTypeFromZodType(zodType),
|
|
142
|
+
description: zodType.description
|
|
143
|
+
};
|
|
144
|
+
return baseSchema;
|
|
145
|
+
}
|
|
115
146
|
function getResponse(responses) {
|
|
116
147
|
return {
|
|
117
148
|
"400": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const organization = require('../../shared/better-auth.
|
|
3
|
+
const organization = require('../../shared/better-auth.CtgUZb45.cjs');
|
|
4
4
|
require('better-call');
|
|
5
5
|
require('zod/v4');
|
|
6
6
|
require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
@@ -14,17 +14,16 @@ require('../../shared/better-auth.vPQBmXQL.cjs');
|
|
|
14
14
|
require('../../shared/better-auth.B3274wGK.cjs');
|
|
15
15
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
16
16
|
require('@better-auth/utils/binary');
|
|
17
|
-
require('../../shared/better-auth.
|
|
17
|
+
require('../../shared/better-auth.BlsHS68J.cjs');
|
|
18
18
|
require('@better-auth/utils/hash');
|
|
19
19
|
require('../../crypto/index.cjs');
|
|
20
|
-
require('@noble/ciphers/chacha');
|
|
21
|
-
require('@noble/ciphers/utils');
|
|
22
|
-
require('@noble/ciphers/webcrypto');
|
|
20
|
+
require('@noble/ciphers/chacha.js');
|
|
21
|
+
require('@noble/ciphers/utils.js');
|
|
23
22
|
require('jose');
|
|
24
|
-
require('@noble/hashes/scrypt');
|
|
23
|
+
require('@noble/hashes/scrypt.js');
|
|
25
24
|
require('@better-auth/utils');
|
|
26
25
|
require('@better-auth/utils/hex');
|
|
27
|
-
require('@noble/hashes/utils');
|
|
26
|
+
require('@noble/hashes/utils.js');
|
|
28
27
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
29
28
|
require('@better-auth/utils/random');
|
|
30
29
|
require('@better-fetch/fetch');
|
|
@@ -33,8 +32,8 @@ require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
|
33
32
|
require('../../shared/better-auth.gN3g-znU.cjs');
|
|
34
33
|
require('defu');
|
|
35
34
|
require('../../shared/better-auth.DhsGZ30Q.cjs');
|
|
36
|
-
require('../../shared/better-auth.
|
|
37
|
-
require('../../shared/better-auth.
|
|
35
|
+
require('../../shared/better-auth.DPsIzckY.cjs');
|
|
36
|
+
require('../../shared/better-auth.DEKJQy4E.cjs');
|
|
38
37
|
require('./access/index.cjs');
|
|
39
38
|
require('../access/index.cjs');
|
|
40
39
|
require('../../shared/better-auth.CpS2FLSa.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
-
import { U as User, S as Session, h as AuthContext, J as FieldAttribute, ai as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { U as User, S as Session, h as AuthContext, J as FieldAttribute, ai as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.6crrbXrP.cjs';
|
|
3
3
|
import { AccessControl, Role, Subset, Statements } from '../access/index.cjs';
|
|
4
4
|
import * as better_call from 'better-call';
|
|
5
5
|
import { Prettify } from 'better-call';
|
|
@@ -7,8 +7,7 @@ import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
|
7
7
|
import { defaultRoles } from './access/index.cjs';
|
|
8
8
|
export { adminAc, defaultAc, defaultStatements, memberAc, ownerAc } from './access/index.cjs';
|
|
9
9
|
import 'kysely';
|
|
10
|
-
import '../../shared/better-auth.
|
|
11
|
-
import 'jose';
|
|
10
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
12
11
|
import 'zod/v4/core';
|
|
13
12
|
import 'zod';
|
|
14
13
|
import 'better-sqlite3';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
-
import { U as User, S as Session, h as AuthContext, J as FieldAttribute, ai as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { U as User, S as Session, h as AuthContext, J as FieldAttribute, ai as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.YK5LQtFt.mjs';
|
|
3
3
|
import { AccessControl, Role, Subset, Statements } from '../access/index.mjs';
|
|
4
4
|
import * as better_call from 'better-call';
|
|
5
5
|
import { Prettify } from 'better-call';
|
|
@@ -7,8 +7,7 @@ import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
|
7
7
|
import { defaultRoles } from './access/index.mjs';
|
|
8
8
|
export { adminAc, defaultAc, defaultStatements, memberAc, ownerAc } from './access/index.mjs';
|
|
9
9
|
import 'kysely';
|
|
10
|
-
import '../../shared/better-auth.
|
|
11
|
-
import 'jose';
|
|
10
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
12
11
|
import 'zod/v4/core';
|
|
13
12
|
import 'zod';
|
|
14
13
|
import 'better-sqlite3';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
-
import { U as User, S as Session, h as AuthContext, J as FieldAttribute, ai as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { U as User, S as Session, h as AuthContext, J as FieldAttribute, ai as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.S3lnSz8Y.js';
|
|
3
3
|
import { AccessControl, Role, Subset, Statements } from '../access/index.js';
|
|
4
4
|
import * as better_call from 'better-call';
|
|
5
5
|
import { Prettify } from 'better-call';
|
|
@@ -7,8 +7,7 @@ import { L as LiteralString } from '../../shared/better-auth.DTtXpZYr.js';
|
|
|
7
7
|
import { defaultRoles } from './access/index.js';
|
|
8
8
|
export { adminAc, defaultAc, defaultStatements, memberAc, ownerAc } from './access/index.js';
|
|
9
9
|
import 'kysely';
|
|
10
|
-
import '../../shared/better-auth.
|
|
11
|
-
import 'jose';
|
|
10
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
12
11
|
import 'zod/v4/core';
|
|
13
12
|
import 'zod';
|
|
14
13
|
import 'better-sqlite3';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { o as organization, p as parseRoles } from '../../shared/better-auth.
|
|
1
|
+
export { o as organization, p as parseRoles } from '../../shared/better-auth.BZTBs9Yy.mjs';
|
|
2
2
|
import 'better-call';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../../shared/better-auth.DV5EHeYG.mjs';
|
|
@@ -12,17 +12,16 @@ import '../../shared/better-auth.BZZKN1g7.mjs';
|
|
|
12
12
|
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
13
13
|
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
14
14
|
import '@better-auth/utils/binary';
|
|
15
|
-
import '../../shared/better-auth.
|
|
15
|
+
import '../../shared/better-auth.CSEecXfV.mjs';
|
|
16
16
|
import '@better-auth/utils/hash';
|
|
17
17
|
import '../../crypto/index.mjs';
|
|
18
|
-
import '@noble/ciphers/chacha';
|
|
19
|
-
import '@noble/ciphers/utils';
|
|
20
|
-
import '@noble/ciphers/webcrypto';
|
|
18
|
+
import '@noble/ciphers/chacha.js';
|
|
19
|
+
import '@noble/ciphers/utils.js';
|
|
21
20
|
import 'jose';
|
|
22
|
-
import '@noble/hashes/scrypt';
|
|
21
|
+
import '@noble/hashes/scrypt.js';
|
|
23
22
|
import '@better-auth/utils';
|
|
24
23
|
import '@better-auth/utils/hex';
|
|
25
|
-
import '@noble/hashes/utils';
|
|
24
|
+
import '@noble/hashes/utils.js';
|
|
26
25
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
27
26
|
import '@better-auth/utils/random';
|
|
28
27
|
import '@better-fetch/fetch';
|
|
@@ -31,8 +30,8 @@ import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
|
31
30
|
import '../../shared/better-auth.Dcv8PS7T.mjs';
|
|
32
31
|
import 'defu';
|
|
33
32
|
import '../../shared/better-auth.ffWeg50w.mjs';
|
|
34
|
-
import '../../shared/better-auth.
|
|
35
|
-
import '../../shared/better-auth.
|
|
33
|
+
import '../../shared/better-auth.5WTE-uUO.mjs';
|
|
34
|
+
import '../../shared/better-auth.BWl2NB1B.mjs';
|
|
36
35
|
import './access/index.mjs';
|
|
37
36
|
import '../access/index.mjs';
|
|
38
37
|
import '../../shared/better-auth.DrJWSFx6.mjs';
|
|
@@ -5,22 +5,21 @@ const betterCall = require('better-call');
|
|
|
5
5
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
6
6
|
const z = require('zod/v4');
|
|
7
7
|
const session = require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
8
|
-
require('../../shared/better-auth.
|
|
8
|
+
require('../../shared/better-auth.BlsHS68J.cjs');
|
|
9
9
|
const cookies_index = require('../../shared/better-auth.D5q0JUiv.cjs');
|
|
10
10
|
const schema$1 = require('../../shared/better-auth.gN3g-znU.cjs');
|
|
11
11
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
12
12
|
require('../../shared/better-auth.B3274wGK.cjs');
|
|
13
13
|
const id = require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
14
14
|
require('@better-auth/utils/hash');
|
|
15
|
-
require('@noble/ciphers/chacha');
|
|
16
|
-
require('@noble/ciphers/utils');
|
|
17
|
-
require('@noble/ciphers/webcrypto');
|
|
15
|
+
require('@noble/ciphers/chacha.js');
|
|
16
|
+
require('@noble/ciphers/utils.js');
|
|
18
17
|
const base64 = require('@better-auth/utils/base64');
|
|
19
18
|
require('jose');
|
|
20
|
-
require('@noble/hashes/scrypt');
|
|
19
|
+
require('@noble/hashes/scrypt.js');
|
|
21
20
|
require('@better-auth/utils');
|
|
22
21
|
require('@better-auth/utils/hex');
|
|
23
|
-
require('@noble/hashes/utils');
|
|
22
|
+
require('@noble/hashes/utils.js');
|
|
24
23
|
require('@better-auth/utils/random');
|
|
25
24
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
26
25
|
require('../../shared/better-auth.vPQBmXQL.cjs');
|
|
@@ -2,11 +2,10 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.6crrbXrP.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
8
|
-
import '../../shared/better-auth.
|
|
9
|
-
import 'jose';
|
|
8
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
10
9
|
import 'zod/v4/core';
|
|
11
10
|
import 'zod';
|
|
12
11
|
import 'better-sqlite3';
|
|
@@ -2,11 +2,10 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.YK5LQtFt.mjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
8
|
-
import '../../shared/better-auth.
|
|
9
|
-
import 'jose';
|
|
8
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
10
9
|
import 'zod/v4/core';
|
|
11
10
|
import 'zod';
|
|
12
11
|
import 'better-sqlite3';
|
|
@@ -2,11 +2,10 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.S3lnSz8Y.js';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
8
|
-
import '../../shared/better-auth.
|
|
9
|
-
import 'jose';
|
|
8
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
10
9
|
import 'zod/v4/core';
|
|
11
10
|
import 'zod';
|
|
12
11
|
import 'better-sqlite3';
|
|
@@ -3,22 +3,21 @@ import { APIError } from 'better-call';
|
|
|
3
3
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
5
|
import { a as createAuthEndpoint, s as sessionMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx } from '../../shared/better-auth.DV5EHeYG.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CSEecXfV.mjs';
|
|
7
7
|
import { s as setSessionCookie } from '../../shared/better-auth.UfVWArIB.mjs';
|
|
8
8
|
import { m as mergeSchema } from '../../shared/better-auth.Dcv8PS7T.mjs';
|
|
9
9
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
10
10
|
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
11
11
|
import { g as generateId } from '../../shared/better-auth.BUPPRXfK.mjs';
|
|
12
12
|
import '@better-auth/utils/hash';
|
|
13
|
-
import '@noble/ciphers/chacha';
|
|
14
|
-
import '@noble/ciphers/utils';
|
|
15
|
-
import '@noble/ciphers/webcrypto';
|
|
13
|
+
import '@noble/ciphers/chacha.js';
|
|
14
|
+
import '@noble/ciphers/utils.js';
|
|
16
15
|
import { base64 } from '@better-auth/utils/base64';
|
|
17
16
|
import 'jose';
|
|
18
|
-
import '@noble/hashes/scrypt';
|
|
17
|
+
import '@noble/hashes/scrypt.js';
|
|
19
18
|
import '@better-auth/utils';
|
|
20
19
|
import '@better-auth/utils/hex';
|
|
21
|
-
import '@noble/hashes/utils';
|
|
20
|
+
import '@noble/hashes/utils.js';
|
|
22
21
|
import '@better-auth/utils/random';
|
|
23
22
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
24
23
|
import '../../shared/better-auth.BZZKN1g7.mjs';
|
|
@@ -5,7 +5,7 @@ const session = require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
6
|
const schema$1 = require('../../shared/better-auth.gN3g-znU.cjs');
|
|
7
7
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
8
|
-
require('../../shared/better-auth.
|
|
8
|
+
require('../../shared/better-auth.BlsHS68J.cjs');
|
|
9
9
|
const cookies_index = require('../../shared/better-auth.D5q0JUiv.cjs');
|
|
10
10
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
11
11
|
require('../../shared/better-auth.B3274wGK.cjs');
|
|
@@ -17,14 +17,13 @@ require('@better-auth/utils/binary');
|
|
|
17
17
|
require('@better-auth/utils/random');
|
|
18
18
|
require('@better-auth/utils/hash');
|
|
19
19
|
require('../../crypto/index.cjs');
|
|
20
|
-
require('@noble/ciphers/chacha');
|
|
21
|
-
require('@noble/ciphers/utils');
|
|
22
|
-
require('@noble/ciphers/webcrypto');
|
|
20
|
+
require('@noble/ciphers/chacha.js');
|
|
21
|
+
require('@noble/ciphers/utils.js');
|
|
23
22
|
require('jose');
|
|
24
|
-
require('@noble/hashes/scrypt');
|
|
23
|
+
require('@noble/hashes/scrypt.js');
|
|
25
24
|
require('@better-auth/utils');
|
|
26
25
|
require('@better-auth/utils/hex');
|
|
27
|
-
require('@noble/hashes/utils');
|
|
26
|
+
require('@noble/hashes/utils.js');
|
|
28
27
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
29
28
|
require('@better-fetch/fetch');
|
|
30
29
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.6crrbXrP.cjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
7
|
-
import 'jose';
|
|
6
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-sqlite3';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.YK5LQtFt.mjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
7
|
-
import 'jose';
|
|
6
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-sqlite3';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.S3lnSz8Y.js';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
7
|
-
import 'jose';
|
|
6
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-sqlite3';
|
|
@@ -3,7 +3,7 @@ import { a as createAuthEndpoint, g as getSessionFromCtx, B as BASE_ERROR_CODES
|
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import { m as mergeSchema } from '../../shared/better-auth.Dcv8PS7T.mjs';
|
|
5
5
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CSEecXfV.mjs';
|
|
7
7
|
import { s as setSessionCookie } from '../../shared/better-auth.UfVWArIB.mjs';
|
|
8
8
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
9
9
|
import '../../shared/better-auth.BjBlybv-.mjs';
|
|
@@ -15,14 +15,13 @@ import '@better-auth/utils/binary';
|
|
|
15
15
|
import '@better-auth/utils/random';
|
|
16
16
|
import '@better-auth/utils/hash';
|
|
17
17
|
import '../../crypto/index.mjs';
|
|
18
|
-
import '@noble/ciphers/chacha';
|
|
19
|
-
import '@noble/ciphers/utils';
|
|
20
|
-
import '@noble/ciphers/webcrypto';
|
|
18
|
+
import '@noble/ciphers/chacha.js';
|
|
19
|
+
import '@noble/ciphers/utils.js';
|
|
21
20
|
import 'jose';
|
|
22
|
-
import '@noble/hashes/scrypt';
|
|
21
|
+
import '@noble/hashes/scrypt.js';
|
|
23
22
|
import '@better-auth/utils';
|
|
24
23
|
import '@better-auth/utils/hex';
|
|
25
|
-
import '@noble/hashes/utils';
|
|
24
|
+
import '@noble/hashes/utils.js';
|
|
26
25
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
27
26
|
import '@better-fetch/fetch';
|
|
28
27
|
import '../../shared/better-auth.CuS_eDdK.mjs';
|