better-auth 1.3.0-beta.8 → 1.3.0-beta.9
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 +2 -2
- package/dist/adapters/drizzle-adapter/index.d.cts +6 -4
- package/dist/adapters/drizzle-adapter/index.d.mts +6 -4
- package/dist/adapters/drizzle-adapter/index.d.ts +6 -4
- package/dist/adapters/drizzle-adapter/index.mjs +2 -2
- package/dist/adapters/index.cjs +2 -2
- package/dist/adapters/index.d.cts +7 -5
- package/dist/adapters/index.d.mts +7 -5
- package/dist/adapters/index.d.ts +7 -5
- package/dist/adapters/index.mjs +2 -2
- package/dist/adapters/kysely-adapter/index.cjs +3 -3
- package/dist/adapters/kysely-adapter/index.d.cts +6 -4
- package/dist/adapters/kysely-adapter/index.d.mts +6 -4
- package/dist/adapters/kysely-adapter/index.d.ts +6 -4
- package/dist/adapters/kysely-adapter/index.mjs +3 -3
- package/dist/adapters/memory-adapter/index.cjs +3 -3
- package/dist/adapters/memory-adapter/index.d.cts +6 -4
- package/dist/adapters/memory-adapter/index.d.mts +6 -4
- package/dist/adapters/memory-adapter/index.d.ts +6 -4
- package/dist/adapters/memory-adapter/index.mjs +3 -3
- package/dist/adapters/mongodb-adapter/index.cjs +3 -3
- package/dist/adapters/mongodb-adapter/index.d.cts +6 -4
- package/dist/adapters/mongodb-adapter/index.d.mts +6 -4
- package/dist/adapters/mongodb-adapter/index.d.ts +6 -4
- package/dist/adapters/mongodb-adapter/index.mjs +3 -3
- package/dist/adapters/prisma-adapter/index.cjs +2 -2
- package/dist/adapters/prisma-adapter/index.d.cts +6 -4
- package/dist/adapters/prisma-adapter/index.d.mts +6 -4
- package/dist/adapters/prisma-adapter/index.d.ts +6 -4
- package/dist/adapters/prisma-adapter/index.mjs +2 -2
- package/dist/adapters/test.cjs +1 -1
- package/dist/adapters/test.d.cts +6 -4
- package/dist/adapters/test.d.mts +6 -4
- package/dist/adapters/test.d.ts +6 -4
- package/dist/adapters/test.mjs +1 -1
- package/dist/api/index.cjs +26 -8
- package/dist/api/index.d.cts +5 -3
- package/dist/api/index.d.mts +5 -3
- package/dist/api/index.d.ts +5 -3
- package/dist/api/index.mjs +13 -8
- package/dist/client/index.d.cts +8 -6
- package/dist/client/index.d.mts +8 -6
- package/dist/client/index.d.ts +8 -6
- package/dist/client/plugins/index.d.cts +18 -16
- package/dist/client/plugins/index.d.mts +18 -16
- package/dist/client/plugins/index.d.ts +18 -16
- package/dist/client/react/index.d.cts +14 -12
- package/dist/client/react/index.d.mts +14 -12
- package/dist/client/react/index.d.ts +14 -12
- package/dist/client/solid/index.d.cts +8 -6
- package/dist/client/solid/index.d.mts +8 -6
- package/dist/client/solid/index.d.ts +8 -6
- package/dist/client/svelte/index.d.cts +14 -12
- package/dist/client/svelte/index.d.mts +14 -12
- package/dist/client/svelte/index.d.ts +14 -12
- package/dist/client/vue/index.d.cts +8 -6
- package/dist/client/vue/index.d.mts +8 -6
- package/dist/client/vue/index.d.ts +8 -6
- package/dist/cookies/index.d.cts +6 -4
- package/dist/cookies/index.d.mts +6 -4
- package/dist/cookies/index.d.ts +6 -4
- package/dist/db/index.cjs +25 -11
- package/dist/db/index.d.cts +8 -6
- package/dist/db/index.d.mts +8 -6
- package/dist/db/index.d.ts +8 -6
- package/dist/db/index.mjs +7 -7
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +8 -6
- package/dist/index.d.mts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.mjs +9 -9
- package/dist/integrations/next-js.cjs +17 -6
- package/dist/integrations/next-js.d.cts +6 -4
- package/dist/integrations/next-js.d.mts +6 -4
- package/dist/integrations/next-js.d.ts +6 -4
- package/dist/integrations/next-js.mjs +17 -6
- package/dist/integrations/node.d.cts +6 -4
- package/dist/integrations/node.d.mts +6 -4
- package/dist/integrations/node.d.ts +6 -4
- package/dist/integrations/react-start.cjs +6 -5
- package/dist/integrations/react-start.d.cts +6 -4
- package/dist/integrations/react-start.d.mts +6 -4
- package/dist/integrations/react-start.d.ts +6 -4
- package/dist/integrations/react-start.mjs +6 -5
- package/dist/integrations/svelte-kit.cjs +3 -3
- package/dist/integrations/svelte-kit.d.cts +6 -4
- package/dist/integrations/svelte-kit.d.mts +6 -4
- package/dist/integrations/svelte-kit.d.ts +6 -4
- package/dist/integrations/svelte-kit.mjs +3 -3
- package/dist/oauth2/index.cjs +3 -3
- package/dist/oauth2/index.d.cts +13 -10
- package/dist/oauth2/index.d.mts +13 -10
- package/dist/oauth2/index.d.ts +13 -10
- package/dist/oauth2/index.mjs +3 -3
- package/dist/plugins/access/index.d.cts +1 -2
- package/dist/plugins/access/index.d.mts +1 -2
- package/dist/plugins/access/index.d.ts +1 -2
- package/dist/plugins/admin/access/index.d.cts +1 -2
- package/dist/plugins/admin/access/index.d.mts +1 -2
- package/dist/plugins/admin/access/index.d.ts +1 -2
- package/dist/plugins/admin/index.cjs +4 -3
- package/dist/plugins/admin/index.d.cts +114 -197
- package/dist/plugins/admin/index.d.mts +114 -197
- package/dist/plugins/admin/index.d.ts +114 -197
- package/dist/plugins/admin/index.mjs +4 -3
- package/dist/plugins/anonymous/index.cjs +4 -4
- package/dist/plugins/anonymous/index.d.cts +6 -4
- package/dist/plugins/anonymous/index.d.mts +6 -4
- package/dist/plugins/anonymous/index.d.ts +6 -4
- package/dist/plugins/anonymous/index.mjs +4 -4
- package/dist/plugins/bearer/index.cjs +3 -3
- package/dist/plugins/bearer/index.d.cts +6 -4
- package/dist/plugins/bearer/index.d.mts +6 -4
- package/dist/plugins/bearer/index.d.ts +6 -4
- package/dist/plugins/bearer/index.mjs +3 -3
- package/dist/plugins/captcha/index.d.cts +6 -4
- package/dist/plugins/captcha/index.d.mts +6 -4
- package/dist/plugins/captcha/index.d.ts +6 -4
- package/dist/plugins/custom-session/index.cjs +22 -8
- package/dist/plugins/custom-session/index.d.cts +8 -16
- package/dist/plugins/custom-session/index.d.mts +8 -16
- package/dist/plugins/custom-session/index.d.ts +8 -16
- package/dist/plugins/custom-session/index.mjs +5 -5
- package/dist/plugins/email-otp/index.cjs +24 -17
- package/dist/plugins/email-otp/index.d.cts +33 -61
- package/dist/plugins/email-otp/index.d.mts +33 -61
- package/dist/plugins/email-otp/index.d.ts +33 -61
- package/dist/plugins/email-otp/index.mjs +24 -17
- package/dist/plugins/generic-oauth/index.cjs +40 -24
- package/dist/plugins/generic-oauth/index.d.cts +23 -63
- package/dist/plugins/generic-oauth/index.d.mts +23 -63
- package/dist/plugins/generic-oauth/index.d.ts +23 -63
- package/dist/plugins/generic-oauth/index.mjs +21 -19
- package/dist/plugins/haveibeenpwned/index.cjs +3 -3
- package/dist/plugins/haveibeenpwned/index.d.cts +6 -4
- package/dist/plugins/haveibeenpwned/index.d.mts +6 -4
- package/dist/plugins/haveibeenpwned/index.d.ts +6 -4
- package/dist/plugins/haveibeenpwned/index.mjs +3 -3
- package/dist/plugins/index.cjs +112 -80
- package/dist/plugins/index.d.cts +53 -71
- package/dist/plugins/index.d.mts +53 -71
- package/dist/plugins/index.d.ts +53 -71
- package/dist/plugins/index.mjs +82 -64
- package/dist/plugins/jwt/index.cjs +9 -90
- package/dist/plugins/jwt/index.d.cts +10 -9
- package/dist/plugins/jwt/index.d.mts +10 -9
- package/dist/plugins/jwt/index.d.ts +10 -9
- package/dist/plugins/jwt/index.mjs +9 -89
- package/dist/plugins/magic-link/index.cjs +24 -10
- package/dist/plugins/magic-link/index.d.cts +4 -18
- package/dist/plugins/magic-link/index.d.mts +4 -18
- package/dist/plugins/magic-link/index.d.ts +4 -18
- package/dist/plugins/magic-link/index.mjs +8 -8
- package/dist/plugins/multi-session/index.cjs +21 -7
- package/dist/plugins/multi-session/index.d.cts +14 -20
- package/dist/plugins/multi-session/index.d.mts +14 -20
- package/dist/plugins/multi-session/index.d.ts +14 -20
- package/dist/plugins/multi-session/index.mjs +5 -5
- package/dist/plugins/oauth-proxy/index.cjs +20 -6
- package/dist/plugins/oauth-proxy/index.d.cts +7 -11
- package/dist/plugins/oauth-proxy/index.d.mts +7 -11
- package/dist/plugins/oauth-proxy/index.d.ts +7 -11
- package/dist/plugins/oauth-proxy/index.mjs +5 -5
- package/dist/plugins/oidc-provider/index.cjs +11 -6
- package/dist/plugins/oidc-provider/index.d.cts +106 -84
- package/dist/plugins/oidc-provider/index.d.mts +106 -84
- package/dist/plugins/oidc-provider/index.d.ts +106 -84
- package/dist/plugins/oidc-provider/index.mjs +10 -6
- package/dist/plugins/one-tap/index.cjs +19 -5
- package/dist/plugins/one-tap/index.d.cts +2 -6
- package/dist/plugins/one-tap/index.d.mts +2 -6
- package/dist/plugins/one-tap/index.d.ts +2 -6
- package/dist/plugins/one-tap/index.mjs +4 -4
- package/dist/plugins/one-time-token/index.cjs +7 -6
- package/dist/plugins/one-time-token/index.d.cts +9 -11
- package/dist/plugins/one-time-token/index.d.mts +9 -11
- package/dist/plugins/one-time-token/index.d.ts +9 -11
- package/dist/plugins/one-time-token/index.mjs +7 -6
- package/dist/plugins/open-api/index.cjs +21 -23
- package/dist/plugins/open-api/index.d.cts +6 -4
- package/dist/plugins/open-api/index.d.mts +6 -4
- package/dist/plugins/open-api/index.d.ts +6 -4
- package/dist/plugins/open-api/index.mjs +17 -19
- package/dist/plugins/organization/access/index.d.cts +1 -2
- package/dist/plugins/organization/access/index.d.mts +1 -2
- package/dist/plugins/organization/access/index.d.ts +1 -2
- package/dist/plugins/organization/index.cjs +5 -4
- package/dist/plugins/organization/index.d.cts +811 -1130
- package/dist/plugins/organization/index.d.mts +811 -1130
- package/dist/plugins/organization/index.d.ts +811 -1130
- package/dist/plugins/organization/index.mjs +5 -4
- package/dist/plugins/passkey/index.cjs +35 -19
- package/dist/plugins/passkey/index.d.cts +37 -60
- package/dist/plugins/passkey/index.d.mts +37 -60
- package/dist/plugins/passkey/index.d.ts +37 -60
- package/dist/plugins/passkey/index.mjs +13 -11
- package/dist/plugins/phone-number/index.cjs +36 -22
- package/dist/plugins/phone-number/index.d.cts +15 -66
- package/dist/plugins/phone-number/index.d.mts +15 -66
- package/dist/plugins/phone-number/index.d.ts +15 -66
- package/dist/plugins/phone-number/index.mjs +11 -11
- package/dist/plugins/sso/index.cjs +56 -42
- package/dist/plugins/sso/index.d.cts +32 -119
- package/dist/plugins/sso/index.d.mts +32 -119
- package/dist/plugins/sso/index.d.ts +32 -119
- package/dist/plugins/sso/index.mjs +31 -31
- package/dist/plugins/two-factor/index.cjs +43 -29
- package/dist/plugins/two-factor/index.d.cts +30 -78
- package/dist/plugins/two-factor/index.d.mts +30 -78
- package/dist/plugins/two-factor/index.d.ts +30 -78
- package/dist/plugins/two-factor/index.mjs +13 -13
- package/dist/plugins/username/index.cjs +25 -15
- package/dist/plugins/username/index.d.cts +10 -22
- package/dist/plugins/username/index.d.mts +10 -22
- package/dist/plugins/username/index.d.ts +10 -22
- package/dist/plugins/username/index.mjs +9 -13
- package/dist/shared/{better-auth.CcqPcsQw.d.ts → better-auth.4fWbQEA_.d.ts} +2 -2
- package/dist/shared/{better-auth.Cs9tnjbm.d.mts → better-auth.AjMhD7yz.d.mts} +44 -103
- package/dist/shared/{better-auth.CTYN90cw.cjs → better-auth.BFWSzd99.cjs} +5 -5
- package/dist/shared/{better-auth.DcWKCjjf.cjs → better-auth.BIMq4RPW.cjs} +53 -39
- package/dist/shared/{better-auth.M3B56FHf.d.cts → better-auth.BMs5wQpJ.d.ts} +45 -104
- package/dist/shared/{better-auth.CeC_YPBC.mjs → better-auth.BRkCkvkr.mjs} +4 -4
- package/dist/shared/{better-auth.BGqNvLSj.d.mts → better-auth.BTGXn6Wu.d.ts} +4 -3
- package/dist/shared/{better-auth.CkL-IpXS.cjs → better-auth.BUiVJvLO.cjs} +1 -1
- package/dist/shared/{better-auth.1U46rRCb.d.ts → better-auth.BalZRjl9.d.cts} +642 -1700
- package/dist/shared/{better-auth.CKaSQSiK.d.cts → better-auth.BbVHEJaq.d.mts} +642 -1700
- package/dist/shared/{better-auth.BjlnHtWM.mjs → better-auth.BdrJBkRw.mjs} +88 -45
- package/dist/shared/{better-auth.dkmWAMtv.d.mts → better-auth.Beq6UEbm.d.cts} +2 -2
- package/dist/shared/{better-auth.Lq361xtr.mjs → better-auth.BluEOpoj.mjs} +1 -1
- package/dist/shared/{better-auth.fsvwNeUx.mjs → better-auth.CGrHn1Ih.mjs} +1 -1
- package/dist/shared/{better-auth.DXFEde7S.d.mts → better-auth.CTHn60Kj.d.ts} +642 -1700
- package/dist/shared/{better-auth.B7cZ2juS.cjs → better-auth.CeLY0dLy.cjs} +1 -2
- package/dist/shared/{better-auth.KCmQsDm-.cjs → better-auth.Cg1dmr5y.cjs} +1 -1
- package/dist/shared/{better-auth.C9r4-D4D.cjs → better-auth.CgWmIFz1.cjs} +188 -75
- package/dist/shared/{better-auth.Bl6kZMTz.d.ts → better-auth.CmoI7VL1.d.ts} +5 -5
- package/dist/shared/{better-auth.DPYZ4lEW.mjs → better-auth.Cx_7nFZg.mjs} +78 -73
- package/dist/shared/{better-auth.CZaGcPOu.d.cts → better-auth.D3D9uwta.d.cts} +4 -3
- package/dist/shared/{better-auth.CiEL_3L9.d.mts → better-auth.D5KZfhN9.d.cts} +5 -5
- package/dist/shared/{better-auth.CxiUYpyi.mjs → better-auth.D6kyMvXP.mjs} +189 -77
- package/dist/shared/{better-auth.YhbwFO4I.cjs → better-auth.DBBvVNHz.cjs} +78 -73
- package/dist/shared/better-auth.DE4w3zEf.cjs +88 -0
- package/dist/shared/better-auth.DI0OyFsZ.cjs +44 -0
- package/dist/shared/{better-auth._dAJf_oa.cjs → better-auth.DOgvYMa8.cjs} +1 -1
- package/dist/shared/{better-auth.DEj39-fy.mjs → better-auth.DRCA5tuq.mjs} +1 -1
- package/dist/shared/better-auth.DUwl8-HL.mjs +85 -0
- package/dist/shared/{better-auth.BQ4_OHi3.cjs → better-auth.DZTOcfJ2.cjs} +66 -42
- package/dist/shared/{better-auth.iKoUsdFE.mjs → better-auth.DcfNPS8q.mjs} +1 -2
- package/dist/shared/{better-auth.wF952O4S.d.ts → better-auth.DgdqIOZX.d.cts} +45 -104
- package/dist/shared/{better-auth.B1UvcDzZ.mjs → better-auth.DwzM-9N1.mjs} +1 -1
- package/dist/shared/{better-auth.CGOCIshw.cjs → better-auth.DzBLnNed.cjs} +1 -1
- package/dist/shared/{better-auth.B7DsbyxZ.cjs → better-auth.Gx72AqAK.cjs} +4 -4
- package/dist/shared/{better-auth.J-FkYMpb.mjs → better-auth.H13TSpTJ.mjs} +5 -5
- package/dist/shared/{better-auth.Bvj_fvZF.d.cts → better-auth.IsSv8odO.d.mts} +5 -5
- package/dist/shared/{better-auth.DTKHr5aa.cjs → better-auth.JhO62CUu.cjs} +154 -97
- package/dist/shared/{better-auth.BJuT8WiU.mjs → better-auth.Rwb5CwA2.mjs} +46 -36
- package/dist/shared/{better-auth.9XhOL8gb.d.cts → better-auth.ZSfSbnQT.d.cts} +2 -3
- package/dist/shared/{better-auth.9XhOL8gb.d.mts → better-auth.ZSfSbnQT.d.mts} +2 -3
- package/dist/shared/{better-auth.9XhOL8gb.d.ts → better-auth.ZSfSbnQT.d.ts} +2 -3
- package/dist/shared/{better-auth.Di4b3h9T.cjs → better-auth.clHUhzUm.cjs} +171 -138
- package/dist/shared/{better-auth.BP35Nbhe.d.cts → better-auth.fpvODASA.d.mts} +2 -2
- package/dist/shared/{better-auth.C3eCZf9N.mjs → better-auth.gBl3F_xa.mjs} +1 -1
- package/dist/shared/{better-auth.dm850UlW.mjs → better-auth.jhSvrQhK.mjs} +100 -81
- package/dist/shared/{better-auth.Cc72UxUH.mjs → better-auth.n2KFGwjY.mjs} +1 -1
- package/dist/shared/{better-auth.D1VhCXSa.d.ts → better-auth.nM381a9n.d.mts} +4 -3
- package/dist/social-providers/index.cjs +3 -3
- package/dist/social-providers/index.d.cts +3 -3
- package/dist/social-providers/index.d.mts +3 -3
- package/dist/social-providers/index.d.ts +3 -3
- package/dist/social-providers/index.mjs +3 -3
- package/dist/test-utils/index.cjs +13 -12
- package/dist/test-utils/index.d.cts +1555 -3105
- package/dist/test-utils/index.d.mts +1555 -3105
- package/dist/test-utils/index.d.ts +1555 -3105
- package/dist/test-utils/index.mjs +13 -12
- package/dist/types/index.d.cts +7 -5
- package/dist/types/index.d.mts +7 -5
- package/dist/types/index.d.ts +7 -5
- package/package.json +2 -2
- package/dist/shared/better-auth.BG6vHVNT.cjs +0 -30
|
@@ -4,13 +4,15 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
|
4
4
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
5
5
|
export * from '@better-fetch/fetch';
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.4fWbQEA_.js';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.js';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CTHn60Kj.js';
|
|
10
10
|
import 'better-call';
|
|
11
|
-
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.D1VhCXSa.js';
|
|
13
11
|
import 'kysely';
|
|
12
|
+
import 'zod/v4';
|
|
13
|
+
import '../../shared/better-auth.BTGXn6Wu.js';
|
|
14
|
+
import 'zod/v4/core';
|
|
15
|
+
import 'zod';
|
|
14
16
|
import 'better-sqlite3';
|
|
15
17
|
import 'bun:sqlite';
|
|
16
18
|
|
|
@@ -82,13 +84,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
82
84
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
83
85
|
};
|
|
84
86
|
})[];
|
|
87
|
+
redirect?: RequestRedirect;
|
|
85
88
|
method: string;
|
|
86
89
|
headers?: (HeadersInit & (HeadersInit | {
|
|
87
90
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
88
91
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
89
92
|
authorization: "Bearer" | "Basic";
|
|
90
93
|
})) | undefined;
|
|
91
|
-
redirect?: RequestRedirect;
|
|
92
94
|
cache?: RequestCache;
|
|
93
95
|
credentials?: RequestCredentials;
|
|
94
96
|
integrity?: string;
|
package/dist/cookies/index.d.cts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { ay as BetterAuthCookies, aD as EligibleCookies, aw as createCookieGetter, aB as deleteSessionCookie, aF as getCookieCache, ax as getCookies, aE as getSessionCookie, aC as parseCookies, aG as parseSetCookieHeader, az as setCookieCache, D as setCookieToHeader, aA as setSessionCookie } from '../shared/better-auth.
|
|
3
|
-
import '../shared/better-auth.9XhOL8gb.cjs';
|
|
4
|
-
import 'zod';
|
|
5
|
-
import '../shared/better-auth.CZaGcPOu.cjs';
|
|
2
|
+
export { ay as BetterAuthCookies, aD as EligibleCookies, aw as createCookieGetter, aB as deleteSessionCookie, aF as getCookieCache, ax as getCookies, aE as getSessionCookie, aC as parseCookies, aG as parseSetCookieHeader, az as setCookieCache, D as setCookieToHeader, aA as setSessionCookie } from '../shared/better-auth.BalZRjl9.cjs';
|
|
6
3
|
import 'kysely';
|
|
4
|
+
import 'zod/v4';
|
|
5
|
+
import '../shared/better-auth.ZSfSbnQT.cjs';
|
|
6
|
+
import '../shared/better-auth.D3D9uwta.cjs';
|
|
7
|
+
import 'zod/v4/core';
|
|
8
|
+
import 'zod';
|
|
7
9
|
import 'better-sqlite3';
|
|
8
10
|
import 'bun:sqlite';
|
package/dist/cookies/index.d.mts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { ay as BetterAuthCookies, aD as EligibleCookies, aw as createCookieGetter, aB as deleteSessionCookie, aF as getCookieCache, ax as getCookies, aE as getSessionCookie, aC as parseCookies, aG as parseSetCookieHeader, az as setCookieCache, D as setCookieToHeader, aA as setSessionCookie } from '../shared/better-auth.
|
|
3
|
-
import '../shared/better-auth.9XhOL8gb.mjs';
|
|
4
|
-
import 'zod';
|
|
5
|
-
import '../shared/better-auth.BGqNvLSj.mjs';
|
|
2
|
+
export { ay as BetterAuthCookies, aD as EligibleCookies, aw as createCookieGetter, aB as deleteSessionCookie, aF as getCookieCache, ax as getCookies, aE as getSessionCookie, aC as parseCookies, aG as parseSetCookieHeader, az as setCookieCache, D as setCookieToHeader, aA as setSessionCookie } from '../shared/better-auth.BbVHEJaq.mjs';
|
|
6
3
|
import 'kysely';
|
|
4
|
+
import 'zod/v4';
|
|
5
|
+
import '../shared/better-auth.ZSfSbnQT.mjs';
|
|
6
|
+
import '../shared/better-auth.nM381a9n.mjs';
|
|
7
|
+
import 'zod/v4/core';
|
|
8
|
+
import 'zod';
|
|
7
9
|
import 'better-sqlite3';
|
|
8
10
|
import 'bun:sqlite';
|
package/dist/cookies/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { ay as BetterAuthCookies, aD as EligibleCookies, aw as createCookieGetter, aB as deleteSessionCookie, aF as getCookieCache, ax as getCookies, aE as getSessionCookie, aC as parseCookies, aG as parseSetCookieHeader, az as setCookieCache, D as setCookieToHeader, aA as setSessionCookie } from '../shared/better-auth.
|
|
3
|
-
import '../shared/better-auth.9XhOL8gb.js';
|
|
4
|
-
import 'zod';
|
|
5
|
-
import '../shared/better-auth.D1VhCXSa.js';
|
|
2
|
+
export { ay as BetterAuthCookies, aD as EligibleCookies, aw as createCookieGetter, aB as deleteSessionCookie, aF as getCookieCache, ax as getCookies, aE as getSessionCookie, aC as parseCookies, aG as parseSetCookieHeader, az as setCookieCache, D as setCookieToHeader, aA as setSessionCookie } from '../shared/better-auth.CTHn60Kj.js';
|
|
6
3
|
import 'kysely';
|
|
4
|
+
import 'zod/v4';
|
|
5
|
+
import '../shared/better-auth.ZSfSbnQT.js';
|
|
6
|
+
import '../shared/better-auth.BTGXn6Wu.js';
|
|
7
|
+
import 'zod/v4/core';
|
|
8
|
+
import 'zod';
|
|
7
9
|
import 'better-sqlite3';
|
|
8
10
|
import 'bun:sqlite';
|
package/dist/db/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const getMigration = require('../shared/better-auth.
|
|
3
|
+
const getMigration = require('../shared/better-auth.BFWSzd99.cjs');
|
|
4
4
|
const getTables = require('../shared/better-auth.BEphVDyL.cjs');
|
|
5
|
-
const
|
|
6
|
-
const schema = require('../shared/better-auth.
|
|
5
|
+
const z = require('zod/v4');
|
|
6
|
+
const schema = require('../shared/better-auth.BIMq4RPW.cjs');
|
|
7
7
|
require('../shared/better-auth.C1hdVENX.cjs');
|
|
8
|
-
require('../shared/better-auth.
|
|
8
|
+
require('../shared/better-auth.CeLY0dLy.cjs');
|
|
9
9
|
require('../shared/better-auth.DiSjtgs9.cjs');
|
|
10
10
|
require('../shared/better-auth.D3mtHEZg.cjs');
|
|
11
11
|
require('../shared/better-auth.CXhVNgXP.cjs');
|
|
@@ -23,10 +23,24 @@ require('@better-auth/utils/hex');
|
|
|
23
23
|
require('@noble/hashes/utils');
|
|
24
24
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
25
25
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
26
|
-
require('../shared/better-auth.
|
|
26
|
+
require('../shared/better-auth.DOgvYMa8.cjs');
|
|
27
27
|
require('kysely');
|
|
28
|
-
require('../shared/better-auth.
|
|
29
|
-
require('../shared/better-auth.
|
|
28
|
+
require('../shared/better-auth.DzBLnNed.cjs');
|
|
29
|
+
require('../shared/better-auth.BUiVJvLO.cjs');
|
|
30
|
+
|
|
31
|
+
function _interopNamespaceCompat(e) {
|
|
32
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
33
|
+
const n = Object.create(null);
|
|
34
|
+
if (e) {
|
|
35
|
+
for (const k in e) {
|
|
36
|
+
n[k] = e[k];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
n.default = e;
|
|
40
|
+
return n;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const z__namespace = /*#__PURE__*/_interopNamespaceCompat(z);
|
|
30
44
|
|
|
31
45
|
const createFieldAttribute = (type, config) => {
|
|
32
46
|
return {
|
|
@@ -36,7 +50,7 @@ const createFieldAttribute = (type, config) => {
|
|
|
36
50
|
};
|
|
37
51
|
|
|
38
52
|
function toZodSchema(fields) {
|
|
39
|
-
const schema =
|
|
53
|
+
const schema = z__namespace.object({
|
|
40
54
|
...Object.keys(fields).reduce((acc, key) => {
|
|
41
55
|
const field = fields[key];
|
|
42
56
|
if (!field) {
|
|
@@ -45,16 +59,16 @@ function toZodSchema(fields) {
|
|
|
45
59
|
if (field.type === "string[]" || field.type === "number[]") {
|
|
46
60
|
return {
|
|
47
61
|
...acc,
|
|
48
|
-
[key]:
|
|
62
|
+
[key]: z__namespace.array(field.type === "string[]" ? z__namespace.string() : z__namespace.number())
|
|
49
63
|
};
|
|
50
64
|
}
|
|
51
65
|
if (Array.isArray(field.type)) {
|
|
52
66
|
return {
|
|
53
67
|
...acc,
|
|
54
|
-
[key]:
|
|
68
|
+
[key]: z__namespace.any()
|
|
55
69
|
};
|
|
56
70
|
}
|
|
57
|
-
let schema2 =
|
|
71
|
+
let schema2 = z__namespace[field.type]();
|
|
58
72
|
if (field?.required === false) {
|
|
59
73
|
schema2 = schema2.optional();
|
|
60
74
|
}
|
package/dist/db/index.d.cts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, O as Where, a4 as FieldAttribute, a5 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { af as BetterAuthDbSchema, a8 as FieldAttributeConfig, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, ac as InferFieldsInput, ad as InferFieldsInputClient, ab as InferFieldsOutput, aa as InferValueType, a7 as InternalAdapter, ae as PluginFieldAttribute, ah as accountSchema, a9 as createFieldAttribute, a6 as createInternalAdapter, am as getAllFields, ag as getAuthTables, av as mergeSchema, at as parseAccountInput, ao as parseAccountOutput, as as parseAdditionalUserInput, aq as parseInputData, al as parseOutputData, au as parseSessionInput, ap as parseSessionOutput, ar as parseUserInput, an as parseUserOutput, aj as sessionSchema, ai as userSchema, ak as verificationSchema } from '../shared/better-auth.
|
|
3
|
-
import
|
|
4
|
-
import '../shared/better-auth.9XhOL8gb.cjs';
|
|
5
|
-
import '../shared/better-auth.CZaGcPOu.cjs';
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, O as Where, a4 as FieldAttribute, a5 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.BalZRjl9.cjs';
|
|
2
|
+
export { af as BetterAuthDbSchema, a8 as FieldAttributeConfig, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, ac as InferFieldsInput, ad as InferFieldsInputClient, ab as InferFieldsOutput, aa as InferValueType, a7 as InternalAdapter, ae as PluginFieldAttribute, ah as accountSchema, a9 as createFieldAttribute, a6 as createInternalAdapter, am as getAllFields, ag as getAuthTables, av as mergeSchema, at as parseAccountInput, ao as parseAccountOutput, as as parseAdditionalUserInput, aq as parseInputData, al as parseOutputData, au as parseSessionInput, ap as parseSessionOutput, ar as parseUserInput, an as parseUserOutput, aj as sessionSchema, ai as userSchema, ak as verificationSchema } from '../shared/better-auth.BalZRjl9.cjs';
|
|
3
|
+
import * as z from 'zod/v4';
|
|
6
4
|
import 'kysely';
|
|
7
5
|
import 'better-call';
|
|
6
|
+
import '../shared/better-auth.ZSfSbnQT.cjs';
|
|
7
|
+
import '../shared/better-auth.D3D9uwta.cjs';
|
|
8
|
+
import 'zod/v4/core';
|
|
9
|
+
import 'zod';
|
|
8
10
|
import 'better-sqlite3';
|
|
9
11
|
import 'bun:sqlite';
|
|
10
12
|
|
|
@@ -26,7 +28,7 @@ declare function getWithHooks(adapter: Adapter, ctx: {
|
|
|
26
28
|
}, context?: GenericEndpointContext) => Promise<any>;
|
|
27
29
|
};
|
|
28
30
|
|
|
29
|
-
declare function toZodSchema(fields: Record<string, FieldAttribute>): z.ZodObject<{},
|
|
31
|
+
declare function toZodSchema(fields: Record<string, FieldAttribute>): z.ZodObject<{}, z.core.$strip>;
|
|
30
32
|
|
|
31
33
|
declare function getAdapter(options: BetterAuthOptions): Promise<Adapter>;
|
|
32
34
|
declare function convertToDB<T extends Record<string, any>>(fields: Record<string, FieldAttribute>, values: T): T;
|
package/dist/db/index.d.mts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, O as Where, a4 as FieldAttribute, a5 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { af as BetterAuthDbSchema, a8 as FieldAttributeConfig, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, ac as InferFieldsInput, ad as InferFieldsInputClient, ab as InferFieldsOutput, aa as InferValueType, a7 as InternalAdapter, ae as PluginFieldAttribute, ah as accountSchema, a9 as createFieldAttribute, a6 as createInternalAdapter, am as getAllFields, ag as getAuthTables, av as mergeSchema, at as parseAccountInput, ao as parseAccountOutput, as as parseAdditionalUserInput, aq as parseInputData, al as parseOutputData, au as parseSessionInput, ap as parseSessionOutput, ar as parseUserInput, an as parseUserOutput, aj as sessionSchema, ai as userSchema, ak as verificationSchema } from '../shared/better-auth.
|
|
3
|
-
import
|
|
4
|
-
import '../shared/better-auth.9XhOL8gb.mjs';
|
|
5
|
-
import '../shared/better-auth.BGqNvLSj.mjs';
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, O as Where, a4 as FieldAttribute, a5 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.BbVHEJaq.mjs';
|
|
2
|
+
export { af as BetterAuthDbSchema, a8 as FieldAttributeConfig, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, ac as InferFieldsInput, ad as InferFieldsInputClient, ab as InferFieldsOutput, aa as InferValueType, a7 as InternalAdapter, ae as PluginFieldAttribute, ah as accountSchema, a9 as createFieldAttribute, a6 as createInternalAdapter, am as getAllFields, ag as getAuthTables, av as mergeSchema, at as parseAccountInput, ao as parseAccountOutput, as as parseAdditionalUserInput, aq as parseInputData, al as parseOutputData, au as parseSessionInput, ap as parseSessionOutput, ar as parseUserInput, an as parseUserOutput, aj as sessionSchema, ai as userSchema, ak as verificationSchema } from '../shared/better-auth.BbVHEJaq.mjs';
|
|
3
|
+
import * as z from 'zod/v4';
|
|
6
4
|
import 'kysely';
|
|
7
5
|
import 'better-call';
|
|
6
|
+
import '../shared/better-auth.ZSfSbnQT.mjs';
|
|
7
|
+
import '../shared/better-auth.nM381a9n.mjs';
|
|
8
|
+
import 'zod/v4/core';
|
|
9
|
+
import 'zod';
|
|
8
10
|
import 'better-sqlite3';
|
|
9
11
|
import 'bun:sqlite';
|
|
10
12
|
|
|
@@ -26,7 +28,7 @@ declare function getWithHooks(adapter: Adapter, ctx: {
|
|
|
26
28
|
}, context?: GenericEndpointContext) => Promise<any>;
|
|
27
29
|
};
|
|
28
30
|
|
|
29
|
-
declare function toZodSchema(fields: Record<string, FieldAttribute>): z.ZodObject<{},
|
|
31
|
+
declare function toZodSchema(fields: Record<string, FieldAttribute>): z.ZodObject<{}, z.core.$strip>;
|
|
30
32
|
|
|
31
33
|
declare function getAdapter(options: BetterAuthOptions): Promise<Adapter>;
|
|
32
34
|
declare function convertToDB<T extends Record<string, any>>(fields: Record<string, FieldAttribute>, values: T): T;
|
package/dist/db/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, O as Where, a4 as FieldAttribute, a5 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { af as BetterAuthDbSchema, a8 as FieldAttributeConfig, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, ac as InferFieldsInput, ad as InferFieldsInputClient, ab as InferFieldsOutput, aa as InferValueType, a7 as InternalAdapter, ae as PluginFieldAttribute, ah as accountSchema, a9 as createFieldAttribute, a6 as createInternalAdapter, am as getAllFields, ag as getAuthTables, av as mergeSchema, at as parseAccountInput, ao as parseAccountOutput, as as parseAdditionalUserInput, aq as parseInputData, al as parseOutputData, au as parseSessionInput, ap as parseSessionOutput, ar as parseUserInput, an as parseUserOutput, aj as sessionSchema, ai as userSchema, ak as verificationSchema } from '../shared/better-auth.
|
|
3
|
-
import
|
|
4
|
-
import '../shared/better-auth.9XhOL8gb.js';
|
|
5
|
-
import '../shared/better-auth.D1VhCXSa.js';
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, O as Where, a4 as FieldAttribute, a5 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.CTHn60Kj.js';
|
|
2
|
+
export { af as BetterAuthDbSchema, a8 as FieldAttributeConfig, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, ac as InferFieldsInput, ad as InferFieldsInputClient, ab as InferFieldsOutput, aa as InferValueType, a7 as InternalAdapter, ae as PluginFieldAttribute, ah as accountSchema, a9 as createFieldAttribute, a6 as createInternalAdapter, am as getAllFields, ag as getAuthTables, av as mergeSchema, at as parseAccountInput, ao as parseAccountOutput, as as parseAdditionalUserInput, aq as parseInputData, al as parseOutputData, au as parseSessionInput, ap as parseSessionOutput, ar as parseUserInput, an as parseUserOutput, aj as sessionSchema, ai as userSchema, ak as verificationSchema } from '../shared/better-auth.CTHn60Kj.js';
|
|
3
|
+
import * as z from 'zod/v4';
|
|
6
4
|
import 'kysely';
|
|
7
5
|
import 'better-call';
|
|
6
|
+
import '../shared/better-auth.ZSfSbnQT.js';
|
|
7
|
+
import '../shared/better-auth.BTGXn6Wu.js';
|
|
8
|
+
import 'zod/v4/core';
|
|
9
|
+
import 'zod';
|
|
8
10
|
import 'better-sqlite3';
|
|
9
11
|
import 'bun:sqlite';
|
|
10
12
|
|
|
@@ -26,7 +28,7 @@ declare function getWithHooks(adapter: Adapter, ctx: {
|
|
|
26
28
|
}, context?: GenericEndpointContext) => Promise<any>;
|
|
27
29
|
};
|
|
28
30
|
|
|
29
|
-
declare function toZodSchema(fields: Record<string, FieldAttribute>): z.ZodObject<{},
|
|
31
|
+
declare function toZodSchema(fields: Record<string, FieldAttribute>): z.ZodObject<{}, z.core.$strip>;
|
|
30
32
|
|
|
31
33
|
declare function getAdapter(options: BetterAuthOptions): Promise<Adapter>;
|
|
32
34
|
declare function convertToDB<T extends Record<string, any>>(fields: Record<string, FieldAttribute>, values: T): T;
|
package/dist/db/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { d as convertFromDB, b as convertToDB, c as createInternalAdapter, a as getAdapter, e as getMigrations, f as getSchema, g as getWithHooks, m as matchType } from '../shared/better-auth.
|
|
1
|
+
export { d as convertFromDB, b as convertToDB, c as createInternalAdapter, a as getAdapter, e as getMigrations, f as getSchema, g as getWithHooks, m as matchType } from '../shared/better-auth.H13TSpTJ.mjs';
|
|
2
2
|
export { g as getAuthTables } from '../shared/better-auth.DORkW_Ge.mjs';
|
|
3
|
-
import
|
|
4
|
-
export { a as accountSchema, g as getAllFields, m as mergeSchema, i as parseAccountInput, c as parseAccountOutput, h as parseAdditionalUserInput, e as parseInputData, p as parseOutputData, j as parseSessionInput, d as parseSessionOutput, f as parseUserInput, b as parseUserOutput, s as sessionSchema, u as userSchema, v as verificationSchema } from '../shared/better-auth.
|
|
3
|
+
import * as z from 'zod/v4';
|
|
4
|
+
export { a as accountSchema, g as getAllFields, m as mergeSchema, i as parseAccountInput, c as parseAccountOutput, h as parseAdditionalUserInput, e as parseInputData, p as parseOutputData, j as parseSessionInput, d as parseSessionOutput, f as parseUserInput, b as parseUserOutput, s as sessionSchema, u as userSchema, v as verificationSchema } from '../shared/better-auth.n2KFGwjY.mjs';
|
|
5
5
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.DcfNPS8q.mjs';
|
|
7
7
|
import '../shared/better-auth.8zoxzg-F.mjs';
|
|
8
8
|
import '../shared/better-auth.tB5eU6EY.mjs';
|
|
9
9
|
import '../shared/better-auth.DBGfIDnh.mjs';
|
|
@@ -21,10 +21,10 @@ import '@better-auth/utils/hex';
|
|
|
21
21
|
import '@noble/hashes/utils';
|
|
22
22
|
import '../shared/better-auth.B4Qoxdgc.mjs';
|
|
23
23
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
24
|
-
import '../shared/better-auth.
|
|
24
|
+
import '../shared/better-auth.DwzM-9N1.mjs';
|
|
25
25
|
import 'kysely';
|
|
26
|
-
import '../shared/better-auth.
|
|
27
|
-
import '../shared/better-auth.
|
|
26
|
+
import '../shared/better-auth.gBl3F_xa.mjs';
|
|
27
|
+
import '../shared/better-auth.BluEOpoj.mjs';
|
|
28
28
|
|
|
29
29
|
const createFieldAttribute = (type, config) => {
|
|
30
30
|
return {
|
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const auth = require('./shared/better-auth.
|
|
3
|
+
const auth = require('./shared/better-auth.Gx72AqAK.cjs');
|
|
4
4
|
const index = require('./shared/better-auth.ANpbi45u.cjs');
|
|
5
5
|
const misc = require('./shared/better-auth.BLDOwz3i.cjs');
|
|
6
|
-
const socialProviders_index = require('./shared/better-auth.
|
|
6
|
+
const socialProviders_index = require('./shared/better-auth.clHUhzUm.cjs');
|
|
7
7
|
const logger = require('./shared/better-auth.CXhVNgXP.cjs');
|
|
8
8
|
require('./api/index.cjs');
|
|
9
9
|
require('better-call');
|
|
10
|
-
require('zod');
|
|
10
|
+
require('zod/v4');
|
|
11
11
|
require('./cookies/index.cjs');
|
|
12
12
|
require('./shared/better-auth.C1hdVENX.cjs');
|
|
13
13
|
require('./shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -16,15 +16,15 @@ require('@better-auth/utils/hmac');
|
|
|
16
16
|
require('./shared/better-auth.D3mtHEZg.cjs');
|
|
17
17
|
require('./shared/better-auth.C-R0J0n1.cjs');
|
|
18
18
|
require('@better-auth/utils/binary');
|
|
19
|
-
require('./shared/better-auth.
|
|
20
|
-
require('./shared/better-auth.
|
|
19
|
+
require('./shared/better-auth.BIMq4RPW.cjs');
|
|
20
|
+
require('./shared/better-auth.CeLY0dLy.cjs');
|
|
21
21
|
require('defu');
|
|
22
22
|
require('./shared/better-auth.YUF6P-PB.cjs');
|
|
23
23
|
require('@noble/hashes/scrypt');
|
|
24
24
|
require('@better-auth/utils');
|
|
25
25
|
require('@better-auth/utils/hex');
|
|
26
26
|
require('@noble/hashes/utils');
|
|
27
|
-
require('./shared/better-auth.
|
|
27
|
+
require('./shared/better-auth.BFWSzd99.cjs');
|
|
28
28
|
require('@better-auth/utils/hash');
|
|
29
29
|
require('@noble/ciphers/chacha');
|
|
30
30
|
require('@noble/ciphers/utils');
|
|
@@ -33,10 +33,10 @@ require('jose');
|
|
|
33
33
|
require('./shared/better-auth.CYeOI8C-.cjs');
|
|
34
34
|
require('@better-auth/utils/random');
|
|
35
35
|
require('./shared/better-auth.BEphVDyL.cjs');
|
|
36
|
-
require('./shared/better-auth.
|
|
36
|
+
require('./shared/better-auth.DOgvYMa8.cjs');
|
|
37
37
|
require('kysely');
|
|
38
|
-
require('./shared/better-auth.
|
|
39
|
-
require('./shared/better-auth.
|
|
38
|
+
require('./shared/better-auth.DzBLnNed.cjs');
|
|
39
|
+
require('./shared/better-auth.BUiVJvLO.cjs');
|
|
40
40
|
require('./shared/better-auth.CDXNofOe.cjs');
|
|
41
41
|
require('@better-fetch/fetch');
|
|
42
42
|
require('./shared/better-auth.BMYo0QR-.cjs');
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
export { L as Account, a as Adapter, Q as AdapterInstance, P as AdapterSchemaCreation, J as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, B as BetterAuthOptions, h as BetterAuthPlugin, F as FilterActions, X as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, Y as InferSessionAPI, q as InferUser, a1 as LogHandlerParams, Z as LogLevel, a0 as Logger, M as Models, R as RateLimit, T as SecondaryStorage, S as Session, U as User, V as Verification, O as Where, W as WithJsDoc, E as betterAuth, a2 as createLogger, N as init, _ as levels, a3 as logger, $ as shouldPublishLog } from './shared/better-auth.
|
|
2
|
-
export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.
|
|
1
|
+
export { L as Account, a as Adapter, Q as AdapterInstance, P as AdapterSchemaCreation, J as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, B as BetterAuthOptions, h as BetterAuthPlugin, F as FilterActions, X as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, Y as InferSessionAPI, q as InferUser, a1 as LogHandlerParams, Z as LogLevel, a0 as Logger, M as Models, R as RateLimit, T as SecondaryStorage, S as Session, U as User, V as Verification, O as Where, W as WithJsDoc, E as betterAuth, a2 as createLogger, N as init, _ as levels, a3 as logger, $ as shouldPublishLog } from './shared/better-auth.BalZRjl9.cjs';
|
|
2
|
+
export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.Beq6UEbm.cjs';
|
|
3
3
|
export { H as HIDE_METADATA } from './shared/better-auth.DEHJp1rk.cjs';
|
|
4
|
-
export { g as generateState, p as parseState } from './shared/better-auth.
|
|
4
|
+
export { g as generateState, p as parseState } from './shared/better-auth.D5KZfhN9.cjs';
|
|
5
5
|
export * from 'better-call';
|
|
6
|
-
export * from 'zod';
|
|
7
|
-
export { D as DeepPartial, E as Expand, H as HasRequiredKeys,
|
|
8
|
-
export { O as OAuth2Tokens, a as OAuthProvider, P as ProviderOptions } from './shared/better-auth.
|
|
6
|
+
export * from 'zod/v4';
|
|
7
|
+
export { D as DeepPartial, E as Expand, H as HasRequiredKeys, c as LiteralNumber, L as LiteralString, e as LiteralUnion, O as OmitId, d as PreserveJSDoc, a as Prettify, P as PrettifyDeep, b as Primitive, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.ZSfSbnQT.cjs';
|
|
8
|
+
export { O as OAuth2Tokens, a as OAuthProvider, P as ProviderOptions } from './shared/better-auth.D3D9uwta.cjs';
|
|
9
9
|
import 'kysely';
|
|
10
|
+
import 'zod/v4/core';
|
|
11
|
+
import 'zod';
|
|
10
12
|
import 'better-sqlite3';
|
|
11
13
|
import 'bun:sqlite';
|
|
12
14
|
import '@better-fetch/fetch';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
export { L as Account, a as Adapter, Q as AdapterInstance, P as AdapterSchemaCreation, J as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, B as BetterAuthOptions, h as BetterAuthPlugin, F as FilterActions, X as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, Y as InferSessionAPI, q as InferUser, a1 as LogHandlerParams, Z as LogLevel, a0 as Logger, M as Models, R as RateLimit, T as SecondaryStorage, S as Session, U as User, V as Verification, O as Where, W as WithJsDoc, E as betterAuth, a2 as createLogger, N as init, _ as levels, a3 as logger, $ as shouldPublishLog } from './shared/better-auth.
|
|
2
|
-
export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.
|
|
1
|
+
export { L as Account, a as Adapter, Q as AdapterInstance, P as AdapterSchemaCreation, J as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, B as BetterAuthOptions, h as BetterAuthPlugin, F as FilterActions, X as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, Y as InferSessionAPI, q as InferUser, a1 as LogHandlerParams, Z as LogLevel, a0 as Logger, M as Models, R as RateLimit, T as SecondaryStorage, S as Session, U as User, V as Verification, O as Where, W as WithJsDoc, E as betterAuth, a2 as createLogger, N as init, _ as levels, a3 as logger, $ as shouldPublishLog } from './shared/better-auth.BbVHEJaq.mjs';
|
|
2
|
+
export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.fpvODASA.mjs';
|
|
3
3
|
export { H as HIDE_METADATA } from './shared/better-auth.DEHJp1rk.mjs';
|
|
4
|
-
export { g as generateState, p as parseState } from './shared/better-auth.
|
|
4
|
+
export { g as generateState, p as parseState } from './shared/better-auth.IsSv8odO.mjs';
|
|
5
5
|
export * from 'better-call';
|
|
6
|
-
export * from 'zod';
|
|
7
|
-
export { D as DeepPartial, E as Expand, H as HasRequiredKeys,
|
|
8
|
-
export { O as OAuth2Tokens, a as OAuthProvider, P as ProviderOptions } from './shared/better-auth.
|
|
6
|
+
export * from 'zod/v4';
|
|
7
|
+
export { D as DeepPartial, E as Expand, H as HasRequiredKeys, c as LiteralNumber, L as LiteralString, e as LiteralUnion, O as OmitId, d as PreserveJSDoc, a as Prettify, P as PrettifyDeep, b as Primitive, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.ZSfSbnQT.mjs';
|
|
8
|
+
export { O as OAuth2Tokens, a as OAuthProvider, P as ProviderOptions } from './shared/better-auth.nM381a9n.mjs';
|
|
9
9
|
import 'kysely';
|
|
10
|
+
import 'zod/v4/core';
|
|
11
|
+
import 'zod';
|
|
10
12
|
import 'better-sqlite3';
|
|
11
13
|
import 'bun:sqlite';
|
|
12
14
|
import '@better-fetch/fetch';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
export { L as Account, a as Adapter, Q as AdapterInstance, P as AdapterSchemaCreation, J as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, B as BetterAuthOptions, h as BetterAuthPlugin, F as FilterActions, X as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, Y as InferSessionAPI, q as InferUser, a1 as LogHandlerParams, Z as LogLevel, a0 as Logger, M as Models, R as RateLimit, T as SecondaryStorage, S as Session, U as User, V as Verification, O as Where, W as WithJsDoc, E as betterAuth, a2 as createLogger, N as init, _ as levels, a3 as logger, $ as shouldPublishLog } from './shared/better-auth.
|
|
2
|
-
export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.
|
|
1
|
+
export { L as Account, a as Adapter, Q as AdapterInstance, P as AdapterSchemaCreation, J as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, B as BetterAuthOptions, h as BetterAuthPlugin, F as FilterActions, X as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, Y as InferSessionAPI, q as InferUser, a1 as LogHandlerParams, Z as LogLevel, a0 as Logger, M as Models, R as RateLimit, T as SecondaryStorage, S as Session, U as User, V as Verification, O as Where, W as WithJsDoc, E as betterAuth, a2 as createLogger, N as init, _ as levels, a3 as logger, $ as shouldPublishLog } from './shared/better-auth.CTHn60Kj.js';
|
|
2
|
+
export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.4fWbQEA_.js';
|
|
3
3
|
export { H as HIDE_METADATA } from './shared/better-auth.DEHJp1rk.js';
|
|
4
|
-
export { g as generateState, p as parseState } from './shared/better-auth.
|
|
4
|
+
export { g as generateState, p as parseState } from './shared/better-auth.CmoI7VL1.js';
|
|
5
5
|
export * from 'better-call';
|
|
6
|
-
export * from 'zod';
|
|
7
|
-
export { D as DeepPartial, E as Expand, H as HasRequiredKeys,
|
|
8
|
-
export { O as OAuth2Tokens, a as OAuthProvider, P as ProviderOptions } from './shared/better-auth.
|
|
6
|
+
export * from 'zod/v4';
|
|
7
|
+
export { D as DeepPartial, E as Expand, H as HasRequiredKeys, c as LiteralNumber, L as LiteralString, e as LiteralUnion, O as OmitId, d as PreserveJSDoc, a as Prettify, P as PrettifyDeep, b as Primitive, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.ZSfSbnQT.js';
|
|
8
|
+
export { O as OAuth2Tokens, a as OAuthProvider, P as ProviderOptions } from './shared/better-auth.BTGXn6Wu.js';
|
|
9
9
|
import 'kysely';
|
|
10
|
+
import 'zod/v4/core';
|
|
11
|
+
import 'zod';
|
|
10
12
|
import 'better-sqlite3';
|
|
11
13
|
import 'bun:sqlite';
|
|
12
14
|
import '@better-fetch/fetch';
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { b as betterAuth } from './shared/better-auth.
|
|
1
|
+
export { b as betterAuth } from './shared/better-auth.BRkCkvkr.mjs';
|
|
2
2
|
export { B as BetterAuthError, M as MissingDependencyError } from './shared/better-auth.DdzSJf-n.mjs';
|
|
3
3
|
export { c as capitalizeFirstLetter } from './shared/better-auth.D-2CmEwz.mjs';
|
|
4
|
-
export { H as HIDE_METADATA, g as generateState, p as parseState } from './shared/better-auth.
|
|
4
|
+
export { H as HIDE_METADATA, g as generateState, p as parseState } from './shared/better-auth.jhSvrQhK.mjs';
|
|
5
5
|
export { c as createLogger, g as generateId, l as levels, a as logger, s as shouldPublishLog } from './shared/better-auth.DBGfIDnh.mjs';
|
|
6
6
|
import './api/index.mjs';
|
|
7
7
|
import 'better-call';
|
|
8
|
-
import 'zod';
|
|
8
|
+
import 'zod/v4';
|
|
9
9
|
import './cookies/index.mjs';
|
|
10
10
|
import './shared/better-auth.CW6D9eSx.mjs';
|
|
11
11
|
import './shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -14,15 +14,15 @@ import '@better-auth/utils/hmac';
|
|
|
14
14
|
import './shared/better-auth.tB5eU6EY.mjs';
|
|
15
15
|
import './shared/better-auth.VTXNLFMT.mjs';
|
|
16
16
|
import '@better-auth/utils/binary';
|
|
17
|
-
import './shared/better-auth.
|
|
18
|
-
import './shared/better-auth.
|
|
17
|
+
import './shared/better-auth.n2KFGwjY.mjs';
|
|
18
|
+
import './shared/better-auth.DcfNPS8q.mjs';
|
|
19
19
|
import 'defu';
|
|
20
20
|
import './shared/better-auth.OT3XFeFk.mjs';
|
|
21
21
|
import '@noble/hashes/scrypt';
|
|
22
22
|
import '@better-auth/utils';
|
|
23
23
|
import '@better-auth/utils/hex';
|
|
24
24
|
import '@noble/hashes/utils';
|
|
25
|
-
import './shared/better-auth.
|
|
25
|
+
import './shared/better-auth.H13TSpTJ.mjs';
|
|
26
26
|
import '@better-auth/utils/hash';
|
|
27
27
|
import '@noble/ciphers/chacha';
|
|
28
28
|
import '@noble/ciphers/utils';
|
|
@@ -31,10 +31,10 @@ import 'jose';
|
|
|
31
31
|
import './shared/better-auth.B4Qoxdgc.mjs';
|
|
32
32
|
import '@better-auth/utils/random';
|
|
33
33
|
import './shared/better-auth.DORkW_Ge.mjs';
|
|
34
|
-
import './shared/better-auth.
|
|
34
|
+
import './shared/better-auth.DwzM-9N1.mjs';
|
|
35
35
|
import 'kysely';
|
|
36
|
-
import './shared/better-auth.
|
|
37
|
-
import './shared/better-auth.
|
|
36
|
+
import './shared/better-auth.gBl3F_xa.mjs';
|
|
37
|
+
import './shared/better-auth.BluEOpoj.mjs';
|
|
38
38
|
import './shared/better-auth.YwDQhoPc.mjs';
|
|
39
39
|
import '@better-fetch/fetch';
|
|
40
40
|
import './shared/better-auth.DDEbWX-S.mjs';
|
|
@@ -6,10 +6,10 @@ require('@better-auth/utils/hmac');
|
|
|
6
6
|
require('@better-auth/utils/binary');
|
|
7
7
|
const cookies_index = require('../cookies/index.cjs');
|
|
8
8
|
require('better-call');
|
|
9
|
-
require('zod');
|
|
10
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
11
|
-
require('../shared/better-auth.
|
|
12
|
-
require('../shared/better-auth.
|
|
9
|
+
require('zod/v4');
|
|
10
|
+
const socialProviders_index = require('../shared/better-auth.clHUhzUm.cjs');
|
|
11
|
+
require('../shared/better-auth.BIMq4RPW.cjs');
|
|
12
|
+
require('../shared/better-auth.JhO62CUu.cjs');
|
|
13
13
|
require('../plugins/organization/access/index.cjs');
|
|
14
14
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
15
15
|
require('../shared/better-auth.CXhVNgXP.cjs');
|
|
@@ -24,10 +24,11 @@ require('@better-auth/utils');
|
|
|
24
24
|
require('@better-auth/utils/hex');
|
|
25
25
|
require('@noble/hashes/utils');
|
|
26
26
|
require('@better-auth/utils/otp');
|
|
27
|
+
require('zod');
|
|
27
28
|
require('../plugins/admin/access/index.cjs');
|
|
28
29
|
require('@better-fetch/fetch');
|
|
29
30
|
require('@better-auth/utils/random');
|
|
30
|
-
require('../shared/better-auth.
|
|
31
|
+
require('../shared/better-auth.DI0OyFsZ.cjs');
|
|
31
32
|
require('kysely');
|
|
32
33
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
33
34
|
require('../shared/better-auth.C1hdVENX.cjs');
|
|
@@ -67,7 +68,17 @@ const nextCookies = () => {
|
|
|
67
68
|
if (!setCookies) return;
|
|
68
69
|
const parsed = cookies_index.parseSetCookieHeader(setCookies);
|
|
69
70
|
const { cookies } = await import('next/headers');
|
|
70
|
-
|
|
71
|
+
let cookieHelper;
|
|
72
|
+
try {
|
|
73
|
+
cookieHelper = await cookies();
|
|
74
|
+
} catch (error) {
|
|
75
|
+
if (error instanceof Error && error.message.startsWith(
|
|
76
|
+
"`cookies` was called outside a request scope."
|
|
77
|
+
)) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
throw error;
|
|
81
|
+
}
|
|
71
82
|
parsed.forEach((value, key) => {
|
|
72
83
|
if (!key) return;
|
|
73
84
|
const opts = {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { H as HookEndpointContext } from '../shared/better-auth.
|
|
3
|
-
import '../shared/better-auth.9XhOL8gb.cjs';
|
|
4
|
-
import 'zod';
|
|
5
|
-
import '../shared/better-auth.CZaGcPOu.cjs';
|
|
2
|
+
import { H as HookEndpointContext } from '../shared/better-auth.BalZRjl9.cjs';
|
|
6
3
|
import 'kysely';
|
|
4
|
+
import 'zod/v4';
|
|
5
|
+
import '../shared/better-auth.ZSfSbnQT.cjs';
|
|
6
|
+
import '../shared/better-auth.D3D9uwta.cjs';
|
|
7
|
+
import 'zod/v4/core';
|
|
8
|
+
import 'zod';
|
|
7
9
|
import 'better-sqlite3';
|
|
8
10
|
import 'bun:sqlite';
|
|
9
11
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { H as HookEndpointContext } from '../shared/better-auth.
|
|
3
|
-
import '../shared/better-auth.9XhOL8gb.mjs';
|
|
4
|
-
import 'zod';
|
|
5
|
-
import '../shared/better-auth.BGqNvLSj.mjs';
|
|
2
|
+
import { H as HookEndpointContext } from '../shared/better-auth.BbVHEJaq.mjs';
|
|
6
3
|
import 'kysely';
|
|
4
|
+
import 'zod/v4';
|
|
5
|
+
import '../shared/better-auth.ZSfSbnQT.mjs';
|
|
6
|
+
import '../shared/better-auth.nM381a9n.mjs';
|
|
7
|
+
import 'zod/v4/core';
|
|
8
|
+
import 'zod';
|
|
7
9
|
import 'better-sqlite3';
|
|
8
10
|
import 'bun:sqlite';
|
|
9
11
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { H as HookEndpointContext } from '../shared/better-auth.
|
|
3
|
-
import '../shared/better-auth.9XhOL8gb.js';
|
|
4
|
-
import 'zod';
|
|
5
|
-
import '../shared/better-auth.D1VhCXSa.js';
|
|
2
|
+
import { H as HookEndpointContext } from '../shared/better-auth.CTHn60Kj.js';
|
|
6
3
|
import 'kysely';
|
|
4
|
+
import 'zod/v4';
|
|
5
|
+
import '../shared/better-auth.ZSfSbnQT.js';
|
|
6
|
+
import '../shared/better-auth.BTGXn6Wu.js';
|
|
7
|
+
import 'zod/v4/core';
|
|
8
|
+
import 'zod';
|
|
7
9
|
import 'better-sqlite3';
|
|
8
10
|
import 'bun:sqlite';
|
|
9
11
|
|
|
@@ -4,10 +4,10 @@ import '@better-auth/utils/hmac';
|
|
|
4
4
|
import '@better-auth/utils/binary';
|
|
5
5
|
import { parseSetCookieHeader } from '../cookies/index.mjs';
|
|
6
6
|
import 'better-call';
|
|
7
|
-
import 'zod';
|
|
8
|
-
import { f as createAuthMiddleware } from '../shared/better-auth.
|
|
9
|
-
import '../shared/better-auth.
|
|
10
|
-
import '../shared/better-auth.
|
|
7
|
+
import 'zod/v4';
|
|
8
|
+
import { f as createAuthMiddleware } from '../shared/better-auth.jhSvrQhK.mjs';
|
|
9
|
+
import '../shared/better-auth.n2KFGwjY.mjs';
|
|
10
|
+
import '../shared/better-auth.BdrJBkRw.mjs';
|
|
11
11
|
import '../plugins/organization/access/index.mjs';
|
|
12
12
|
import '../shared/better-auth.B4Qoxdgc.mjs';
|
|
13
13
|
import '../shared/better-auth.DBGfIDnh.mjs';
|
|
@@ -22,10 +22,11 @@ import '@better-auth/utils';
|
|
|
22
22
|
import '@better-auth/utils/hex';
|
|
23
23
|
import '@noble/hashes/utils';
|
|
24
24
|
import '@better-auth/utils/otp';
|
|
25
|
+
import 'zod';
|
|
25
26
|
import '../plugins/admin/access/index.mjs';
|
|
26
27
|
import '@better-fetch/fetch';
|
|
27
28
|
import '@better-auth/utils/random';
|
|
28
|
-
import '../shared/better-auth.
|
|
29
|
+
import '../shared/better-auth.CGrHn1Ih.mjs';
|
|
29
30
|
import 'kysely';
|
|
30
31
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
31
32
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
@@ -65,7 +66,17 @@ const nextCookies = () => {
|
|
|
65
66
|
if (!setCookies) return;
|
|
66
67
|
const parsed = parseSetCookieHeader(setCookies);
|
|
67
68
|
const { cookies } = await import('next/headers');
|
|
68
|
-
|
|
69
|
+
let cookieHelper;
|
|
70
|
+
try {
|
|
71
|
+
cookieHelper = await cookies();
|
|
72
|
+
} catch (error) {
|
|
73
|
+
if (error instanceof Error && error.message.startsWith(
|
|
74
|
+
"`cookies` was called outside a request scope."
|
|
75
|
+
)) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
throw error;
|
|
79
|
+
}
|
|
69
80
|
parsed.forEach((value, key) => {
|
|
70
81
|
if (!key) return;
|
|
71
82
|
const opts = {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as http from 'http';
|
|
2
2
|
import { IncomingHttpHeaders } from 'http';
|
|
3
|
-
import { n as Auth } from '../shared/better-auth.
|
|
4
|
-
import '../shared/better-auth.9XhOL8gb.cjs';
|
|
5
|
-
import 'zod';
|
|
6
|
-
import '../shared/better-auth.CZaGcPOu.cjs';
|
|
3
|
+
import { n as Auth } from '../shared/better-auth.BalZRjl9.cjs';
|
|
7
4
|
import 'kysely';
|
|
8
5
|
import 'better-call';
|
|
6
|
+
import 'zod/v4';
|
|
7
|
+
import '../shared/better-auth.ZSfSbnQT.cjs';
|
|
8
|
+
import '../shared/better-auth.D3D9uwta.cjs';
|
|
9
|
+
import 'zod/v4/core';
|
|
10
|
+
import 'zod';
|
|
9
11
|
import 'better-sqlite3';
|
|
10
12
|
import 'bun:sqlite';
|
|
11
13
|
|