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
package/dist/adapters/test.cjs
CHANGED
|
@@ -5,15 +5,14 @@ const id = require('../shared/better-auth.Bg6iw3ig.cjs');
|
|
|
5
5
|
require('zod/v4');
|
|
6
6
|
require('better-call');
|
|
7
7
|
require('@better-auth/utils/hash');
|
|
8
|
-
require('@noble/ciphers/chacha');
|
|
9
|
-
require('@noble/ciphers/utils');
|
|
10
|
-
require('@noble/ciphers/webcrypto');
|
|
8
|
+
require('@noble/ciphers/chacha.js');
|
|
9
|
+
require('@noble/ciphers/utils.js');
|
|
11
10
|
require('@better-auth/utils/base64');
|
|
12
11
|
require('jose');
|
|
13
|
-
require('@noble/hashes/scrypt');
|
|
12
|
+
require('@noble/hashes/scrypt.js');
|
|
14
13
|
require('@better-auth/utils');
|
|
15
14
|
require('@better-auth/utils/hex');
|
|
16
|
-
require('@noble/hashes/utils');
|
|
15
|
+
require('@noble/hashes/utils.js');
|
|
17
16
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
18
17
|
require('../shared/better-auth.B3274wGK.cjs');
|
|
19
18
|
require('@better-auth/utils/random');
|
package/dist/adapters/test.d.cts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.6crrbXrP.cjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod/v4';
|
|
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';
|
package/dist/adapters/test.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.YK5LQtFt.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod/v4';
|
|
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';
|
package/dist/adapters/test.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.S3lnSz8Y.js';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod/v4';
|
|
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';
|
package/dist/adapters/test.mjs
CHANGED
|
@@ -3,15 +3,14 @@ import { g as generateId } from '../shared/better-auth.BUPPRXfK.mjs';
|
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '@better-auth/utils/hash';
|
|
6
|
-
import '@noble/ciphers/chacha';
|
|
7
|
-
import '@noble/ciphers/utils';
|
|
8
|
-
import '@noble/ciphers/webcrypto';
|
|
6
|
+
import '@noble/ciphers/chacha.js';
|
|
7
|
+
import '@noble/ciphers/utils.js';
|
|
9
8
|
import '@better-auth/utils/base64';
|
|
10
9
|
import 'jose';
|
|
11
|
-
import '@noble/hashes/scrypt';
|
|
10
|
+
import '@noble/hashes/scrypt.js';
|
|
12
11
|
import '@better-auth/utils';
|
|
13
12
|
import '@better-auth/utils/hex';
|
|
14
|
-
import '@noble/hashes/utils';
|
|
13
|
+
import '@noble/hashes/utils.js';
|
|
15
14
|
import '../shared/better-auth.B4Qoxdgc.mjs';
|
|
16
15
|
import '../shared/better-auth.BjBlybv-.mjs';
|
|
17
16
|
import '@better-auth/utils/random';
|
package/dist/api/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
4
|
+
const socialProviders_index = require('../shared/better-auth.BlsHS68J.cjs');
|
|
5
5
|
const session = require('../shared/better-auth.CLv80Pwz.cjs');
|
|
6
6
|
const z = require('zod/v4');
|
|
7
7
|
const cookies_index = require('../shared/better-auth.D5q0JUiv.cjs');
|
|
@@ -14,14 +14,13 @@ require('../shared/better-auth.C1hdVENX.cjs');
|
|
|
14
14
|
require('@better-auth/utils/hash');
|
|
15
15
|
require('@better-auth/utils/base64');
|
|
16
16
|
require('../crypto/index.cjs');
|
|
17
|
-
require('@noble/ciphers/chacha');
|
|
18
|
-
require('@noble/ciphers/utils');
|
|
19
|
-
require('@noble/ciphers/webcrypto');
|
|
17
|
+
require('@noble/ciphers/chacha.js');
|
|
18
|
+
require('@noble/ciphers/utils.js');
|
|
20
19
|
require('jose');
|
|
21
|
-
require('@noble/hashes/scrypt');
|
|
20
|
+
require('@noble/hashes/scrypt.js');
|
|
22
21
|
require('@better-auth/utils');
|
|
23
22
|
require('@better-auth/utils/hex');
|
|
24
|
-
require('@noble/hashes/utils');
|
|
23
|
+
require('@noble/hashes/utils.js');
|
|
25
24
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
26
25
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
27
26
|
require('@better-auth/utils/random');
|
|
@@ -159,6 +158,21 @@ const signUpEmail = () => session.createAuthEndpoint(
|
|
|
159
158
|
}
|
|
160
159
|
}
|
|
161
160
|
}
|
|
161
|
+
},
|
|
162
|
+
"422": {
|
|
163
|
+
description: "Unprocessable Entity. User already exists or failed to create user.",
|
|
164
|
+
content: {
|
|
165
|
+
"application/json": {
|
|
166
|
+
schema: {
|
|
167
|
+
type: "object",
|
|
168
|
+
properties: {
|
|
169
|
+
message: {
|
|
170
|
+
type: "string"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
162
176
|
}
|
|
163
177
|
}
|
|
164
178
|
}
|
|
@@ -463,6 +477,9 @@ async function onRequestRateLimit(req, ctx) {
|
|
|
463
477
|
window = resolved.window;
|
|
464
478
|
max = resolved.max;
|
|
465
479
|
}
|
|
480
|
+
if (resolved === false) {
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
466
483
|
}
|
|
467
484
|
}
|
|
468
485
|
const storage = getRateLimitStorage(ctx);
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export { z as AuthEndpoint, D as AuthMiddleware, bp as accountInfo, aS as callbackOAuth, bg as changeEmail, bc as changePassword, aN as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b7 as createEmailVerificationToken, be as deleteUser, bf as deleteUserCallback, bh as error, b3 as forgetPassword, b5 as forgetPasswordCallback, aY as freshSessionMiddleware, bn as getAccessToken, aO as getEndpoints, aU as getSession, aV as getSessionFromCtx, aT as getSessionQuerySchema, bl as linkSocialAccount, aZ as listSessions, bk as listUserAccounts, bi as ok, w as optionsMiddleware, br as originCheck, bq as originCheckMiddleware, bo as refreshToken, aX as requestOnlySessionMiddleware, b2 as requestPasswordReset, b4 as requestPasswordResetCallback, b6 as resetPassword, b0 as revokeOtherSessions, a_ as revokeSession, a$ as revokeSessions, aP as router, b9 as sendVerificationEmail, b8 as sendVerificationEmailFn, aW as sessionMiddleware, bd as setPassword, aR as signInEmail, aQ as signInSocial, b1 as signOut, bj as signUpEmail, bm as unlinkAccount, bb as updateUser, ba as verifyEmail } from '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.BaMSx6K3.cjs';
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, bp as accountInfo, aS as callbackOAuth, bg as changeEmail, bc as changePassword, aN as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b7 as createEmailVerificationToken, be as deleteUser, bf as deleteUserCallback, bh as error, b3 as forgetPassword, b5 as forgetPasswordCallback, aY as freshSessionMiddleware, bn as getAccessToken, aO as getEndpoints, aU as getSession, aV as getSessionFromCtx, aT as getSessionQuerySchema, bl as linkSocialAccount, aZ as listSessions, bk as listUserAccounts, bi as ok, w as optionsMiddleware, br as originCheck, bq as originCheckMiddleware, bo as refreshToken, aX as requestOnlySessionMiddleware, b2 as requestPasswordReset, b4 as requestPasswordResetCallback, b6 as resetPassword, b0 as revokeOtherSessions, a_ as revokeSession, a$ as revokeSessions, aP as router, b9 as sendVerificationEmail, b8 as sendVerificationEmailFn, aW as sessionMiddleware, bd as setPassword, aR as signInEmail, aQ as signInSocial, b1 as signOut, bj as signUpEmail, bm as unlinkAccount, bb as updateUser, ba as verifyEmail } from '../shared/better-auth.6crrbXrP.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
|
5
5
|
import 'zod/v4/core';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import 'jose';
|
|
8
7
|
import 'zod/v4';
|
|
9
8
|
import 'kysely';
|
|
10
9
|
import 'better-sqlite3';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export { z as AuthEndpoint, D as AuthMiddleware, bp as accountInfo, aS as callbackOAuth, bg as changeEmail, bc as changePassword, aN as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b7 as createEmailVerificationToken, be as deleteUser, bf as deleteUserCallback, bh as error, b3 as forgetPassword, b5 as forgetPasswordCallback, aY as freshSessionMiddleware, bn as getAccessToken, aO as getEndpoints, aU as getSession, aV as getSessionFromCtx, aT as getSessionQuerySchema, bl as linkSocialAccount, aZ as listSessions, bk as listUserAccounts, bi as ok, w as optionsMiddleware, br as originCheck, bq as originCheckMiddleware, bo as refreshToken, aX as requestOnlySessionMiddleware, b2 as requestPasswordReset, b4 as requestPasswordResetCallback, b6 as resetPassword, b0 as revokeOtherSessions, a_ as revokeSession, a$ as revokeSessions, aP as router, b9 as sendVerificationEmail, b8 as sendVerificationEmailFn, aW as sessionMiddleware, bd as setPassword, aR as signInEmail, aQ as signInSocial, b1 as signOut, bj as signUpEmail, bm as unlinkAccount, bb as updateUser, ba as verifyEmail } from '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.DR57bygo.mjs';
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, bp as accountInfo, aS as callbackOAuth, bg as changeEmail, bc as changePassword, aN as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b7 as createEmailVerificationToken, be as deleteUser, bf as deleteUserCallback, bh as error, b3 as forgetPassword, b5 as forgetPasswordCallback, aY as freshSessionMiddleware, bn as getAccessToken, aO as getEndpoints, aU as getSession, aV as getSessionFromCtx, aT as getSessionQuerySchema, bl as linkSocialAccount, aZ as listSessions, bk as listUserAccounts, bi as ok, w as optionsMiddleware, br as originCheck, bq as originCheckMiddleware, bo as refreshToken, aX as requestOnlySessionMiddleware, b2 as requestPasswordReset, b4 as requestPasswordResetCallback, b6 as resetPassword, b0 as revokeOtherSessions, a_ as revokeSession, a$ as revokeSessions, aP as router, b9 as sendVerificationEmail, b8 as sendVerificationEmailFn, aW as sessionMiddleware, bd as setPassword, aR as signInEmail, aQ as signInSocial, b1 as signOut, bj as signUpEmail, bm as unlinkAccount, bb as updateUser, ba as verifyEmail } from '../shared/better-auth.YK5LQtFt.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
|
5
5
|
import 'zod/v4/core';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import 'jose';
|
|
8
7
|
import 'zod/v4';
|
|
9
8
|
import 'kysely';
|
|
10
9
|
import 'better-sqlite3';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export { z as AuthEndpoint, D as AuthMiddleware, bp as accountInfo, aS as callbackOAuth, bg as changeEmail, bc as changePassword, aN as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b7 as createEmailVerificationToken, be as deleteUser, bf as deleteUserCallback, bh as error, b3 as forgetPassword, b5 as forgetPasswordCallback, aY as freshSessionMiddleware, bn as getAccessToken, aO as getEndpoints, aU as getSession, aV as getSessionFromCtx, aT as getSessionQuerySchema, bl as linkSocialAccount, aZ as listSessions, bk as listUserAccounts, bi as ok, w as optionsMiddleware, br as originCheck, bq as originCheckMiddleware, bo as refreshToken, aX as requestOnlySessionMiddleware, b2 as requestPasswordReset, b4 as requestPasswordResetCallback, b6 as resetPassword, b0 as revokeOtherSessions, a_ as revokeSession, a$ as revokeSessions, aP as router, b9 as sendVerificationEmail, b8 as sendVerificationEmailFn, aW as sessionMiddleware, bd as setPassword, aR as signInEmail, aQ as signInSocial, b1 as signOut, bj as signUpEmail, bm as unlinkAccount, bb as updateUser, ba as verifyEmail } from '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.B5FL4Q2B.js';
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, bp as accountInfo, aS as callbackOAuth, bg as changeEmail, bc as changePassword, aN as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b7 as createEmailVerificationToken, be as deleteUser, bf as deleteUserCallback, bh as error, b3 as forgetPassword, b5 as forgetPasswordCallback, aY as freshSessionMiddleware, bn as getAccessToken, aO as getEndpoints, aU as getSession, aV as getSessionFromCtx, aT as getSessionQuerySchema, bl as linkSocialAccount, aZ as listSessions, bk as listUserAccounts, bi as ok, w as optionsMiddleware, br as originCheck, bq as originCheckMiddleware, bo as refreshToken, aX as requestOnlySessionMiddleware, b2 as requestPasswordReset, b4 as requestPasswordResetCallback, b6 as resetPassword, b0 as revokeOtherSessions, a_ as revokeSession, a$ as revokeSessions, aP as router, b9 as sendVerificationEmail, b8 as sendVerificationEmailFn, aW as sessionMiddleware, bd as setPassword, aR as signInEmail, aQ as signInSocial, b1 as signOut, bj as signUpEmail, bm as unlinkAccount, bb as updateUser, ba as verifyEmail } from '../shared/better-auth.S3lnSz8Y.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import '../shared/better-auth.DTtXpZYr.js';
|
|
5
5
|
import 'zod/v4/core';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import 'jose';
|
|
8
7
|
import 'zod/v4';
|
|
9
8
|
import 'kysely';
|
|
10
9
|
import 'better-sqlite3';
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
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.CSEecXfV.mjs';
|
|
4
|
+
export { o as originCheck, T as sendVerificationEmailFn } from '../shared/better-auth.CSEecXfV.mjs';
|
|
5
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.DV5EHeYG.mjs';
|
|
6
6
|
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, h as getSessionQuerySchema, o as optionsMiddleware, i as requestOnlySessionMiddleware, s as sessionMiddleware } from '../shared/better-auth.DV5EHeYG.mjs';
|
|
7
7
|
import * as z from 'zod/v4';
|
|
@@ -15,14 +15,13 @@ import '../shared/better-auth.CW6D9eSx.mjs';
|
|
|
15
15
|
import '@better-auth/utils/hash';
|
|
16
16
|
import '@better-auth/utils/base64';
|
|
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 '../shared/better-auth.B4Qoxdgc.mjs';
|
|
28
27
|
import '@better-auth/utils/random';
|
|
@@ -146,6 +145,21 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
146
145
|
}
|
|
147
146
|
}
|
|
148
147
|
}
|
|
148
|
+
},
|
|
149
|
+
"422": {
|
|
150
|
+
description: "Unprocessable Entity. User already exists or failed to create user.",
|
|
151
|
+
content: {
|
|
152
|
+
"application/json": {
|
|
153
|
+
schema: {
|
|
154
|
+
type: "object",
|
|
155
|
+
properties: {
|
|
156
|
+
message: {
|
|
157
|
+
type: "string"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
149
163
|
}
|
|
150
164
|
}
|
|
151
165
|
}
|
|
@@ -450,6 +464,9 @@ async function onRequestRateLimit(req, ctx) {
|
|
|
450
464
|
window = resolved.window;
|
|
451
465
|
max = resolved.max;
|
|
452
466
|
}
|
|
467
|
+
if (resolved === false) {
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
453
470
|
}
|
|
454
471
|
}
|
|
455
472
|
const storage = getRateLimitStorage(ctx);
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, r as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, r as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.6crrbXrP.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.B-V8R4q7.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.B-V8R4q7.cjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
@@ -11,8 +11,7 @@ import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-au
|
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'better-call';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../shared/better-auth.
|
|
15
|
-
import 'jose';
|
|
14
|
+
import '../shared/better-auth.BaMSx6K3.cjs';
|
|
16
15
|
import 'zod/v4/core';
|
|
17
16
|
import 'zod';
|
|
18
17
|
import 'better-sqlite3';
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, r as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, r as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.YK5LQtFt.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.g9DlWOx7.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.g9DlWOx7.mjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
@@ -11,8 +11,7 @@ import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-au
|
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'better-call';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../shared/better-auth.
|
|
15
|
-
import 'jose';
|
|
14
|
+
import '../shared/better-auth.DR57bygo.mjs';
|
|
16
15
|
import 'zod/v4/core';
|
|
17
16
|
import 'zod';
|
|
18
17
|
import 'better-sqlite3';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, r as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, r as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.S3lnSz8Y.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.BAnyvLX6.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.BAnyvLX6.js';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
@@ -11,8 +11,7 @@ import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-au
|
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'better-call';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../shared/better-auth.
|
|
15
|
-
import 'jose';
|
|
14
|
+
import '../shared/better-auth.B5FL4Q2B.js';
|
|
16
15
|
import 'zod/v4/core';
|
|
17
16
|
import 'zod';
|
|
18
17
|
import 'better-sqlite3';
|
|
@@ -5,14 +5,14 @@ require('@better-fetch/fetch');
|
|
|
5
5
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
6
6
|
const query = require('../../shared/better-auth.CYZmwTIS.cjs');
|
|
7
7
|
const plugins_organization_access_index = require('../../plugins/organization/access/index.cjs');
|
|
8
|
-
const hasPermission = require('../../shared/better-auth.
|
|
8
|
+
const hasPermission = require('../../shared/better-auth.DEKJQy4E.cjs');
|
|
9
9
|
const browser = require('@simplewebauthn/browser');
|
|
10
10
|
const client = require('../../shared/better-auth.DnER2-iT.cjs');
|
|
11
11
|
const plugins_admin_access_index = require('../../plugins/admin/access/index.cjs');
|
|
12
12
|
const hasPermission$1 = require('../../shared/better-auth.BW8BpneG.cjs');
|
|
13
13
|
require('zod/v4');
|
|
14
14
|
require('better-call');
|
|
15
|
-
require('../../shared/better-auth.
|
|
15
|
+
require('../../shared/better-auth.BlsHS68J.cjs');
|
|
16
16
|
require('../../shared/better-auth.CLv80Pwz.cjs');
|
|
17
17
|
require('@better-auth/utils/base64');
|
|
18
18
|
require('@better-auth/utils/hmac');
|
|
@@ -25,14 +25,13 @@ require('../../shared/better-auth.ANpbi45u.cjs');
|
|
|
25
25
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
26
26
|
require('@better-auth/utils/hash');
|
|
27
27
|
require('../../crypto/index.cjs');
|
|
28
|
-
require('@noble/ciphers/chacha');
|
|
29
|
-
require('@noble/ciphers/utils');
|
|
30
|
-
require('@noble/ciphers/webcrypto');
|
|
28
|
+
require('@noble/ciphers/chacha.js');
|
|
29
|
+
require('@noble/ciphers/utils.js');
|
|
31
30
|
require('jose');
|
|
32
|
-
require('@noble/hashes/scrypt');
|
|
31
|
+
require('@noble/hashes/scrypt.js');
|
|
33
32
|
require('@better-auth/utils');
|
|
34
33
|
require('@better-auth/utils/hex');
|
|
35
|
-
require('@noble/hashes/utils');
|
|
34
|
+
require('@noble/hashes/utils.js');
|
|
36
35
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
37
36
|
require('@better-auth/utils/random');
|
|
38
37
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
@@ -2,9 +2,9 @@ import { organization, InferMember, InferInvitation, Team, Organization, Member,
|
|
|
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 { J as FieldAttribute, B as BetterAuthOptions, U as User, r as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, r as BetterAuthPlugin } from '../../shared/better-auth.6crrbXrP.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.B-V8R4q7.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.UcasWcPe.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';
|
|
@@ -31,13 +31,13 @@ import 'zod/v4';
|
|
|
31
31
|
import 'better-call';
|
|
32
32
|
import '../../plugins/organization/access/index.cjs';
|
|
33
33
|
import 'kysely';
|
|
34
|
-
import '../../shared/better-auth.
|
|
35
|
-
import 'jose';
|
|
34
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
36
35
|
import 'zod/v4/core';
|
|
37
36
|
import 'zod';
|
|
38
37
|
import 'better-sqlite3';
|
|
39
38
|
import 'bun:sqlite';
|
|
40
39
|
import 'node:sqlite';
|
|
40
|
+
import 'jose';
|
|
41
41
|
|
|
42
42
|
interface OrganizationClientOptions {
|
|
43
43
|
ac?: AccessControl;
|
|
@@ -2,9 +2,9 @@ import { organization, InferMember, InferInvitation, Team, Organization, Member,
|
|
|
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 { J as FieldAttribute, B as BetterAuthOptions, U as User, r as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, r as BetterAuthPlugin } from '../../shared/better-auth.YK5LQtFt.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.g9DlWOx7.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.eYki6XKk.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';
|
|
@@ -31,13 +31,13 @@ import 'zod/v4';
|
|
|
31
31
|
import 'better-call';
|
|
32
32
|
import '../../plugins/organization/access/index.mjs';
|
|
33
33
|
import 'kysely';
|
|
34
|
-
import '../../shared/better-auth.
|
|
35
|
-
import 'jose';
|
|
34
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
36
35
|
import 'zod/v4/core';
|
|
37
36
|
import 'zod';
|
|
38
37
|
import 'better-sqlite3';
|
|
39
38
|
import 'bun:sqlite';
|
|
40
39
|
import 'node:sqlite';
|
|
40
|
+
import 'jose';
|
|
41
41
|
|
|
42
42
|
interface OrganizationClientOptions {
|
|
43
43
|
ac?: AccessControl;
|
|
@@ -2,9 +2,9 @@ import { organization, InferMember, InferInvitation, Team, Organization, Member,
|
|
|
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 { J as FieldAttribute, B as BetterAuthOptions, U as User, r as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, r as BetterAuthPlugin } from '../../shared/better-auth.S3lnSz8Y.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.BAnyvLX6.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.DtrrQDoO.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';
|
|
@@ -31,13 +31,13 @@ import 'zod/v4';
|
|
|
31
31
|
import 'better-call';
|
|
32
32
|
import '../../plugins/organization/access/index.js';
|
|
33
33
|
import 'kysely';
|
|
34
|
-
import '../../shared/better-auth.
|
|
35
|
-
import 'jose';
|
|
34
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
36
35
|
import 'zod/v4/core';
|
|
37
36
|
import 'zod';
|
|
38
37
|
import 'better-sqlite3';
|
|
39
38
|
import 'bun:sqlite';
|
|
40
39
|
import 'node:sqlite';
|
|
40
|
+
import 'jose';
|
|
41
41
|
|
|
42
42
|
interface OrganizationClientOptions {
|
|
43
43
|
ac?: AccessControl;
|
|
@@ -3,14 +3,14 @@ import '@better-fetch/fetch';
|
|
|
3
3
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
4
4
|
import { u as useAuthQuery } from '../../shared/better-auth.CkGsgrvv.mjs';
|
|
5
5
|
import { ownerAc, memberAc, adminAc } from '../../plugins/organization/access/index.mjs';
|
|
6
|
-
import { c as clientSideHasPermission } from '../../shared/better-auth.
|
|
6
|
+
import { c as clientSideHasPermission } from '../../shared/better-auth.BWl2NB1B.mjs';
|
|
7
7
|
import { startRegistration, WebAuthnError, startAuthentication } from '@simplewebauthn/browser';
|
|
8
8
|
export { t as twoFactorClient } from '../../shared/better-auth.Ddw8bVyV.mjs';
|
|
9
9
|
import { userAc, adminAc as adminAc$1 } from '../../plugins/admin/access/index.mjs';
|
|
10
10
|
import { h as hasPermission } from '../../shared/better-auth.bkwPl2G4.mjs';
|
|
11
11
|
import 'zod/v4';
|
|
12
12
|
import 'better-call';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.CSEecXfV.mjs';
|
|
14
14
|
import '../../shared/better-auth.DV5EHeYG.mjs';
|
|
15
15
|
import '@better-auth/utils/base64';
|
|
16
16
|
import '@better-auth/utils/hmac';
|
|
@@ -23,14 +23,13 @@ import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
|
23
23
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
24
24
|
import '@better-auth/utils/hash';
|
|
25
25
|
import '../../crypto/index.mjs';
|
|
26
|
-
import '@noble/ciphers/chacha';
|
|
27
|
-
import '@noble/ciphers/utils';
|
|
28
|
-
import '@noble/ciphers/webcrypto';
|
|
26
|
+
import '@noble/ciphers/chacha.js';
|
|
27
|
+
import '@noble/ciphers/utils.js';
|
|
29
28
|
import 'jose';
|
|
30
|
-
import '@noble/hashes/scrypt';
|
|
29
|
+
import '@noble/hashes/scrypt.js';
|
|
31
30
|
import '@better-auth/utils';
|
|
32
31
|
import '@better-auth/utils/hex';
|
|
33
|
-
import '@noble/hashes/utils';
|
|
32
|
+
import '@noble/hashes/utils.js';
|
|
34
33
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
35
34
|
import '@better-auth/utils/random';
|
|
36
35
|
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
@@ -4,15 +4,14 @@ 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.B-V8R4q7.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.6crrbXrP.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../../shared/better-auth.
|
|
15
|
-
import 'jose';
|
|
14
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
16
15
|
import 'zod/v4/core';
|
|
17
16
|
import 'zod';
|
|
18
17
|
import 'better-sqlite3';
|
|
@@ -38,7 +37,7 @@ interface UseStoreOptions<SomeStore> {
|
|
|
38
37
|
/**
|
|
39
38
|
* Subscribe to store changes and get store's value.
|
|
40
39
|
*
|
|
41
|
-
* Can be
|
|
40
|
+
* Can be used with store builder too.
|
|
42
41
|
*
|
|
43
42
|
* ```js
|
|
44
43
|
* import { useStore } from 'nanostores/react'
|
|
@@ -4,15 +4,14 @@ 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.g9DlWOx7.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.YK5LQtFt.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../../shared/better-auth.
|
|
15
|
-
import 'jose';
|
|
14
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
16
15
|
import 'zod/v4/core';
|
|
17
16
|
import 'zod';
|
|
18
17
|
import 'better-sqlite3';
|
|
@@ -38,7 +37,7 @@ interface UseStoreOptions<SomeStore> {
|
|
|
38
37
|
/**
|
|
39
38
|
* Subscribe to store changes and get store's value.
|
|
40
39
|
*
|
|
41
|
-
* Can be
|
|
40
|
+
* Can be used with store builder too.
|
|
42
41
|
*
|
|
43
42
|
* ```js
|
|
44
43
|
* import { useStore } from 'nanostores/react'
|
|
@@ -4,15 +4,14 @@ 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.BAnyvLX6.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.S3lnSz8Y.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../../shared/better-auth.
|
|
15
|
-
import 'jose';
|
|
14
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
16
15
|
import 'zod/v4/core';
|
|
17
16
|
import 'zod';
|
|
18
17
|
import 'better-sqlite3';
|
|
@@ -38,7 +37,7 @@ interface UseStoreOptions<SomeStore> {
|
|
|
38
37
|
/**
|
|
39
38
|
* Subscribe to store changes and get store's value.
|
|
40
39
|
*
|
|
41
|
-
* Can be
|
|
40
|
+
* Can be used with store builder too.
|
|
42
41
|
*
|
|
43
42
|
* ```js
|
|
44
43
|
* import { useStore } from 'nanostores/react'
|
|
@@ -1,16 +1,15 @@
|
|
|
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.B-V8R4q7.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 { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.6crrbXrP.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import 'zod/v4';
|
|
12
|
-
import '../../shared/better-auth.
|
|
13
|
-
import 'jose';
|
|
12
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
14
13
|
import 'zod/v4/core';
|
|
15
14
|
import 'zod';
|
|
16
15
|
import 'better-sqlite3';
|