better-auth 1.3.10-beta.6 → 1.3.10
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 +3 -3
- package/dist/adapters/drizzle-adapter/index.d.cts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.ts +1 -1
- package/dist/adapters/drizzle-adapter/index.mjs +3 -3
- package/dist/adapters/index.cjs +2 -2
- package/dist/adapters/index.d.cts +6 -4
- package/dist/adapters/index.d.mts +6 -4
- package/dist/adapters/index.d.ts +6 -4
- package/dist/adapters/index.mjs +1 -1
- package/dist/adapters/kysely-adapter/index.cjs +2 -2
- package/dist/adapters/kysely-adapter/index.d.cts +1 -1
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.d.ts +1 -1
- package/dist/adapters/kysely-adapter/index.mjs +2 -2
- package/dist/adapters/memory-adapter/index.cjs +2 -2
- package/dist/adapters/memory-adapter/index.d.cts +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.d.ts +1 -1
- package/dist/adapters/memory-adapter/index.mjs +2 -2
- package/dist/adapters/mongodb-adapter/index.cjs +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
- package/dist/adapters/mongodb-adapter/index.mjs +2 -2
- package/dist/adapters/prisma-adapter/index.cjs +3 -3
- package/dist/adapters/prisma-adapter/index.d.cts +1 -1
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.d.ts +1 -1
- package/dist/adapters/prisma-adapter/index.mjs +3 -3
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.mjs +3 -3
- package/dist/client/plugins/index.cjs +1 -1
- package/dist/client/plugins/index.d.cts +10 -10
- package/dist/client/plugins/index.d.mts +10 -10
- package/dist/client/plugins/index.d.ts +10 -10
- package/dist/client/plugins/index.mjs +1 -1
- package/dist/client/react/index.cjs +2 -2
- package/dist/client/react/index.d.cts +5 -5
- package/dist/client/react/index.d.mts +5 -5
- package/dist/client/react/index.d.ts +5 -5
- package/dist/client/react/index.mjs +2 -2
- package/dist/client/solid/index.cjs +2 -2
- package/dist/client/solid/index.d.cts +5 -5
- package/dist/client/solid/index.d.mts +5 -5
- package/dist/client/solid/index.d.ts +5 -5
- package/dist/client/solid/index.mjs +2 -2
- package/dist/client/svelte/index.cjs +2 -2
- package/dist/client/svelte/index.d.cts +5 -5
- package/dist/client/svelte/index.d.mts +5 -5
- package/dist/client/svelte/index.d.ts +5 -5
- package/dist/client/svelte/index.mjs +2 -2
- package/dist/client/vue/index.cjs +2 -2
- package/dist/client/vue/index.d.cts +5 -5
- package/dist/client/vue/index.d.mts +5 -5
- package/dist/client/vue/index.d.ts +5 -5
- package/dist/client/vue/index.mjs +2 -2
- package/dist/cookies/index.d.cts +1 -1
- package/dist/cookies/index.d.mts +1 -1
- package/dist/cookies/index.d.ts +1 -1
- package/dist/db/index.cjs +4 -4
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.mjs +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.mjs +5 -5
- package/dist/integrations/next-js.d.cts +1 -1
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/next-js.d.ts +1 -1
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/react-start.d.cts +1 -1
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/react-start.d.ts +1 -1
- package/dist/integrations/svelte-kit.d.cts +1 -1
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.ts +1 -1
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/plugins/admin/access/index.cjs +2 -0
- 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 +2 -0
- package/dist/plugins/admin/index.cjs +1 -1
- package/dist/plugins/admin/index.d.cts +99 -15
- package/dist/plugins/admin/index.d.mts +99 -15
- package/dist/plugins/admin/index.d.ts +99 -15
- package/dist/plugins/admin/index.mjs +1 -1
- package/dist/plugins/anonymous/index.d.cts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.ts +1 -1
- package/dist/plugins/bearer/index.d.cts +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.ts +1 -1
- package/dist/plugins/captcha/index.d.cts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.d.cts +1 -1
- package/dist/plugins/custom-session/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.ts +1 -1
- package/dist/plugins/device-authorization/index.d.cts +1 -1
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/device-authorization/index.d.ts +1 -1
- package/dist/plugins/email-otp/index.d.cts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.ts +1 -1
- package/dist/plugins/generic-oauth/index.d.cts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.ts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
- package/dist/plugins/index.cjs +17 -12
- package/dist/plugins/index.d.cts +5 -5
- package/dist/plugins/index.d.mts +5 -5
- package/dist/plugins/index.d.ts +5 -5
- package/dist/plugins/index.mjs +17 -12
- package/dist/plugins/jwt/index.d.cts +1 -1
- package/dist/plugins/jwt/index.d.mts +1 -1
- package/dist/plugins/jwt/index.d.ts +1 -1
- package/dist/plugins/multi-session/index.d.cts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.ts +1 -1
- package/dist/plugins/oauth-proxy/index.d.cts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.ts +1 -1
- package/dist/plugins/oidc-provider/index.d.cts +5 -5
- package/dist/plugins/oidc-provider/index.d.mts +5 -5
- package/dist/plugins/oidc-provider/index.d.ts +5 -5
- package/dist/plugins/one-time-token/index.d.cts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.ts +1 -1
- package/dist/plugins/open-api/index.d.cts +1 -1
- package/dist/plugins/open-api/index.d.mts +1 -1
- package/dist/plugins/open-api/index.d.ts +1 -1
- package/dist/plugins/organization/index.d.cts +1 -1
- package/dist/plugins/organization/index.d.mts +1 -1
- package/dist/plugins/organization/index.d.ts +1 -1
- package/dist/plugins/passkey/index.d.cts +1 -1
- package/dist/plugins/passkey/index.d.mts +1 -1
- package/dist/plugins/passkey/index.d.ts +1 -1
- package/dist/plugins/phone-number/index.d.cts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.ts +1 -1
- package/dist/plugins/siwe/index.d.cts +1 -1
- package/dist/plugins/siwe/index.d.mts +1 -1
- package/dist/plugins/siwe/index.d.ts +1 -1
- package/dist/plugins/sso/index.d.cts +3 -3
- package/dist/plugins/sso/index.d.mts +3 -3
- package/dist/plugins/sso/index.d.ts +3 -3
- package/dist/plugins/two-factor/index.d.cts +1 -1
- package/dist/plugins/two-factor/index.d.mts +1 -1
- package/dist/plugins/two-factor/index.d.ts +1 -1
- package/dist/plugins/username/index.d.cts +3 -3
- package/dist/plugins/username/index.d.mts +3 -3
- package/dist/plugins/username/index.d.ts +3 -3
- package/dist/shared/{better-auth.DkOdlfr0.cjs → better-auth.4_1BfAo1.cjs} +1 -1
- package/dist/shared/{better-auth.CKZBcv9r.mjs → better-auth.6v1lyy-4.mjs} +71 -5
- package/dist/shared/{better-auth.D_SG1BCH.d.mts → better-auth.B2TW1bPT.d.mts} +5 -5
- package/dist/shared/{better-auth.Cr6R3hS8.d.ts → better-auth.B3WgX3fF.d.ts} +5 -5
- package/dist/shared/{better-auth.BsOSAXf7.cjs → better-auth.B5_hCdeH.cjs} +1 -1
- package/dist/shared/{better-auth.ILyjvcnK.cjs → better-auth.B8WrJz4j.cjs} +3 -3
- package/dist/shared/{better-auth.DTfADfZ7.d.cts → better-auth.BF0omEai.d.ts} +6 -6
- package/dist/shared/{better-auth.BQyhSw_h.mjs → better-auth.BJHX9nwf.mjs} +3 -3
- package/dist/shared/{better-auth.DvBDMrYi.d.ts → better-auth.BOrmgvuL.d.ts} +1 -1
- package/dist/shared/{better-auth.DEEQIVbD.d.mts → better-auth.BR-J4Fc_.d.mts} +5 -5
- package/dist/shared/{better-auth.BXr3npOi.mjs → better-auth.BRPXwKUM.mjs} +2 -2
- package/dist/shared/{better-auth.BjCY_Zcq.cjs → better-auth.BT6Fcw3P.cjs} +2 -2
- package/dist/shared/{better-auth.YvO32UJJ.mjs → better-auth.BWg2Co_n.mjs} +3 -3
- package/dist/shared/{better-auth.CkGsgrvv.mjs → better-auth.BYWGbmZ5.mjs} +6 -3
- package/dist/shared/{better-auth.BeDO3QKR.d.cts → better-auth.BuRgSiEx.d.cts} +1 -1
- package/dist/shared/{better-auth.BA3nnHWN.mjs → better-auth.C6XqSToF.mjs} +1 -1
- package/dist/shared/{better-auth.BdO8lgY0.d.ts → better-auth.CCUxKNtc.d.cts} +6 -6
- package/dist/shared/{better-auth.BKHIQ-m2.cjs → better-auth.CPX-72D3.cjs} +5 -2
- package/dist/shared/{better-auth.D73o3kAu.cjs → better-auth.CTsKSwa1.cjs} +69 -3
- package/dist/shared/{better-auth.2UzT1yFK.cjs → better-auth.CfoT4oLs.cjs} +3 -3
- package/dist/shared/{better-auth.DB_Ngz5y.d.cts → better-auth.Cxv0YRbF.d.cts} +5 -5
- package/dist/shared/{better-auth.CYZmwTIS.cjs → better-auth.D9AYOecd.cjs} +6 -3
- package/dist/shared/{better-auth.CYu_lmZF.mjs → better-auth.D9gaWLZm.mjs} +3 -3
- package/dist/shared/{better-auth.oTR3UWsx.d.ts → better-auth.DL3x2oYe.d.ts} +1 -1
- package/dist/shared/{better-auth.CCDQ2E-q.cjs → better-auth.DXeNPmcB.cjs} +3 -3
- package/dist/shared/{better-auth.BcM4G_uD.cjs → better-auth.DoIzix-f.cjs} +2 -2
- package/dist/shared/{better-auth.CJRoiRNo.mjs → better-auth.Dwnp6dQN.mjs} +2 -2
- package/dist/shared/{better-auth.fSewea6i.mjs → better-auth.SCAGFnmj.mjs} +1 -1
- package/dist/shared/{better-auth.zEyNaqWs.d.mts → better-auth.c1TKK0bc.d.mts} +1 -1
- package/dist/shared/{better-auth.CEVJFjf5.d.mts → better-auth.fbWvDPcW.d.cts} +1 -1
- package/dist/shared/{better-auth.CjHBO2Hy.d.cts → better-auth.knATFWO2.d.mts} +1 -1
- package/dist/shared/{better-auth.CwGMB0qw.mjs → better-auth.s0y6HeiD.mjs} +5 -2
- package/dist/test-utils/index.cjs +9 -9
- package/dist/test-utils/index.d.cts +2 -2
- package/dist/test-utils/index.d.mts +2 -2
- package/dist/test-utils/index.d.ts +2 -2
- package/dist/test-utils/index.mjs +9 -9
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const drizzleOrm = require('drizzle-orm');
|
|
4
4
|
const index$1 = require('../../shared/better-auth.ANpbi45u.cjs');
|
|
5
|
-
const index = require('../../shared/better-auth.
|
|
5
|
+
const index = require('../../shared/better-auth.CPX-72D3.cjs');
|
|
6
6
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
7
7
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
@@ -249,7 +249,7 @@ const drizzleAdapter = (db, config) => {
|
|
|
249
249
|
usePlural: config.usePlural ?? false,
|
|
250
250
|
debugLogs: config.debugLogs ?? false,
|
|
251
251
|
transaction: config.transaction ?? true ? (cb) => db.transaction((tx) => {
|
|
252
|
-
const adapter2 = index.
|
|
252
|
+
const adapter2 = index.createAdapterFactory({
|
|
253
253
|
config: adapterOptions.config,
|
|
254
254
|
adapter: createCustomAdapter(tx)
|
|
255
255
|
})(lazyOptions);
|
|
@@ -258,7 +258,7 @@ const drizzleAdapter = (db, config) => {
|
|
|
258
258
|
},
|
|
259
259
|
adapter: createCustomAdapter(db)
|
|
260
260
|
};
|
|
261
|
-
const adapter = index.
|
|
261
|
+
const adapter = index.createAdapterFactory(adapterOptions);
|
|
262
262
|
return (options) => {
|
|
263
263
|
lazyOptions = options;
|
|
264
264
|
return adapter(options);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.Cxv0YRbF.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B2TW1bPT.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B3WgX3fF.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { count, desc, asc, inArray, notInArray, like, lt, lte, ne, gt, gte, eq, and, or, sql } from 'drizzle-orm';
|
|
2
2
|
import { B as BetterAuthError } from '../../shared/better-auth.DdzSJf-n.mjs';
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as createAdapterFactory } from '../../shared/better-auth.s0y6HeiD.mjs';
|
|
4
4
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
5
5
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
6
6
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
@@ -247,7 +247,7 @@ const drizzleAdapter = (db, config) => {
|
|
|
247
247
|
usePlural: config.usePlural ?? false,
|
|
248
248
|
debugLogs: config.debugLogs ?? false,
|
|
249
249
|
transaction: config.transaction ?? true ? (cb) => db.transaction((tx) => {
|
|
250
|
-
const adapter2 =
|
|
250
|
+
const adapter2 = createAdapterFactory({
|
|
251
251
|
config: adapterOptions.config,
|
|
252
252
|
adapter: createCustomAdapter(tx)
|
|
253
253
|
})(lazyOptions);
|
|
@@ -256,7 +256,7 @@ const drizzleAdapter = (db, config) => {
|
|
|
256
256
|
},
|
|
257
257
|
adapter: createCustomAdapter(db)
|
|
258
258
|
};
|
|
259
|
-
const adapter =
|
|
259
|
+
const adapter = createAdapterFactory(adapterOptions);
|
|
260
260
|
return (options) => {
|
|
261
261
|
lazyOptions = options;
|
|
262
262
|
return adapter(options);
|
package/dist/adapters/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('../shared/better-auth.
|
|
3
|
+
const index = require('../shared/better-auth.CPX-72D3.cjs');
|
|
4
4
|
require('../shared/better-auth.DgMx7bVs.cjs');
|
|
5
5
|
require('../shared/better-auth.DTvRBuq4.cjs');
|
|
6
6
|
require('../shared/better-auth.B6fIklBU.cjs');
|
|
@@ -21,4 +21,4 @@ require('../shared/better-auth.CYeOI8C-.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.
|
|
24
|
+
exports.createAdapterFactory = index.createAdapterFactory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { b as AdapterConfig, A as AdapterDebugLogs, f as AdapterTestDebugLogs, e as CleanedWhere, c as CreateCustomAdapter, d as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, C as CreateAdapterOptions } from '../shared/better-auth.Cxv0YRbF.cjs';
|
|
2
|
+
export { b as AdapterConfig, A as AdapterDebugLogs, f as AdapterTestDebugLogs, e as CleanedWhere, c as CreateCustomAdapter, d as CustomAdapter } from '../shared/better-auth.Cxv0YRbF.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -10,6 +10,8 @@ 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, }: CreateAdapterOptions) => AdapterFactory;
|
|
14
15
|
|
|
15
|
-
export { CreateAdapterOptions,
|
|
16
|
+
export { CreateAdapterOptions, createAdapterFactory };
|
|
17
|
+
export type { AdapterFactory };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { b as AdapterConfig, A as AdapterDebugLogs, f as AdapterTestDebugLogs, e as CleanedWhere, c as CreateCustomAdapter, d as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, C as CreateAdapterOptions } from '../shared/better-auth.B2TW1bPT.mjs';
|
|
2
|
+
export { b as AdapterConfig, A as AdapterDebugLogs, f as AdapterTestDebugLogs, e as CleanedWhere, c as CreateCustomAdapter, d as CustomAdapter } from '../shared/better-auth.B2TW1bPT.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -10,6 +10,8 @@ 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, }: CreateAdapterOptions) => AdapterFactory;
|
|
14
15
|
|
|
15
|
-
export { CreateAdapterOptions,
|
|
16
|
+
export { CreateAdapterOptions, createAdapterFactory };
|
|
17
|
+
export type { AdapterFactory };
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { b as AdapterConfig, A as AdapterDebugLogs, f as AdapterTestDebugLogs, e as CleanedWhere, c as CreateCustomAdapter, d as CustomAdapter } from '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter, C as CreateAdapterOptions } from '../shared/better-auth.B3WgX3fF.js';
|
|
2
|
+
export { b as AdapterConfig, A as AdapterDebugLogs, f as AdapterTestDebugLogs, e as CleanedWhere, c as CreateCustomAdapter, d as CustomAdapter } from '../shared/better-auth.B3WgX3fF.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -10,6 +10,8 @@ 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, }: CreateAdapterOptions) => AdapterFactory;
|
|
14
15
|
|
|
15
|
-
export { CreateAdapterOptions,
|
|
16
|
+
export { CreateAdapterOptions, createAdapterFactory };
|
|
17
|
+
export type { AdapterFactory };
|
package/dist/adapters/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as
|
|
1
|
+
export { 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';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const kyselyAdapter = require('../../shared/better-auth.
|
|
3
|
+
const kyselyAdapter = require('../../shared/better-auth.CfoT4oLs.cjs');
|
|
4
4
|
require('kysely');
|
|
5
|
-
require('../../shared/better-auth.
|
|
5
|
+
require('../../shared/better-auth.CPX-72D3.cjs');
|
|
6
6
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
7
7
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.Cxv0YRbF.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.B2TW1bPT.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.B3WgX3fF.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
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.BWg2Co_n.mjs';
|
|
2
2
|
import 'kysely';
|
|
3
|
-
import '../../shared/better-auth.
|
|
3
|
+
import '../../shared/better-auth.s0y6HeiD.mjs';
|
|
4
4
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
5
5
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
6
6
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const memoryAdapter = require('../../shared/better-auth.
|
|
3
|
+
const memoryAdapter = require('../../shared/better-auth.DoIzix-f.cjs');
|
|
4
4
|
require('@better-auth/utils/random');
|
|
5
5
|
require('zod');
|
|
6
6
|
require('better-call');
|
|
@@ -15,7 +15,7 @@ require('@noble/hashes/utils.js');
|
|
|
15
15
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
16
16
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
17
17
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
18
|
-
require('../../shared/better-auth.
|
|
18
|
+
require('../../shared/better-auth.CPX-72D3.cjs');
|
|
19
19
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
20
20
|
require('../../shared/better-auth.DF_1VOmo.cjs');
|
|
21
21
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.Cxv0YRbF.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B2TW1bPT.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B3WgX3fF.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as memoryAdapter } from '../../shared/better-auth.
|
|
1
|
+
export { m as memoryAdapter } from '../../shared/better-auth.BRPXwKUM.mjs';
|
|
2
2
|
import '@better-auth/utils/random';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
@@ -13,7 +13,7 @@ import '@noble/hashes/utils.js';
|
|
|
13
13
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
14
14
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
15
15
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
16
|
-
import '../../shared/better-auth.
|
|
16
|
+
import '../../shared/better-auth.s0y6HeiD.mjs';
|
|
17
17
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
18
18
|
import '../../shared/better-auth.Cjw1GDsh.mjs';
|
|
19
19
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const mongodbAdapter = require('../../shared/better-auth.
|
|
3
|
+
const mongodbAdapter = require('../../shared/better-auth.DXeNPmcB.cjs');
|
|
4
4
|
require('mongodb');
|
|
5
|
-
require('../../shared/better-auth.
|
|
5
|
+
require('../../shared/better-auth.CPX-72D3.cjs');
|
|
6
6
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
7
7
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.Cxv0YRbF.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B2TW1bPT.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MongoClient, Db } from 'mongodb';
|
|
2
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
2
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B3WgX3fF.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { m as mongodbAdapter } from '../../shared/better-auth.
|
|
1
|
+
export { m as mongodbAdapter } from '../../shared/better-auth.D9gaWLZm.mjs';
|
|
2
2
|
import 'mongodb';
|
|
3
|
-
import '../../shared/better-auth.
|
|
3
|
+
import '../../shared/better-auth.s0y6HeiD.mjs';
|
|
4
4
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
5
5
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
6
6
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index$1 = require('../../shared/better-auth.ANpbi45u.cjs');
|
|
4
|
-
const index = require('../../shared/better-auth.
|
|
4
|
+
const index = require('../../shared/better-auth.CPX-72D3.cjs');
|
|
5
5
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
6
6
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
7
7
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
@@ -181,7 +181,7 @@ const prismaAdapter = (prisma, config) => {
|
|
|
181
181
|
usePlural: config.usePlural ?? false,
|
|
182
182
|
debugLogs: config.debugLogs ?? false,
|
|
183
183
|
transaction: config.transaction ?? true ? (cb) => prisma.$transaction((tx) => {
|
|
184
|
-
const adapter2 = index.
|
|
184
|
+
const adapter2 = index.createAdapterFactory({
|
|
185
185
|
config: adapterOptions.config,
|
|
186
186
|
adapter: createCustomAdapter(tx)
|
|
187
187
|
})(lazyOptions);
|
|
@@ -190,7 +190,7 @@ const prismaAdapter = (prisma, config) => {
|
|
|
190
190
|
},
|
|
191
191
|
adapter: createCustomAdapter(prisma)
|
|
192
192
|
};
|
|
193
|
-
const adapter = index.
|
|
193
|
+
const adapter = index.createAdapterFactory(adapterOptions);
|
|
194
194
|
return (options) => {
|
|
195
195
|
lazyOptions = options;
|
|
196
196
|
return adapter(options);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.Cxv0YRbF.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B2TW1bPT.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.B3WgX3fF.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'better-call';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BetterAuthError } from '../../shared/better-auth.DdzSJf-n.mjs';
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as createAdapterFactory } from '../../shared/better-auth.s0y6HeiD.mjs';
|
|
3
3
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
4
4
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
5
5
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
@@ -179,7 +179,7 @@ const prismaAdapter = (prisma, config) => {
|
|
|
179
179
|
usePlural: config.usePlural ?? false,
|
|
180
180
|
debugLogs: config.debugLogs ?? false,
|
|
181
181
|
transaction: config.transaction ?? true ? (cb) => prisma.$transaction((tx) => {
|
|
182
|
-
const adapter2 =
|
|
182
|
+
const adapter2 = createAdapterFactory({
|
|
183
183
|
config: adapterOptions.config,
|
|
184
184
|
adapter: createCustomAdapter(tx)
|
|
185
185
|
})(lazyOptions);
|
|
@@ -188,7 +188,7 @@ const prismaAdapter = (prisma, config) => {
|
|
|
188
188
|
},
|
|
189
189
|
adapter: createCustomAdapter(prisma)
|
|
190
190
|
};
|
|
191
|
-
const adapter =
|
|
191
|
+
const adapter = createAdapterFactory(adapterOptions);
|
|
192
192
|
return (options) => {
|
|
193
193
|
lazyOptions = options;
|
|
194
194
|
return adapter(options);
|
package/dist/adapters/test.d.cts
CHANGED
package/dist/adapters/test.d.mts
CHANGED
package/dist/adapters/test.d.ts
CHANGED
package/dist/api/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.DhdDxivH.cjs';
|
|
2
|
-
export { D as AuthEndpoint, E as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, z as createAuthEndpoint, y as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, x as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { D as AuthEndpoint, E as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, z as createAuthEndpoint, y as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, x as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.Cxv0YRbF.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.BHqN3Ecq.mjs';
|
|
2
|
-
export { D as AuthEndpoint, E as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, z as createAuthEndpoint, y as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, x as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { D as AuthEndpoint, E as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, z as createAuthEndpoint, y as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, x as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.B2TW1bPT.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../shared/better-auth.B2AIpsP8.js';
|
|
2
|
-
export { D as AuthEndpoint, E as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, z as createAuthEndpoint, y as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, x as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.
|
|
2
|
+
export { D as AuthEndpoint, E as AuthMiddleware, bs as accountInfo, aU as callbackOAuth, bj as changeEmail, bf as changePassword, aP as checkEndpointConflicts, z as createAuthEndpoint, y as createAuthMiddleware, ba as createEmailVerificationToken, bh as deleteUser, bi as deleteUserCallback, bk as error, b6 as forgetPassword, b8 as forgetPasswordCallback, a$ as freshSessionMiddleware, bq as getAccessToken, aQ as getEndpoints, aW as getSession, aX as getSessionFromCtx, aV as getSessionQuerySchema, bo as linkSocialAccount, b0 as listSessions, bn as listUserAccounts, bl as ok, x as optionsMiddleware, bu as originCheck, bt as originCheckMiddleware, br as refreshToken, a_ as requestOnlySessionMiddleware, b5 as requestPasswordReset, b7 as requestPasswordResetCallback, b9 as resetPassword, b3 as revokeOtherSessions, b1 as revokeSession, b2 as revokeSessions, aR as router, bc as sendVerificationEmail, bb as sendVerificationEmailFn, aZ as sensitiveSessionMiddleware, aY as sessionMiddleware, bg as setPassword, aT as signInEmail, aS as signInSocial, b4 as signOut, bm as signUpEmail, bp as unlinkAccount, be as updateUser, bd as verifyEmail } from '../shared/better-auth.B3WgX3fF.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.js';
|
package/dist/client/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const vanilla = require('../shared/better-auth.
|
|
4
|
-
const query = require('../shared/better-auth.
|
|
5
|
-
require('../shared/better-auth.
|
|
3
|
+
const vanilla = require('../shared/better-auth.B5_hCdeH.cjs');
|
|
4
|
+
const query = require('../shared/better-auth.D9AYOecd.cjs');
|
|
5
|
+
require('../shared/better-auth.4_1BfAo1.cjs');
|
|
6
6
|
require('@better-fetch/fetch');
|
|
7
7
|
require('../shared/better-auth.DRmln2Nr.cjs');
|
|
8
8
|
require('../shared/better-auth.B6fIklBU.cjs');
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as BASE_ERROR_CODES, s as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { g as BASE_ERROR_CODES, s as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.Cxv0YRbF.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.BuRgSiEx.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.BuRgSiEx.cjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as BASE_ERROR_CODES, s as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { g as BASE_ERROR_CODES, s as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.B2TW1bPT.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.c1TKK0bc.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.c1TKK0bc.mjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as BASE_ERROR_CODES, s as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { g as BASE_ERROR_CODES, s as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.B3WgX3fF.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.BOrmgvuL.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.BOrmgvuL.js';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { c as createAuthClient } from '../shared/better-auth.
|
|
2
|
-
export { u as useAuthQuery } from '../shared/better-auth.
|
|
3
|
-
import '../shared/better-auth.
|
|
1
|
+
export { c as createAuthClient } from '../shared/better-auth.SCAGFnmj.mjs';
|
|
2
|
+
export { u as useAuthQuery } from '../shared/better-auth.BYWGbmZ5.mjs';
|
|
3
|
+
import '../shared/better-auth.C6XqSToF.mjs';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
5
5
|
import '../shared/better-auth.DxV4YGX3.mjs';
|
|
6
6
|
import '../shared/better-auth.CiuwFiHM.mjs';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const nanostores = require('nanostores');
|
|
4
4
|
require('@better-fetch/fetch');
|
|
5
5
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
6
|
-
const query = require('../../shared/better-auth.
|
|
6
|
+
const query = require('../../shared/better-auth.D9AYOecd.cjs');
|
|
7
7
|
const plugins_organization_access_index = require('../../plugins/organization/access/index.cjs');
|
|
8
8
|
const hasPermission = require('../../shared/better-auth.yamXE7-N.cjs');
|
|
9
9
|
const browser = require('@simplewebauthn/browser');
|
|
@@ -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 { L as FieldAttribute, B as BetterAuthOptions, U as User, s as BetterAuthPlugin } from '../../shared/better-auth.
|
|
5
|
+
import { L as FieldAttribute, B as BetterAuthOptions, U as User, s as BetterAuthPlugin } from '../../shared/better-auth.Cxv0YRbF.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.BuRgSiEx.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.CCUxKNtc.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';
|
|
@@ -687,7 +687,7 @@ declare const adminClient: <O extends AdminClientOptions>(options?: O) => {
|
|
|
687
687
|
id: "admin-client";
|
|
688
688
|
$InferServerPlugin: ReturnType<typeof admin<{
|
|
689
689
|
ac: O["ac"] extends AccessControl ? O["ac"] : AccessControl<{
|
|
690
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "update"];
|
|
690
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"];
|
|
691
691
|
readonly session: readonly ["list", "revoke", "delete"];
|
|
692
692
|
}>;
|
|
693
693
|
roles: O["roles"] extends Record<string, Role> ? O["roles"] : {
|
|
@@ -704,25 +704,25 @@ declare const adminClient: <O extends AdminClientOptions>(options?: O) => {
|
|
|
704
704
|
* @deprecated Use `permissions` instead
|
|
705
705
|
*/
|
|
706
706
|
permission: { [key in keyof (O["ac"] extends AccessControl<infer S extends Statements> ? S : {
|
|
707
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "update"];
|
|
707
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"];
|
|
708
708
|
readonly session: readonly ["list", "revoke", "delete"];
|
|
709
709
|
})]?: ((O["ac"] extends AccessControl<infer S extends Statements> ? S : {
|
|
710
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "update"];
|
|
710
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"];
|
|
711
711
|
readonly session: readonly ["list", "revoke", "delete"];
|
|
712
712
|
})[key] extends readonly unknown[] ? (O["ac"] extends AccessControl<infer S extends Statements> ? S : {
|
|
713
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "update"];
|
|
713
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"];
|
|
714
714
|
readonly session: readonly ["list", "revoke", "delete"];
|
|
715
715
|
})[key][number] : never)[] | undefined; };
|
|
716
716
|
permissions?: never;
|
|
717
717
|
} | {
|
|
718
718
|
permissions: { [key in keyof (O["ac"] extends AccessControl<infer S extends Statements> ? S : {
|
|
719
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "update"];
|
|
719
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"];
|
|
720
720
|
readonly session: readonly ["list", "revoke", "delete"];
|
|
721
721
|
})]?: ((O["ac"] extends AccessControl<infer S extends Statements> ? S : {
|
|
722
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "update"];
|
|
722
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"];
|
|
723
723
|
readonly session: readonly ["list", "revoke", "delete"];
|
|
724
724
|
})[key] extends readonly unknown[] ? (O["ac"] extends AccessControl<infer S extends Statements> ? S : {
|
|
725
|
-
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "update"];
|
|
725
|
+
readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "delete", "set-password", "get", "update"];
|
|
726
726
|
readonly session: readonly ["list", "revoke", "delete"];
|
|
727
727
|
})[key][number] : never)[] | undefined; };
|
|
728
728
|
permission?: never;
|