better-auth 1.3.10 → 1.3.11-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle-adapter/index.d.cts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -2
- package/dist/adapters/index.cjs +2 -1
- package/dist/adapters/index.d.cts +23 -6
- package/dist/adapters/index.d.mts +23 -6
- package/dist/adapters/index.d.ts +23 -6
- package/dist/adapters/index.mjs +5 -1
- package/dist/adapters/kysely-adapter/index.cjs +1 -1
- package/dist/adapters/kysely-adapter/index.d.cts +2 -2
- package/dist/adapters/kysely-adapter/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.d.ts +2 -2
- package/dist/adapters/kysely-adapter/index.mjs +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +2 -2
- package/dist/adapters/memory-adapter/index.d.mts +2 -2
- package/dist/adapters/memory-adapter/index.d.ts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
- package/dist/adapters/prisma-adapter/index.d.cts +2 -2
- package/dist/adapters/prisma-adapter/index.d.mts +2 -2
- package/dist/adapters/prisma-adapter/index.d.ts +2 -2
- package/dist/adapters/test.cjs +9 -0
- package/dist/adapters/test.d.cts +6 -3
- package/dist/adapters/test.d.mts +6 -3
- package/dist/adapters/test.d.ts +6 -3
- package/dist/adapters/test.mjs +9 -1
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.mjs +2 -2
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.mts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/plugins/index.cjs +9 -30
- package/dist/client/plugins/index.d.cts +37 -13
- package/dist/client/plugins/index.d.mts +37 -13
- package/dist/client/plugins/index.d.ts +37 -13
- package/dist/client/plugins/index.mjs +7 -29
- package/dist/client/react/index.d.cts +3 -3
- package/dist/client/react/index.d.mts +3 -3
- package/dist/client/react/index.d.ts +3 -3
- package/dist/client/solid/index.d.cts +3 -3
- package/dist/client/solid/index.d.mts +3 -3
- package/dist/client/solid/index.d.ts +3 -3
- package/dist/client/svelte/index.d.cts +3 -3
- package/dist/client/svelte/index.d.mts +3 -3
- package/dist/client/svelte/index.d.ts +3 -3
- package/dist/client/vue/index.d.cts +3 -3
- package/dist/client/vue/index.d.mts +3 -3
- package/dist/client/vue/index.d.ts +3 -3
- package/dist/cookies/index.d.cts +2 -2
- package/dist/cookies/index.d.mts +2 -2
- package/dist/cookies/index.d.ts +2 -2
- package/dist/db/index.cjs +2 -2
- package/dist/db/index.d.cts +3 -3
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.d.ts +3 -3
- package/dist/db/index.mjs +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +4 -4
- package/dist/integrations/next-js.cjs +2 -2
- package/dist/integrations/next-js.d.cts +2 -2
- package/dist/integrations/next-js.d.mts +2 -2
- package/dist/integrations/next-js.d.ts +2 -2
- package/dist/integrations/next-js.mjs +2 -2
- package/dist/integrations/node.d.cts +2 -2
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/node.d.ts +2 -2
- package/dist/integrations/react-start.cjs +2 -2
- package/dist/integrations/react-start.d.cts +2 -2
- package/dist/integrations/react-start.d.mts +2 -2
- package/dist/integrations/react-start.d.ts +2 -2
- package/dist/integrations/react-start.mjs +2 -2
- package/dist/integrations/svelte-kit.cjs +1 -1
- package/dist/integrations/svelte-kit.d.cts +2 -2
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/svelte-kit.d.ts +2 -2
- package/dist/integrations/svelte-kit.mjs +1 -1
- package/dist/oauth2/index.cjs +1 -1
- package/dist/oauth2/index.d.cts +4 -4
- package/dist/oauth2/index.d.mts +4 -4
- package/dist/oauth2/index.d.ts +4 -4
- package/dist/oauth2/index.mjs +1 -1
- package/dist/plugins/admin/access/index.cjs +0 -2
- package/dist/plugins/admin/access/index.d.cts +23 -23
- package/dist/plugins/admin/access/index.d.mts +23 -23
- package/dist/plugins/admin/access/index.d.ts +23 -23
- package/dist/plugins/admin/access/index.mjs +0 -2
- package/dist/plugins/admin/index.cjs +2 -2
- package/dist/plugins/admin/index.d.cts +14 -98
- package/dist/plugins/admin/index.d.mts +14 -98
- package/dist/plugins/admin/index.d.ts +14 -98
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.cjs +1 -1
- package/dist/plugins/anonymous/index.d.cts +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.d.ts +2 -2
- package/dist/plugins/anonymous/index.mjs +1 -1
- package/dist/plugins/bearer/index.cjs +1 -1
- package/dist/plugins/bearer/index.d.cts +2 -2
- package/dist/plugins/bearer/index.d.mts +2 -2
- package/dist/plugins/bearer/index.d.ts +2 -2
- package/dist/plugins/bearer/index.mjs +1 -1
- package/dist/plugins/captcha/index.d.cts +2 -2
- package/dist/plugins/captcha/index.d.mts +2 -2
- package/dist/plugins/captcha/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.cjs +1 -1
- package/dist/plugins/custom-session/index.d.cts +2 -2
- package/dist/plugins/custom-session/index.d.mts +2 -2
- package/dist/plugins/custom-session/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.mjs +1 -1
- package/dist/plugins/device-authorization/index.cjs +16 -0
- package/dist/plugins/device-authorization/index.d.cts +2 -2
- package/dist/plugins/device-authorization/index.d.mts +2 -2
- package/dist/plugins/device-authorization/index.d.ts +2 -2
- package/dist/plugins/device-authorization/index.mjs +16 -0
- package/dist/plugins/email-otp/index.cjs +1 -1
- package/dist/plugins/email-otp/index.d.cts +2 -2
- package/dist/plugins/email-otp/index.d.mts +2 -2
- package/dist/plugins/email-otp/index.d.ts +2 -2
- package/dist/plugins/email-otp/index.mjs +1 -1
- package/dist/plugins/generic-oauth/index.cjs +1 -1
- package/dist/plugins/generic-oauth/index.d.cts +2 -2
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/generic-oauth/index.d.ts +2 -2
- package/dist/plugins/generic-oauth/index.mjs +1 -1
- package/dist/plugins/haveibeenpwned/index.cjs +1 -1
- package/dist/plugins/haveibeenpwned/index.d.cts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.ts +2 -2
- package/dist/plugins/haveibeenpwned/index.mjs +1 -1
- package/dist/plugins/index.cjs +7 -7
- package/dist/plugins/index.d.cts +6 -6
- package/dist/plugins/index.d.mts +6 -6
- package/dist/plugins/index.d.ts +6 -6
- package/dist/plugins/index.mjs +8 -8
- package/dist/plugins/jwt/index.cjs +1 -1
- package/dist/plugins/jwt/index.d.cts +2 -2
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.d.ts +2 -2
- package/dist/plugins/jwt/index.mjs +1 -1
- package/dist/plugins/magic-link/index.cjs +1 -1
- package/dist/plugins/magic-link/index.mjs +1 -1
- package/dist/plugins/multi-session/index.cjs +1 -1
- package/dist/plugins/multi-session/index.d.cts +2 -2
- package/dist/plugins/multi-session/index.d.mts +2 -2
- package/dist/plugins/multi-session/index.d.ts +2 -2
- package/dist/plugins/multi-session/index.mjs +1 -1
- package/dist/plugins/oauth-proxy/index.cjs +1 -1
- package/dist/plugins/oauth-proxy/index.d.cts +2 -2
- package/dist/plugins/oauth-proxy/index.d.mts +2 -2
- package/dist/plugins/oauth-proxy/index.d.ts +2 -2
- package/dist/plugins/oauth-proxy/index.mjs +1 -1
- package/dist/plugins/oidc-provider/index.cjs +2 -2
- package/dist/plugins/oidc-provider/index.d.cts +2 -2
- package/dist/plugins/oidc-provider/index.d.mts +2 -2
- package/dist/plugins/oidc-provider/index.d.ts +2 -2
- package/dist/plugins/oidc-provider/index.mjs +2 -2
- package/dist/plugins/one-tap/index.cjs +1 -1
- package/dist/plugins/one-tap/index.mjs +1 -1
- package/dist/plugins/one-time-token/index.cjs +3 -3
- package/dist/plugins/one-time-token/index.d.cts +2 -2
- package/dist/plugins/one-time-token/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.d.ts +2 -2
- package/dist/plugins/one-time-token/index.mjs +3 -3
- package/dist/plugins/open-api/index.cjs +1 -1
- package/dist/plugins/open-api/index.d.cts +2 -2
- package/dist/plugins/open-api/index.d.mts +2 -2
- package/dist/plugins/open-api/index.d.ts +2 -2
- package/dist/plugins/open-api/index.mjs +1 -1
- package/dist/plugins/organization/index.cjs +4 -4
- package/dist/plugins/organization/index.d.cts +18 -6
- package/dist/plugins/organization/index.d.mts +18 -6
- package/dist/plugins/organization/index.d.ts +18 -6
- package/dist/plugins/organization/index.mjs +4 -4
- package/dist/plugins/passkey/index.cjs +1 -1
- package/dist/plugins/passkey/index.d.cts +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/plugins/passkey/index.d.ts +2 -2
- package/dist/plugins/passkey/index.mjs +1 -1
- package/dist/plugins/phone-number/index.cjs +1 -1
- package/dist/plugins/phone-number/index.d.cts +2 -2
- package/dist/plugins/phone-number/index.d.mts +2 -2
- package/dist/plugins/phone-number/index.d.ts +2 -2
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/siwe/index.cjs +1 -1
- package/dist/plugins/siwe/index.d.cts +2 -2
- package/dist/plugins/siwe/index.d.mts +2 -2
- package/dist/plugins/siwe/index.d.ts +2 -2
- package/dist/plugins/siwe/index.mjs +1 -1
- package/dist/plugins/sso/index.cjs +1 -1
- package/dist/plugins/sso/index.d.cts +2 -2
- package/dist/plugins/sso/index.d.mts +2 -2
- package/dist/plugins/sso/index.d.ts +2 -2
- package/dist/plugins/sso/index.mjs +1 -1
- package/dist/plugins/two-factor/index.cjs +1 -1
- package/dist/plugins/two-factor/index.d.cts +2 -2
- package/dist/plugins/two-factor/index.d.mts +2 -2
- package/dist/plugins/two-factor/index.d.ts +2 -2
- package/dist/plugins/two-factor/index.mjs +1 -1
- package/dist/plugins/username/index.cjs +1 -1
- package/dist/plugins/username/index.d.cts +2 -2
- package/dist/plugins/username/index.d.mts +2 -2
- package/dist/plugins/username/index.d.ts +2 -2
- package/dist/plugins/username/index.mjs +1 -1
- package/dist/shared/{better-auth.BF0omEai.d.ts → better-auth.4Be2t3g-.d.ts} +3 -1
- package/dist/shared/{better-auth.Cxv0YRbF.d.cts → better-auth.B1oy2bj7.d.mts} +37 -37
- package/dist/shared/{better-auth.6v1lyy-4.mjs → better-auth.B4eRmDYt.mjs} +10 -63
- package/dist/shared/{better-auth.CCUxKNtc.d.cts → better-auth.BCyXbcLo.d.cts} +3 -1
- package/dist/shared/{better-auth.BuRgSiEx.d.cts → better-auth.BD_jCp3k.d.cts} +1 -1
- package/dist/shared/{better-auth.C76lPSDY.cjs → better-auth.BFQFUS8q.cjs} +113 -56
- package/dist/shared/{better-auth.CVTnFdZK.mjs → better-auth.BP4t6QJR.mjs} +1 -1
- package/dist/shared/{better-auth.DdZ-Id7n.cjs → better-auth.BaoSQduK.cjs} +22 -13
- package/dist/shared/{better-auth.CfoT4oLs.cjs → better-auth.BfH-lFD6.cjs} +45 -4
- package/dist/shared/{better-auth.CiB_ZMrx.cjs → better-auth.Bj3CUu_E.cjs} +1 -1
- package/dist/shared/{better-auth.CTsKSwa1.cjs → better-auth.BuRu-uRU.cjs} +11 -64
- package/dist/shared/{better-auth.DL3x2oYe.d.ts → better-auth.C1OhEYlX.d.ts} +1 -1
- package/dist/shared/{better-auth.BOrmgvuL.d.ts → better-auth.C2mFwSXc.d.ts} +1 -1
- package/dist/shared/{better-auth.K3oiIXoq.mjs → better-auth.C4B1KeE5.mjs} +1 -1
- package/dist/shared/{better-auth.B2TW1bPT.d.mts → better-auth.CDrXwByU.d.cts} +37 -37
- package/dist/shared/{better-auth.B3WgX3fF.d.ts → better-auth.CZvovbWq.d.ts} +37 -37
- package/dist/shared/{better-auth.BJHX9nwf.mjs → better-auth.C_kPikD6.mjs} +4 -4
- package/dist/shared/{better-auth.B8WrJz4j.cjs → better-auth.CbV2Bzor.cjs} +4 -4
- package/dist/shared/{better-auth.Dwnp6dQN.mjs → better-auth.Cnh5fEd0.mjs} +22 -6
- package/dist/shared/{better-auth.B2AIpsP8.d.ts → better-auth.CoXYkOjx.d.ts} +2 -2
- package/dist/shared/better-auth.CqRypKVa.cjs +22 -0
- package/dist/shared/{better-auth.BR-J4Fc_.d.mts → better-auth.D3_DQbYY.d.mts} +3 -1
- package/dist/shared/{better-auth.fbWvDPcW.d.cts → better-auth.DL8MKZ-R.d.cts} +1 -1
- package/dist/shared/{better-auth.c1TKK0bc.d.mts → better-auth.DYjAlD1B.d.mts} +1 -1
- package/dist/shared/{better-auth.BBxSzNpN.cjs → better-auth.DYzysHrV.cjs} +3 -3
- package/dist/shared/better-auth.DaEBQJp_.mjs +19 -0
- package/dist/shared/{better-auth.Dm9JBENp.mjs → better-auth.Dgq_1hxR.mjs} +22 -13
- package/dist/shared/{better-auth.DhdDxivH.d.cts → better-auth.DucIUs9A.d.cts} +2 -2
- package/dist/shared/{better-auth.BT6Fcw3P.cjs → better-auth.QLqajY7E.cjs} +22 -6
- package/dist/shared/{better-auth.BSvTlywO.cjs → better-auth.Q_6-mVqY.cjs} +1 -1
- package/dist/shared/{better-auth.BHqN3Ecq.d.mts → better-auth.cwtQKU8o.d.mts} +2 -2
- package/dist/shared/{better-auth.DK2lPFsm.mjs → better-auth.p19VhZRc.mjs} +3 -3
- package/dist/shared/{better-auth.BWg2Co_n.mjs → better-auth.r7DxcRaY.mjs} +45 -4
- package/dist/shared/{better-auth.BuVTCgK_.mjs → better-auth.w2FlalSV.mjs} +95 -38
- package/dist/shared/{better-auth.knATFWO2.d.mts → better-auth.zBEaY1qm.d.mts} +1 -1
- package/dist/social-providers/index.cjs +1 -1
- package/dist/social-providers/index.d.cts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/social-providers/index.d.ts +1 -1
- package/dist/social-providers/index.mjs +1 -1
- package/dist/test-utils/index.cjs +5 -5
- package/dist/test-utils/index.d.cts +47 -47
- package/dist/test-utils/index.d.mts +47 -47
- package/dist/test-utils/index.d.ts +47 -47
- package/dist/test-utils/index.mjs +5 -5
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +2 -5
- package/dist/shared/better-auth.ZBjauyTk.mjs +0 -70
- package/dist/shared/better-auth.yamXE7-N.cjs +0 -87
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CDrXwByU.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.DucIUs9A.cjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B1oy2bj7.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.cwtQKU8o.mjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CZvovbWq.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CoXYkOjx.js';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
package/dist/adapters/index.cjs
CHANGED
|
@@ -19,6 +19,7 @@ require('@better-auth/utils/hex');
|
|
|
19
19
|
require('@noble/hashes/utils.js');
|
|
20
20
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
const createAdapter = index.createAdapterFactory;
|
|
23
23
|
|
|
24
24
|
exports.createAdapterFactory = index.createAdapterFactory;
|
|
25
|
+
exports.createAdapter = createAdapter;
|
|
@@ -1,17 +1,34 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter,
|
|
2
|
-
export {
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.CDrXwByU.cjs';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.CDrXwByU.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
-
import '../shared/better-auth.
|
|
7
|
+
import '../shared/better-auth.DucIUs9A.cjs';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
11
11
|
import 'node:sqlite';
|
|
12
12
|
|
|
13
13
|
type AdapterFactory = (options: BetterAuthOptions) => Adapter;
|
|
14
|
-
declare const createAdapterFactory: ({ adapter: customAdapter, config: cfg, }:
|
|
14
|
+
declare const createAdapterFactory: ({ adapter: customAdapter, config: cfg, }: AdapterFactoryOptions) => AdapterFactory;
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
export
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Use `createAdapterFactory` instead. This export will be removed in the next major version.
|
|
18
|
+
*/
|
|
19
|
+
declare const createAdapter: ({ adapter: customAdapter, config: cfg, }: AdapterFactoryOptions) => AdapterFactory;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `AdapterFactoryOptions` instead. This export will be removed in the next major version.
|
|
22
|
+
*/
|
|
23
|
+
type CreateAdapterOptions = AdapterFactoryOptions;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `AdapterFactoryConfig` instead. This export will be removed in the next major version.
|
|
26
|
+
*/
|
|
27
|
+
type AdapterConfig = AdapterFactoryConfig;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use `AdapterFactoryCustomizeAdapterCreator` instead. This export will be removed in the next major version.
|
|
30
|
+
*/
|
|
31
|
+
type CreateCustomAdapter = AdapterFactoryCustomizeAdapterCreator;
|
|
32
|
+
|
|
33
|
+
export { AdapterFactoryConfig, AdapterFactoryCustomizeAdapterCreator, AdapterFactoryOptions, createAdapter, createAdapterFactory };
|
|
34
|
+
export type { AdapterConfig, AdapterFactory, CreateAdapterOptions, CreateCustomAdapter };
|
|
@@ -1,17 +1,34 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter,
|
|
2
|
-
export {
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.B1oy2bj7.mjs';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.B1oy2bj7.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
-
import '../shared/better-auth.
|
|
7
|
+
import '../shared/better-auth.cwtQKU8o.mjs';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
11
11
|
import 'node:sqlite';
|
|
12
12
|
|
|
13
13
|
type AdapterFactory = (options: BetterAuthOptions) => Adapter;
|
|
14
|
-
declare const createAdapterFactory: ({ adapter: customAdapter, config: cfg, }:
|
|
14
|
+
declare const createAdapterFactory: ({ adapter: customAdapter, config: cfg, }: AdapterFactoryOptions) => AdapterFactory;
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
export
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Use `createAdapterFactory` instead. This export will be removed in the next major version.
|
|
18
|
+
*/
|
|
19
|
+
declare const createAdapter: ({ adapter: customAdapter, config: cfg, }: AdapterFactoryOptions) => AdapterFactory;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `AdapterFactoryOptions` instead. This export will be removed in the next major version.
|
|
22
|
+
*/
|
|
23
|
+
type CreateAdapterOptions = AdapterFactoryOptions;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `AdapterFactoryConfig` instead. This export will be removed in the next major version.
|
|
26
|
+
*/
|
|
27
|
+
type AdapterConfig = AdapterFactoryConfig;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use `AdapterFactoryCustomizeAdapterCreator` instead. This export will be removed in the next major version.
|
|
30
|
+
*/
|
|
31
|
+
type CreateCustomAdapter = AdapterFactoryCustomizeAdapterCreator;
|
|
32
|
+
|
|
33
|
+
export { AdapterFactoryConfig, AdapterFactoryCustomizeAdapterCreator, AdapterFactoryOptions, createAdapter, createAdapterFactory };
|
|
34
|
+
export type { AdapterConfig, AdapterFactory, CreateAdapterOptions, CreateCustomAdapter };
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,17 +1,34 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, a as Adapter,
|
|
2
|
-
export {
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, q as AdapterFactoryOptions, r as AdapterFactoryConfig, t as AdapterFactoryCustomizeAdapterCreator } from '../shared/better-auth.CZvovbWq.js';
|
|
2
|
+
export { A as AdapterDebugLogs, u as AdapterTestDebugLogs, C as CustomAdapter } from '../shared/better-auth.CZvovbWq.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.js';
|
|
7
|
-
import '../shared/better-auth.
|
|
7
|
+
import '../shared/better-auth.CoXYkOjx.js';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
11
11
|
import 'node:sqlite';
|
|
12
12
|
|
|
13
13
|
type AdapterFactory = (options: BetterAuthOptions) => Adapter;
|
|
14
|
-
declare const createAdapterFactory: ({ adapter: customAdapter, config: cfg, }:
|
|
14
|
+
declare const createAdapterFactory: ({ adapter: customAdapter, config: cfg, }: AdapterFactoryOptions) => AdapterFactory;
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
export
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Use `createAdapterFactory` instead. This export will be removed in the next major version.
|
|
18
|
+
*/
|
|
19
|
+
declare const createAdapter: ({ adapter: customAdapter, config: cfg, }: AdapterFactoryOptions) => AdapterFactory;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `AdapterFactoryOptions` instead. This export will be removed in the next major version.
|
|
22
|
+
*/
|
|
23
|
+
type CreateAdapterOptions = AdapterFactoryOptions;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `AdapterFactoryConfig` instead. This export will be removed in the next major version.
|
|
26
|
+
*/
|
|
27
|
+
type AdapterConfig = AdapterFactoryConfig;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use `AdapterFactoryCustomizeAdapterCreator` instead. This export will be removed in the next major version.
|
|
30
|
+
*/
|
|
31
|
+
type CreateCustomAdapter = AdapterFactoryCustomizeAdapterCreator;
|
|
32
|
+
|
|
33
|
+
export { AdapterFactoryConfig, AdapterFactoryCustomizeAdapterCreator, AdapterFactoryOptions, createAdapter, createAdapterFactory };
|
|
34
|
+
export type { AdapterConfig, AdapterFactory, CreateAdapterOptions, CreateCustomAdapter };
|
package/dist/adapters/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { c as createAdapterFactory } from '../shared/better-auth.s0y6HeiD.mjs';
|
|
2
2
|
import '../shared/better-auth.CvNZNAOW.mjs';
|
|
3
3
|
import '../shared/better-auth.C4g12FAA.mjs';
|
|
4
4
|
import '../shared/better-auth.CiuwFiHM.mjs';
|
|
@@ -16,3 +16,7 @@ import '@noble/hashes/scrypt.js';
|
|
|
16
16
|
import '@better-auth/utils/hex';
|
|
17
17
|
import '@noble/hashes/utils.js';
|
|
18
18
|
import '../shared/better-auth.B4Qoxdgc.mjs';
|
|
19
|
+
|
|
20
|
+
const createAdapter = createAdapterFactory;
|
|
21
|
+
|
|
22
|
+
export { createAdapter, createAdapterFactory };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const kyselyAdapter = require('../../shared/better-auth.
|
|
3
|
+
const kyselyAdapter = require('../../shared/better-auth.BfH-lFD6.cjs');
|
|
4
4
|
require('kysely');
|
|
5
5
|
require('../../shared/better-auth.CPX-72D3.cjs');
|
|
6
6
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.CDrXwByU.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.DucIUs9A.cjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.B1oy2bj7.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.cwtQKU8o.mjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.CZvovbWq.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CoXYkOjx.js';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as createKyselyAdapter, g as getKyselyDatabaseType, k as kyselyAdapter } from '../../shared/better-auth.
|
|
1
|
+
export { c as createKyselyAdapter, g as getKyselyDatabaseType, k as kyselyAdapter } from '../../shared/better-auth.r7DxcRaY.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
3
|
import '../../shared/better-auth.s0y6HeiD.mjs';
|
|
4
4
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CDrXwByU.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.DucIUs9A.cjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B1oy2bj7.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.cwtQKU8o.mjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CZvovbWq.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CoXYkOjx.js';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CDrXwByU.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.DucIUs9A.cjs';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B1oy2bj7.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.cwtQKU8o.mjs';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CZvovbWq.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.CoXYkOjx.js';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
10
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CDrXwByU.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.DucIUs9A.cjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B1oy2bj7.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.cwtQKU8o.mjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.CZvovbWq.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CoXYkOjx.js';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
package/dist/adapters/test.cjs
CHANGED
|
@@ -987,6 +987,15 @@ async function runNumberIdAdapterTest(opts) {
|
|
|
987
987
|
);
|
|
988
988
|
});
|
|
989
989
|
}
|
|
990
|
+
function recoverProcessTZ() {
|
|
991
|
+
const originalTZ = process.env.TZ;
|
|
992
|
+
return {
|
|
993
|
+
[Symbol.dispose]: () => {
|
|
994
|
+
process.env.TZ = originalTZ;
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
}
|
|
990
998
|
|
|
999
|
+
exports.recoverProcessTZ = recoverProcessTZ;
|
|
991
1000
|
exports.runAdapterTest = runAdapterTest;
|
|
992
1001
|
exports.runNumberIdAdapterTest = runNumberIdAdapterTest;
|
package/dist/adapters/test.d.cts
CHANGED
|
@@ -1,9 +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.CDrXwByU.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.DucIUs9A.cjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -81,5 +81,8 @@ declare const numberIdAdapterTests: {
|
|
|
81
81
|
};
|
|
82
82
|
declare function runAdapterTest(opts: AdapterTestOptions): Promise<void>;
|
|
83
83
|
declare function runNumberIdAdapterTest(opts: NumberIdAdapterTestOptions): Promise<void>;
|
|
84
|
+
declare function recoverProcessTZ(): {
|
|
85
|
+
[Symbol.dispose]: () => void;
|
|
86
|
+
};
|
|
84
87
|
|
|
85
|
-
export { runAdapterTest, runNumberIdAdapterTest };
|
|
88
|
+
export { recoverProcessTZ, runAdapterTest, runNumberIdAdapterTest };
|
package/dist/adapters/test.d.mts
CHANGED
|
@@ -1,9 +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.B1oy2bj7.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.cwtQKU8o.mjs';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -81,5 +81,8 @@ declare const numberIdAdapterTests: {
|
|
|
81
81
|
};
|
|
82
82
|
declare function runAdapterTest(opts: AdapterTestOptions): Promise<void>;
|
|
83
83
|
declare function runNumberIdAdapterTest(opts: NumberIdAdapterTestOptions): Promise<void>;
|
|
84
|
+
declare function recoverProcessTZ(): {
|
|
85
|
+
[Symbol.dispose]: () => void;
|
|
86
|
+
};
|
|
84
87
|
|
|
85
|
-
export { runAdapterTest, runNumberIdAdapterTest };
|
|
88
|
+
export { recoverProcessTZ, runAdapterTest, runNumberIdAdapterTest };
|
package/dist/adapters/test.d.ts
CHANGED
|
@@ -1,9 +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.CZvovbWq.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.CoXYkOjx.js';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
import 'bun:sqlite';
|
|
@@ -81,5 +81,8 @@ declare const numberIdAdapterTests: {
|
|
|
81
81
|
};
|
|
82
82
|
declare function runAdapterTest(opts: AdapterTestOptions): Promise<void>;
|
|
83
83
|
declare function runNumberIdAdapterTest(opts: NumberIdAdapterTestOptions): Promise<void>;
|
|
84
|
+
declare function recoverProcessTZ(): {
|
|
85
|
+
[Symbol.dispose]: () => void;
|
|
86
|
+
};
|
|
84
87
|
|
|
85
|
-
export { runAdapterTest, runNumberIdAdapterTest };
|
|
88
|
+
export { recoverProcessTZ, runAdapterTest, runNumberIdAdapterTest };
|
package/dist/adapters/test.mjs
CHANGED
|
@@ -985,5 +985,13 @@ async function runNumberIdAdapterTest(opts) {
|
|
|
985
985
|
);
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
|
+
function recoverProcessTZ() {
|
|
989
|
+
const originalTZ = process.env.TZ;
|
|
990
|
+
return {
|
|
991
|
+
[Symbol.dispose]: () => {
|
|
992
|
+
process.env.TZ = originalTZ;
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
}
|
|
988
996
|
|
|
989
|
-
export { runAdapterTest, runNumberIdAdapterTest };
|
|
997
|
+
export { recoverProcessTZ, runAdapterTest, runNumberIdAdapterTest };
|
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.BaoSQduK.cjs');
|
|
5
5
|
const session = require('../shared/better-auth.CAcHGnwq.cjs');
|
|
6
6
|
const z = require('zod');
|
|
7
7
|
const cookies_index = require('../shared/better-auth.CXM9s0dx.cjs');
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export {
|
|
1
|
+
import '../shared/better-auth.DucIUs9A.cjs';
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.CDrXwByU.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export {
|
|
1
|
+
import '../shared/better-auth.cwtQKU8o.mjs';
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.B1oy2bj7.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
2
|
-
export {
|
|
1
|
+
import '../shared/better-auth.CoXYkOjx.js';
|
|
2
|
+
export { z as AuthEndpoint, D as AuthMiddleware, br as accountInfo, aT as callbackOAuth, bi as changeEmail, be as changePassword, aO as checkEndpointConflicts, y as createAuthEndpoint, x as createAuthMiddleware, b9 as createEmailVerificationToken, bg as deleteUser, bh as deleteUserCallback, bj as error, b5 as forgetPassword, b7 as forgetPasswordCallback, a_ as freshSessionMiddleware, bp as getAccessToken, aP as getEndpoints, aV as getSession, aW as getSessionFromCtx, aU as getSessionQuerySchema, bn as linkSocialAccount, a$ as listSessions, bm as listUserAccounts, bk as ok, w as optionsMiddleware, bt as originCheck, bs as originCheckMiddleware, bq as refreshToken, aZ as requestOnlySessionMiddleware, b4 as requestPasswordReset, b6 as requestPasswordResetCallback, b8 as resetPassword, b2 as revokeOtherSessions, b0 as revokeSession, b1 as revokeSessions, aQ as router, bb as sendVerificationEmail, ba as sendVerificationEmailFn, aY as sensitiveSessionMiddleware, aX as sessionMiddleware, bf as setPassword, aS as signInEmail, aR as signInSocial, b3 as signOut, bl as signUpEmail, bo as unlinkAccount, bd as updateUser, bc as verifyEmail } from '../shared/better-auth.CZvovbWq.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.js';
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,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.Dgq_1hxR.mjs';
|
|
4
|
+
export { o as originCheck, T as sendVerificationEmailFn } from '../shared/better-auth.Dgq_1hxR.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.CBY7cUGy.mjs';
|
|
6
6
|
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, h as getSessionQuerySchema, o as optionsMiddleware, j as requestOnlySessionMiddleware, i as sensitiveSessionMiddleware, s as sessionMiddleware } from '../shared/better-auth.CBY7cUGy.mjs';
|
|
7
7
|
import * as z from 'zod';
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.CDrXwByU.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.BD_jCp3k.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.BD_jCp3k.cjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
@@ -11,7 +11,7 @@ import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-au
|
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'better-call';
|
|
14
|
-
import '../shared/better-auth.
|
|
14
|
+
import '../shared/better-auth.DucIUs9A.cjs';
|
|
15
15
|
import 'zod/v4/core';
|
|
16
16
|
import 'better-sqlite3';
|
|
17
17
|
import 'bun:sqlite';
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.B1oy2bj7.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.DYjAlD1B.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.DYjAlD1B.mjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
@@ -11,7 +11,7 @@ import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-au
|
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'better-call';
|
|
14
|
-
import '../shared/better-auth.
|
|
14
|
+
import '../shared/better-auth.cwtQKU8o.mjs';
|
|
15
15
|
import 'zod/v4/core';
|
|
16
16
|
import 'better-sqlite3';
|
|
17
17
|
import 'bun:sqlite';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as BASE_ERROR_CODES, n as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.CZvovbWq.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.C2mFwSXc.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.C2mFwSXc.js';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
@@ -11,7 +11,7 @@ import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-au
|
|
|
11
11
|
import 'zod';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'better-call';
|
|
14
|
-
import '../shared/better-auth.
|
|
14
|
+
import '../shared/better-auth.CoXYkOjx.js';
|
|
15
15
|
import 'zod/v4/core';
|
|
16
16
|
import 'better-sqlite3';
|
|
17
17
|
import 'bun:sqlite';
|