better-auth 1.3.9-beta.2 → 1.3.9-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle-adapter/index.cjs +5 -6
- package/dist/adapters/drizzle-adapter/index.d.cts +2 -3
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -3
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -3
- package/dist/adapters/drizzle-adapter/index.mjs +5 -6
- package/dist/adapters/index.cjs +5 -6
- package/dist/adapters/index.d.cts +3 -4
- package/dist/adapters/index.d.mts +3 -4
- package/dist/adapters/index.d.ts +3 -4
- package/dist/adapters/index.mjs +5 -6
- package/dist/adapters/kysely-adapter/index.cjs +6 -7
- package/dist/adapters/kysely-adapter/index.d.cts +2 -3
- package/dist/adapters/kysely-adapter/index.d.mts +2 -3
- package/dist/adapters/kysely-adapter/index.d.ts +2 -3
- package/dist/adapters/kysely-adapter/index.mjs +6 -7
- package/dist/adapters/memory-adapter/index.cjs +6 -7
- package/dist/adapters/memory-adapter/index.d.cts +2 -3
- package/dist/adapters/memory-adapter/index.d.mts +2 -3
- package/dist/adapters/memory-adapter/index.d.ts +2 -3
- package/dist/adapters/memory-adapter/index.mjs +6 -7
- package/dist/adapters/mongodb-adapter/index.cjs +6 -7
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -3
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -3
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -3
- package/dist/adapters/mongodb-adapter/index.mjs +6 -7
- package/dist/adapters/prisma-adapter/index.cjs +5 -6
- package/dist/adapters/prisma-adapter/index.d.cts +2 -3
- package/dist/adapters/prisma-adapter/index.d.mts +2 -3
- package/dist/adapters/prisma-adapter/index.d.ts +2 -3
- package/dist/adapters/prisma-adapter/index.mjs +5 -6
- package/dist/adapters/test.cjs +4 -5
- package/dist/adapters/test.d.cts +2 -3
- package/dist/adapters/test.d.mts +2 -3
- package/dist/adapters/test.d.ts +2 -3
- package/dist/adapters/test.mjs +4 -5
- package/dist/api/index.cjs +23 -6
- package/dist/api/index.d.cts +2 -3
- package/dist/api/index.d.mts +2 -3
- package/dist/api/index.d.ts +2 -3
- package/dist/api/index.mjs +24 -7
- package/dist/client/index.d.cts +4 -5
- package/dist/client/index.d.mts +4 -5
- package/dist/client/index.d.ts +4 -5
- package/dist/client/plugins/index.cjs +6 -7
- package/dist/client/plugins/index.d.cts +5 -5
- package/dist/client/plugins/index.d.mts +5 -5
- package/dist/client/plugins/index.d.ts +5 -5
- package/dist/client/plugins/index.mjs +6 -7
- package/dist/client/react/index.d.cts +4 -5
- package/dist/client/react/index.d.mts +4 -5
- package/dist/client/react/index.d.ts +4 -5
- package/dist/client/solid/index.d.cts +3 -4
- package/dist/client/solid/index.d.mts +3 -4
- package/dist/client/solid/index.d.ts +3 -4
- package/dist/client/svelte/index.d.cts +3 -4
- package/dist/client/svelte/index.d.mts +3 -4
- package/dist/client/svelte/index.d.ts +3 -4
- package/dist/client/vue/index.d.cts +3 -4
- package/dist/client/vue/index.d.mts +3 -4
- package/dist/client/vue/index.d.ts +3 -4
- package/dist/cookies/index.d.cts +2 -3
- package/dist/cookies/index.d.mts +2 -3
- package/dist/cookies/index.d.ts +2 -3
- package/dist/crypto/index.cjs +12 -13
- package/dist/crypto/index.mjs +4 -5
- package/dist/db/index.cjs +8 -9
- package/dist/db/index.d.cts +3 -4
- package/dist/db/index.d.mts +3 -4
- package/dist/db/index.d.ts +3 -4
- package/dist/db/index.mjs +8 -9
- package/dist/index.cjs +10 -11
- package/dist/index.d.cts +10 -11
- package/dist/index.d.mts +10 -11
- package/dist/index.d.ts +10 -11
- package/dist/index.mjs +10 -11
- package/dist/integrations/next-js.cjs +7 -8
- package/dist/integrations/next-js.d.cts +2 -3
- package/dist/integrations/next-js.d.mts +2 -3
- package/dist/integrations/next-js.d.ts +2 -3
- package/dist/integrations/next-js.mjs +7 -8
- package/dist/integrations/node.d.cts +2 -3
- package/dist/integrations/node.d.mts +2 -3
- package/dist/integrations/node.d.ts +2 -3
- package/dist/integrations/react-start.cjs +7 -8
- package/dist/integrations/react-start.d.cts +2 -3
- package/dist/integrations/react-start.d.mts +2 -3
- package/dist/integrations/react-start.d.ts +2 -3
- package/dist/integrations/react-start.mjs +7 -8
- package/dist/integrations/svelte-kit.cjs +5 -6
- package/dist/integrations/svelte-kit.d.cts +2 -3
- package/dist/integrations/svelte-kit.d.mts +2 -3
- package/dist/integrations/svelte-kit.d.ts +2 -3
- package/dist/integrations/svelte-kit.mjs +5 -6
- package/dist/oauth2/index.cjs +5 -6
- package/dist/oauth2/index.d.cts +4 -4
- package/dist/oauth2/index.d.mts +4 -4
- package/dist/oauth2/index.d.ts +4 -4
- package/dist/oauth2/index.mjs +5 -6
- package/dist/plugins/admin/index.cjs +6 -7
- package/dist/plugins/admin/index.d.cts +4 -5
- package/dist/plugins/admin/index.d.mts +4 -5
- package/dist/plugins/admin/index.d.ts +4 -5
- package/dist/plugins/admin/index.mjs +6 -7
- package/dist/plugins/anonymous/index.cjs +5 -6
- package/dist/plugins/anonymous/index.d.cts +2 -3
- package/dist/plugins/anonymous/index.d.mts +2 -3
- package/dist/plugins/anonymous/index.d.ts +2 -3
- package/dist/plugins/anonymous/index.mjs +5 -6
- package/dist/plugins/bearer/index.cjs +5 -6
- package/dist/plugins/bearer/index.d.cts +2 -3
- package/dist/plugins/bearer/index.d.mts +2 -3
- package/dist/plugins/bearer/index.d.ts +2 -3
- package/dist/plugins/bearer/index.mjs +5 -6
- package/dist/plugins/captcha/index.d.cts +2 -3
- package/dist/plugins/captcha/index.d.mts +2 -3
- package/dist/plugins/captcha/index.d.ts +2 -3
- package/dist/plugins/custom-session/index.cjs +5 -6
- package/dist/plugins/custom-session/index.d.cts +2 -3
- package/dist/plugins/custom-session/index.d.mts +2 -3
- package/dist/plugins/custom-session/index.d.ts +2 -3
- package/dist/plugins/custom-session/index.mjs +5 -6
- package/dist/plugins/device-authorization/index.cjs +4 -5
- package/dist/plugins/device-authorization/index.d.cts +2 -3
- package/dist/plugins/device-authorization/index.d.mts +2 -3
- package/dist/plugins/device-authorization/index.d.ts +2 -3
- package/dist/plugins/device-authorization/index.mjs +4 -5
- package/dist/plugins/email-otp/index.cjs +5 -6
- package/dist/plugins/email-otp/index.d.cts +2 -3
- package/dist/plugins/email-otp/index.d.mts +2 -3
- package/dist/plugins/email-otp/index.d.ts +2 -3
- package/dist/plugins/email-otp/index.mjs +5 -6
- package/dist/plugins/generic-oauth/index.cjs +5 -6
- package/dist/plugins/generic-oauth/index.d.cts +2 -3
- package/dist/plugins/generic-oauth/index.d.mts +2 -3
- package/dist/plugins/generic-oauth/index.d.ts +2 -3
- package/dist/plugins/generic-oauth/index.mjs +5 -6
- package/dist/plugins/haveibeenpwned/index.cjs +5 -6
- package/dist/plugins/haveibeenpwned/index.d.cts +2 -3
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -3
- package/dist/plugins/haveibeenpwned/index.d.ts +2 -3
- package/dist/plugins/haveibeenpwned/index.mjs +5 -6
- package/dist/plugins/index.cjs +17 -16
- package/dist/plugins/index.d.cts +7 -7
- package/dist/plugins/index.d.mts +7 -7
- package/dist/plugins/index.d.ts +7 -7
- package/dist/plugins/index.mjs +18 -17
- package/dist/plugins/jwt/index.cjs +6 -7
- package/dist/plugins/jwt/index.d.cts +2 -2
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.d.ts +2 -2
- package/dist/plugins/jwt/index.mjs +7 -8
- package/dist/plugins/magic-link/index.cjs +5 -6
- package/dist/plugins/magic-link/index.mjs +5 -6
- package/dist/plugins/multi-session/index.cjs +5 -6
- package/dist/plugins/multi-session/index.d.cts +2 -3
- package/dist/plugins/multi-session/index.d.mts +2 -3
- package/dist/plugins/multi-session/index.d.ts +2 -3
- package/dist/plugins/multi-session/index.mjs +5 -6
- package/dist/plugins/oauth-proxy/index.cjs +5 -6
- package/dist/plugins/oauth-proxy/index.d.cts +2 -3
- package/dist/plugins/oauth-proxy/index.d.mts +2 -3
- package/dist/plugins/oauth-proxy/index.d.ts +2 -3
- package/dist/plugins/oauth-proxy/index.mjs +5 -6
- package/dist/plugins/oidc-provider/index.cjs +7 -8
- package/dist/plugins/oidc-provider/index.d.cts +2 -3
- package/dist/plugins/oidc-provider/index.d.mts +2 -3
- package/dist/plugins/oidc-provider/index.d.ts +2 -3
- package/dist/plugins/oidc-provider/index.mjs +7 -8
- package/dist/plugins/one-tap/index.cjs +5 -6
- package/dist/plugins/one-tap/index.mjs +5 -6
- package/dist/plugins/one-time-token/index.cjs +8 -9
- package/dist/plugins/one-time-token/index.d.cts +2 -3
- package/dist/plugins/one-time-token/index.d.mts +2 -3
- package/dist/plugins/one-time-token/index.d.ts +2 -3
- package/dist/plugins/one-time-token/index.mjs +8 -9
- package/dist/plugins/open-api/index.cjs +44 -13
- package/dist/plugins/open-api/index.d.cts +2 -3
- package/dist/plugins/open-api/index.d.mts +2 -3
- package/dist/plugins/open-api/index.d.ts +2 -3
- package/dist/plugins/open-api/index.mjs +44 -13
- package/dist/plugins/organization/index.cjs +8 -9
- package/dist/plugins/organization/index.d.cts +2 -3
- package/dist/plugins/organization/index.d.mts +2 -3
- package/dist/plugins/organization/index.d.ts +2 -3
- package/dist/plugins/organization/index.mjs +8 -9
- package/dist/plugins/passkey/index.cjs +5 -6
- package/dist/plugins/passkey/index.d.cts +2 -3
- package/dist/plugins/passkey/index.d.mts +2 -3
- package/dist/plugins/passkey/index.d.ts +2 -3
- package/dist/plugins/passkey/index.mjs +5 -6
- package/dist/plugins/phone-number/index.cjs +5 -6
- package/dist/plugins/phone-number/index.d.cts +2 -3
- package/dist/plugins/phone-number/index.d.mts +2 -3
- package/dist/plugins/phone-number/index.d.ts +2 -3
- package/dist/plugins/phone-number/index.mjs +5 -6
- package/dist/plugins/siwe/index.cjs +7 -8
- package/dist/plugins/siwe/index.d.cts +2 -3
- package/dist/plugins/siwe/index.d.mts +2 -3
- package/dist/plugins/siwe/index.d.ts +2 -3
- package/dist/plugins/siwe/index.mjs +7 -8
- package/dist/plugins/sso/index.cjs +5 -6
- package/dist/plugins/sso/index.d.cts +2 -3
- package/dist/plugins/sso/index.d.mts +2 -3
- package/dist/plugins/sso/index.d.ts +2 -3
- package/dist/plugins/sso/index.mjs +5 -6
- package/dist/plugins/two-factor/index.cjs +5 -6
- package/dist/plugins/two-factor/index.d.cts +2 -3
- package/dist/plugins/two-factor/index.d.mts +2 -3
- package/dist/plugins/two-factor/index.d.ts +2 -3
- package/dist/plugins/two-factor/index.mjs +5 -6
- package/dist/plugins/username/index.cjs +20 -6
- package/dist/plugins/username/index.d.cts +19 -5
- package/dist/plugins/username/index.d.mts +19 -5
- package/dist/plugins/username/index.d.ts +19 -5
- package/dist/plugins/username/index.mjs +20 -6
- package/dist/shared/{better-auth.Ck4qhtF6.mjs → better-auth.5WTE-uUO.mjs} +5 -6
- package/dist/shared/{better-auth.DGuotwA1.d.cts → better-auth.6crrbXrP.d.cts} +308 -8
- package/dist/shared/{better-auth.gF8vGD5L.mjs → better-auth.7ZeACU2v.mjs} +5 -6
- package/dist/shared/{better-auth.CnIVrMwK.d.ts → better-auth.B-CitgLp.d.ts} +1 -1
- package/dist/shared/{better-auth.CXBi-DJc.cjs → better-auth.B-GguVp5.cjs} +7 -8
- package/dist/shared/{better-auth.CEc4wau_.d.cts → better-auth.B-V8R4q7.d.cts} +1 -1
- package/dist/shared/{better-auth.mA4L_-fq.d.ts → better-auth.B5FL4Q2B.d.ts} +2 -3
- package/dist/shared/{better-auth.EF9Iq11i.d.ts → better-auth.BAnyvLX6.d.ts} +1 -1
- package/dist/shared/{better-auth.C_gHVcnc.cjs → better-auth.BEYvND1Y.cjs} +1 -1
- package/dist/shared/{better-auth.TZOo7890.cjs → better-auth.BVUwL7ru.cjs} +1 -1
- package/dist/shared/{better-auth.BjjUH-Ka.mjs → better-auth.BWl2NB1B.mjs} +1 -1
- package/dist/shared/{better-auth.BlqpEUaH.mjs → better-auth.BZTBs9Yy.mjs} +7 -8
- package/dist/shared/{better-auth.CTMmErGI.d.cts → better-auth.BaMSx6K3.d.cts} +2 -3
- package/dist/shared/{better-auth.DXKgbji-.mjs → better-auth.BduPtJy8.mjs} +1 -1
- package/dist/shared/{better-auth.Dc0nj0we.cjs → better-auth.BlsHS68J.cjs} +22 -5
- package/dist/shared/{better-auth.Dyb4JEgv.cjs → better-auth.C5ZbY8Lo.cjs} +6 -7
- package/dist/shared/{better-auth.XP_NDvic.mjs → better-auth.C7KUdiwV.mjs} +1 -1
- package/dist/shared/{better-auth.BvYLXwvp.cjs → better-auth.CMwM5enp.cjs} +1 -0
- package/dist/shared/{better-auth.DtZRMuXL.cjs → better-auth.CRFFLEbh.cjs} +6 -7
- package/dist/shared/{better-auth.B3CPLvGC.mjs → better-auth.CSEecXfV.mjs} +22 -5
- package/dist/shared/{better-auth.DTV9hYzN.cjs → better-auth.CdLjcJ6z.cjs} +7 -8
- package/dist/shared/{better-auth.B8UjXTUa.mjs → better-auth.CtB1M_c7.mjs} +1 -1
- package/dist/shared/{better-auth.DFJOJkY1.cjs → better-auth.CtgUZb45.cjs} +7 -8
- package/dist/shared/{better-auth.3K3VNUn3.mjs → better-auth.D9PzlwY_.mjs} +6 -7
- package/dist/shared/{better-auth.CY7-Inqt.mjs → better-auth.DDuRjwGK.mjs} +1 -0
- package/dist/shared/{better-auth.B1yOWNP8.cjs → better-auth.DEKJQy4E.cjs} +1 -1
- package/dist/shared/{better-auth.DAUyNtx1.mjs → better-auth.DLsqH9Hw.mjs} +7 -8
- package/dist/shared/{better-auth.BuBqXPUp.mjs → better-auth.DOXaXTC6.mjs} +4 -5
- package/dist/shared/{better-auth.BWzwHY8m.cjs → better-auth.DPsIzckY.cjs} +5 -6
- package/dist/shared/{better-auth.DDDKwecE.mjs → better-auth.DQ6bmgix.mjs} +7 -8
- package/dist/shared/{better-auth.ChqAn6N0.d.mts → better-auth.DQLetyog.d.cts} +1 -1
- package/dist/shared/{better-auth.ZUo2dMO3.d.mts → better-auth.DR57bygo.d.mts} +2 -3
- package/dist/shared/{better-auth.fBcUR9cm.mjs → better-auth.DV0Lly8-.mjs} +6 -7
- package/dist/shared/{better-auth.WOu5GuAp.d.ts → better-auth.DtrrQDoO.d.ts} +5 -5
- package/dist/shared/{better-auth.aZPAhP-f.cjs → better-auth.QqWdVDmR.cjs} +5 -6
- package/dist/shared/{better-auth.DU2vRHKI.d.ts → better-auth.S3lnSz8Y.d.ts} +308 -8
- package/dist/shared/{better-auth.C9jfJUDF.cjs → better-auth.Szg-8evr.cjs} +4 -5
- package/dist/shared/{better-auth.llWU4_4y.d.cts → better-auth.UcasWcPe.d.cts} +5 -5
- package/dist/shared/{better-auth.YWGwdADP.cjs → better-auth.WyvofoOW.cjs} +1 -1
- package/dist/shared/{better-auth.f-bUldRg.d.mts → better-auth.YK5LQtFt.d.mts} +308 -8
- package/dist/shared/{better-auth.Df1_Wu_1.d.mts → better-auth.eYki6XKk.d.mts} +5 -5
- package/dist/shared/{better-auth.BZiffGTH.d.mts → better-auth.g9DlWOx7.d.mts} +1 -1
- package/dist/shared/{better-auth.D9BrVtBy.d.cts → better-auth.km36dqos.d.mts} +1 -1
- package/dist/social-providers/index.cjs +5 -6
- package/dist/social-providers/index.d.cts +1 -2
- package/dist/social-providers/index.d.mts +1 -2
- package/dist/social-providers/index.d.ts +1 -2
- package/dist/social-providers/index.mjs +5 -6
- package/dist/test-utils/index.cjs +13 -14
- package/dist/test-utils/index.d.cts +258 -4
- package/dist/test-utils/index.d.mts +258 -4
- package/dist/test-utils/index.d.ts +258 -4
- package/dist/test-utils/index.mjs +13 -14
- package/dist/types/index.d.cts +3 -4
- package/dist/types/index.d.mts +3 -4
- package/dist/types/index.d.ts +3 -4
- package/package.json +10 -5
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.g9DlWOx7.mjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.YK5LQtFt.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import 'zod/v4';
|
|
12
|
-
import '../../shared/better-auth.
|
|
13
|
-
import 'jose';
|
|
12
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
14
13
|
import 'zod/v4/core';
|
|
15
14
|
import 'zod';
|
|
16
15
|
import 'better-sqlite3';
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BAnyvLX6.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.S3lnSz8Y.js';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import 'zod/v4';
|
|
12
|
-
import '../../shared/better-auth.
|
|
13
|
-
import 'jose';
|
|
12
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
14
13
|
import 'zod/v4/core';
|
|
15
14
|
import 'zod';
|
|
16
15
|
import 'better-sqlite3';
|
|
@@ -4,14 +4,13 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } 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.B-V8R4q7.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.6crrbXrP.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
13
|
-
import '../../shared/better-auth.
|
|
14
|
-
import 'jose';
|
|
13
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
15
14
|
import 'zod/v4/core';
|
|
16
15
|
import 'zod';
|
|
17
16
|
import 'better-sqlite3';
|
|
@@ -4,14 +4,13 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } 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.g9DlWOx7.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.YK5LQtFt.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
13
|
-
import '../../shared/better-auth.
|
|
14
|
-
import 'jose';
|
|
13
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
15
14
|
import 'zod/v4/core';
|
|
16
15
|
import 'zod';
|
|
17
16
|
import 'better-sqlite3';
|
|
@@ -4,14 +4,13 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } 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.BAnyvLX6.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.S3lnSz8Y.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
13
|
-
import '../../shared/better-auth.
|
|
14
|
-
import 'jose';
|
|
13
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
15
14
|
import 'zod/v4/core';
|
|
16
15
|
import 'zod';
|
|
17
16
|
import 'better-sqlite3';
|
|
@@ -4,14 +4,13 @@ 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.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.B-V8R4q7.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.6crrbXrP.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
13
|
-
import '../../shared/better-auth.
|
|
14
|
-
import 'jose';
|
|
13
|
+
import '../../shared/better-auth.BaMSx6K3.cjs';
|
|
15
14
|
import 'zod/v4/core';
|
|
16
15
|
import 'zod';
|
|
17
16
|
import 'better-sqlite3';
|
|
@@ -4,14 +4,13 @@ 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.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.g9DlWOx7.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.YK5LQtFt.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
13
|
-
import '../../shared/better-auth.
|
|
14
|
-
import 'jose';
|
|
13
|
+
import '../../shared/better-auth.DR57bygo.mjs';
|
|
15
14
|
import 'zod/v4/core';
|
|
16
15
|
import 'zod';
|
|
17
16
|
import 'better-sqlite3';
|
|
@@ -4,14 +4,13 @@ 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.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BAnyvLX6.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.S3lnSz8Y.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
13
|
-
import '../../shared/better-auth.
|
|
14
|
-
import 'jose';
|
|
13
|
+
import '../../shared/better-auth.B5FL4Q2B.js';
|
|
15
14
|
import 'zod/v4/core';
|
|
16
15
|
import 'zod';
|
|
17
16
|
import 'better-sqlite3';
|
package/dist/cookies/index.d.cts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { aE as BetterAuthCookies, aJ as EligibleCookies, aC as createCookieGetter, aH as deleteSessionCookie, aL as getCookieCache, aD as getCookies, aK as getSessionCookie, aI as parseCookies, aM as parseSetCookieHeader, aF as setCookieCache, u as setCookieToHeader, aG as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aE as BetterAuthCookies, aJ as EligibleCookies, aC as createCookieGetter, aH as deleteSessionCookie, aL as getCookieCache, aD as getCookies, aK as getSessionCookie, aI as parseCookies, aM as parseSetCookieHeader, aF as setCookieCache, u as setCookieToHeader, aG as setSessionCookie } from '../shared/better-auth.6crrbXrP.cjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
7
|
-
import 'jose';
|
|
6
|
+
import '../shared/better-auth.BaMSx6K3.cjs';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-sqlite3';
|
package/dist/cookies/index.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { aE as BetterAuthCookies, aJ as EligibleCookies, aC as createCookieGetter, aH as deleteSessionCookie, aL as getCookieCache, aD as getCookies, aK as getSessionCookie, aI as parseCookies, aM as parseSetCookieHeader, aF as setCookieCache, u as setCookieToHeader, aG as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aE as BetterAuthCookies, aJ as EligibleCookies, aC as createCookieGetter, aH as deleteSessionCookie, aL as getCookieCache, aD as getCookies, aK as getSessionCookie, aI as parseCookies, aM as parseSetCookieHeader, aF as setCookieCache, u as setCookieToHeader, aG as setSessionCookie } from '../shared/better-auth.YK5LQtFt.mjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
7
|
-
import 'jose';
|
|
6
|
+
import '../shared/better-auth.DR57bygo.mjs';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-sqlite3';
|
package/dist/cookies/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { aE as BetterAuthCookies, aJ as EligibleCookies, aC as createCookieGetter, aH as deleteSessionCookie, aL as getCookieCache, aD as getCookies, aK as getSessionCookie, aI as parseCookies, aM as parseSetCookieHeader, aF as setCookieCache, u as setCookieToHeader, aG as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aE as BetterAuthCookies, aJ as EligibleCookies, aC as createCookieGetter, aH as deleteSessionCookie, aL as getCookieCache, aD as getCookies, aK as getSessionCookie, aI as parseCookies, aM as parseSetCookieHeader, aF as setCookieCache, u as setCookieToHeader, aG as setSessionCookie } from '../shared/better-auth.S3lnSz8Y.js';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.js';
|
|
6
|
-
import '../shared/better-auth.
|
|
7
|
-
import 'jose';
|
|
6
|
+
import '../shared/better-auth.B5FL4Q2B.js';
|
|
8
7
|
import 'zod/v4/core';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import 'better-sqlite3';
|
package/dist/crypto/index.cjs
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const hash = require('@better-auth/utils/hash');
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const webcrypto = require('@noble/ciphers/webcrypto');
|
|
4
|
+
const chacha_js = require('@noble/ciphers/chacha.js');
|
|
5
|
+
const utils_js$1 = require('@noble/ciphers/utils.js');
|
|
7
6
|
const base64 = require('@better-auth/utils/base64');
|
|
8
7
|
const jose = require('jose');
|
|
9
|
-
const
|
|
8
|
+
const scrypt_js = require('@noble/hashes/scrypt.js');
|
|
10
9
|
const utils = require('@better-auth/utils');
|
|
11
10
|
const hex = require('@better-auth/utils/hex');
|
|
12
|
-
const
|
|
11
|
+
const utils_js = require('@noble/hashes/utils.js');
|
|
13
12
|
const index = require('../shared/better-auth.ANpbi45u.cjs');
|
|
14
13
|
const random = require('../shared/better-auth.CYeOI8C-.cjs');
|
|
15
14
|
require('@better-auth/utils/random');
|
|
@@ -49,7 +48,7 @@ const config = {
|
|
|
49
48
|
dkLen: 64
|
|
50
49
|
};
|
|
51
50
|
async function generateKey(password, salt) {
|
|
52
|
-
return await
|
|
51
|
+
return await scrypt_js.scryptAsync(password.normalize("NFKC"), salt, {
|
|
53
52
|
N: config.N,
|
|
54
53
|
p: config.p,
|
|
55
54
|
r: config.r,
|
|
@@ -71,7 +70,7 @@ const verifyPassword = async ({
|
|
|
71
70
|
throw new index.BetterAuthError("Invalid password hash");
|
|
72
71
|
}
|
|
73
72
|
const targetKey = await generateKey(password, salt);
|
|
74
|
-
return constantTimeEqual(targetKey,
|
|
73
|
+
return constantTimeEqual(targetKey, utils_js.hexToBytes(key));
|
|
75
74
|
};
|
|
76
75
|
|
|
77
76
|
const symmetricEncrypt = async ({
|
|
@@ -79,18 +78,18 @@ const symmetricEncrypt = async ({
|
|
|
79
78
|
data
|
|
80
79
|
}) => {
|
|
81
80
|
const keyAsBytes = await hash.createHash("SHA-256").digest(key);
|
|
82
|
-
const dataAsBytes =
|
|
83
|
-
const chacha
|
|
84
|
-
return
|
|
81
|
+
const dataAsBytes = utils_js$1.utf8ToBytes(data);
|
|
82
|
+
const chacha = utils_js$1.managedNonce(chacha_js.xchacha20poly1305)(new Uint8Array(keyAsBytes));
|
|
83
|
+
return utils_js$1.bytesToHex(chacha.encrypt(dataAsBytes));
|
|
85
84
|
};
|
|
86
85
|
const symmetricDecrypt = async ({
|
|
87
86
|
key,
|
|
88
87
|
data
|
|
89
88
|
}) => {
|
|
90
89
|
const keyAsBytes = await hash.createHash("SHA-256").digest(key);
|
|
91
|
-
const dataAsBytes =
|
|
92
|
-
const chacha
|
|
93
|
-
return new TextDecoder().decode(chacha
|
|
90
|
+
const dataAsBytes = utils_js$1.hexToBytes(data);
|
|
91
|
+
const chacha = utils_js$1.managedNonce(chacha_js.xchacha20poly1305)(new Uint8Array(keyAsBytes));
|
|
92
|
+
return new TextDecoder().decode(chacha.decrypt(dataAsBytes));
|
|
94
93
|
};
|
|
95
94
|
|
|
96
95
|
exports.generateRandomString = random.generateRandomString;
|
package/dist/crypto/index.mjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { createHash } from '@better-auth/utils/hash';
|
|
2
|
-
import { xchacha20poly1305 } from '@noble/ciphers/chacha';
|
|
3
|
-
import { utf8ToBytes, bytesToHex, hexToBytes as hexToBytes$1 } from '@noble/ciphers/utils';
|
|
4
|
-
import { managedNonce } from '@noble/ciphers/webcrypto';
|
|
2
|
+
import { xchacha20poly1305 } from '@noble/ciphers/chacha.js';
|
|
3
|
+
import { utf8ToBytes, managedNonce, bytesToHex, hexToBytes as hexToBytes$1 } from '@noble/ciphers/utils.js';
|
|
5
4
|
import { base64 } from '@better-auth/utils/base64';
|
|
6
5
|
import { SignJWT } from 'jose';
|
|
7
|
-
import { scryptAsync } from '@noble/hashes/scrypt';
|
|
6
|
+
import { scryptAsync } from '@noble/hashes/scrypt.js';
|
|
8
7
|
import { getRandomValues } from '@better-auth/utils';
|
|
9
8
|
import { hex } from '@better-auth/utils/hex';
|
|
10
|
-
import { hexToBytes } from '@noble/hashes/utils';
|
|
9
|
+
import { hexToBytes } from '@noble/hashes/utils.js';
|
|
11
10
|
import { B as BetterAuthError } from '../shared/better-auth.DdzSJf-n.mjs';
|
|
12
11
|
export { g as generateRandomString } from '../shared/better-auth.B4Qoxdgc.mjs';
|
|
13
12
|
import '@better-auth/utils/random';
|
package/dist/db/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const getMigration = require('../shared/better-auth.
|
|
3
|
+
const getMigration = require('../shared/better-auth.C5ZbY8Lo.cjs');
|
|
4
4
|
const getTables = require('../shared/better-auth.Byugpn9h.cjs');
|
|
5
5
|
const toZod = require('../shared/better-auth.CpS2FLSa.cjs');
|
|
6
6
|
const schema = require('../shared/better-auth.gN3g-znU.cjs');
|
|
@@ -14,21 +14,20 @@ require('@better-auth/utils/random');
|
|
|
14
14
|
require('zod/v4');
|
|
15
15
|
require('better-call');
|
|
16
16
|
require('@better-auth/utils/hash');
|
|
17
|
-
require('@noble/ciphers/chacha');
|
|
18
|
-
require('@noble/ciphers/utils');
|
|
19
|
-
require('@noble/ciphers/webcrypto');
|
|
17
|
+
require('@noble/ciphers/chacha.js');
|
|
18
|
+
require('@noble/ciphers/utils.js');
|
|
20
19
|
require('@better-auth/utils/base64');
|
|
21
20
|
require('jose');
|
|
22
|
-
require('@noble/hashes/scrypt');
|
|
21
|
+
require('@noble/hashes/scrypt.js');
|
|
23
22
|
require('@better-auth/utils');
|
|
24
23
|
require('@better-auth/utils/hex');
|
|
25
|
-
require('@noble/hashes/utils');
|
|
24
|
+
require('@noble/hashes/utils.js');
|
|
26
25
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
27
26
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
28
|
-
require('../shared/better-auth.
|
|
27
|
+
require('../shared/better-auth.WyvofoOW.cjs');
|
|
29
28
|
require('kysely');
|
|
30
|
-
require('../shared/better-auth.
|
|
31
|
-
require('../shared/better-auth.
|
|
29
|
+
require('../shared/better-auth.Szg-8evr.cjs');
|
|
30
|
+
require('../shared/better-auth.QqWdVDmR.cjs');
|
|
32
31
|
|
|
33
32
|
const createFieldAttribute = (type, config) => {
|
|
34
33
|
return {
|
package/dist/db/index.d.cts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, p as InferFieldsFromOptions, o as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, an as accountSchema, am as coreSchema, ac as createFieldAttribute, a9 as createInternalAdapter, as as getAllFields, al as getAuthTables, aB as mergeSchema, az as parseAccountInput, au as parseAccountOutput, ay as parseAdditionalUserInput, aw as parseInputData, ar as parseOutputData, aA as parseSessionInput, av as parseSessionOutput, ax as parseUserInput, at as parseUserOutput, ap as sessionSchema, ao as userSchema, aq as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.6crrbXrP.cjs';
|
|
2
|
+
export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, p as InferFieldsFromOptions, o as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, an as accountSchema, am as coreSchema, ac as createFieldAttribute, a9 as createInternalAdapter, as as getAllFields, al as getAuthTables, aB as mergeSchema, az as parseAccountInput, au as parseAccountOutput, ay as parseAdditionalUserInput, aw as parseInputData, ar as parseOutputData, aA as parseSessionInput, av as parseSessionOutput, ax as parseUserInput, at as parseUserOutput, ap as sessionSchema, ao as userSchema, aq as verificationSchema } from '../shared/better-auth.6crrbXrP.cjs';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
-
import '../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../shared/better-auth.BaMSx6K3.cjs';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'zod';
|
|
11
10
|
import 'better-sqlite3';
|
package/dist/db/index.d.mts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, p as InferFieldsFromOptions, o as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, an as accountSchema, am as coreSchema, ac as createFieldAttribute, a9 as createInternalAdapter, as as getAllFields, al as getAuthTables, aB as mergeSchema, az as parseAccountInput, au as parseAccountOutput, ay as parseAdditionalUserInput, aw as parseInputData, ar as parseOutputData, aA as parseSessionInput, av as parseSessionOutput, ax as parseUserInput, at as parseUserOutput, ap as sessionSchema, ao as userSchema, aq as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.YK5LQtFt.mjs';
|
|
2
|
+
export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, p as InferFieldsFromOptions, o as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, an as accountSchema, am as coreSchema, ac as createFieldAttribute, a9 as createInternalAdapter, as as getAllFields, al as getAuthTables, aB as mergeSchema, az as parseAccountInput, au as parseAccountOutput, ay as parseAdditionalUserInput, aw as parseInputData, ar as parseOutputData, aA as parseSessionInput, av as parseSessionOutput, ax as parseUserInput, at as parseUserOutput, ap as sessionSchema, ao as userSchema, aq as verificationSchema } from '../shared/better-auth.YK5LQtFt.mjs';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
-
import '../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../shared/better-auth.DR57bygo.mjs';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'zod';
|
|
11
10
|
import 'better-sqlite3';
|
package/dist/db/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, p as InferFieldsFromOptions, o as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, an as accountSchema, am as coreSchema, ac as createFieldAttribute, a9 as createInternalAdapter, as as getAllFields, al as getAuthTables, aB as mergeSchema, az as parseAccountInput, au as parseAccountOutput, ay as parseAdditionalUserInput, aw as parseInputData, ar as parseOutputData, aA as parseSessionInput, av as parseSessionOutput, ax as parseUserInput, at as parseUserOutput, ap as sessionSchema, ao as userSchema, aq as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.S3lnSz8Y.js';
|
|
2
|
+
export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, p as InferFieldsFromOptions, o as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, an as accountSchema, am as coreSchema, ac as createFieldAttribute, a9 as createInternalAdapter, as as getAllFields, al as getAuthTables, aB as mergeSchema, az as parseAccountInput, au as parseAccountOutput, ay as parseAdditionalUserInput, aw as parseInputData, ar as parseOutputData, aA as parseSessionInput, av as parseSessionOutput, ax as parseUserInput, at as parseUserOutput, ap as sessionSchema, ao as userSchema, aq as verificationSchema } from '../shared/better-auth.S3lnSz8Y.js';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.js';
|
|
7
|
-
import '../shared/better-auth.
|
|
8
|
-
import 'jose';
|
|
7
|
+
import '../shared/better-auth.B5FL4Q2B.js';
|
|
9
8
|
import 'zod/v4/core';
|
|
10
9
|
import 'zod';
|
|
11
10
|
import 'better-sqlite3';
|
package/dist/db/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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.DV0Lly8-.mjs';
|
|
2
2
|
export { g as getAuthTables } from '../shared/better-auth.B_PTVODM.mjs';
|
|
3
3
|
export { t as toZodSchema } from '../shared/better-auth.DrJWSFx6.mjs';
|
|
4
4
|
export { a as accountSchema, c as coreSchema, g as getAllFields, m as mergeSchema, j as parseAccountInput, d as parseAccountOutput, i as parseAdditionalUserInput, f as parseInputData, p as parseOutputData, k as parseSessionInput, e as parseSessionOutput, h as parseUserInput, b as parseUserOutput, s as sessionSchema, u as userSchema, v as verificationSchema } from '../shared/better-auth.Dcv8PS7T.mjs';
|
|
@@ -12,21 +12,20 @@ import '@better-auth/utils/random';
|
|
|
12
12
|
import 'zod/v4';
|
|
13
13
|
import 'better-call';
|
|
14
14
|
import '@better-auth/utils/hash';
|
|
15
|
-
import '@noble/ciphers/chacha';
|
|
16
|
-
import '@noble/ciphers/utils';
|
|
17
|
-
import '@noble/ciphers/webcrypto';
|
|
15
|
+
import '@noble/ciphers/chacha.js';
|
|
16
|
+
import '@noble/ciphers/utils.js';
|
|
18
17
|
import '@better-auth/utils/base64';
|
|
19
18
|
import 'jose';
|
|
20
|
-
import '@noble/hashes/scrypt';
|
|
19
|
+
import '@noble/hashes/scrypt.js';
|
|
21
20
|
import '@better-auth/utils';
|
|
22
21
|
import '@better-auth/utils/hex';
|
|
23
|
-
import '@noble/hashes/utils';
|
|
22
|
+
import '@noble/hashes/utils.js';
|
|
24
23
|
import '../shared/better-auth.B4Qoxdgc.mjs';
|
|
25
24
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
26
|
-
import '../shared/better-auth.
|
|
25
|
+
import '../shared/better-auth.BduPtJy8.mjs';
|
|
27
26
|
import 'kysely';
|
|
28
|
-
import '../shared/better-auth.
|
|
29
|
-
import '../shared/better-auth.
|
|
27
|
+
import '../shared/better-auth.DOXaXTC6.mjs';
|
|
28
|
+
import '../shared/better-auth.7ZeACU2v.mjs';
|
|
30
29
|
|
|
31
30
|
const createFieldAttribute = (type, config) => {
|
|
32
31
|
return {
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const auth = require('./shared/better-auth.
|
|
3
|
+
const auth = require('./shared/better-auth.B-GguVp5.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.BlsHS68J.cjs');
|
|
7
7
|
const id = require('./shared/better-auth.Bg6iw3ig.cjs');
|
|
8
8
|
const logger = require('./shared/better-auth.B3274wGK.cjs');
|
|
9
9
|
const betterCall = require('better-call');
|
|
@@ -23,22 +23,21 @@ require('./shared/better-auth.Cxlqz5AU.cjs');
|
|
|
23
23
|
require('defu');
|
|
24
24
|
require('./crypto/index.cjs');
|
|
25
25
|
require('@better-auth/utils/hash');
|
|
26
|
-
require('@noble/ciphers/chacha');
|
|
27
|
-
require('@noble/ciphers/utils');
|
|
28
|
-
require('@noble/ciphers/webcrypto');
|
|
26
|
+
require('@noble/ciphers/chacha.js');
|
|
27
|
+
require('@noble/ciphers/utils.js');
|
|
29
28
|
require('jose');
|
|
30
|
-
require('@noble/hashes/scrypt');
|
|
29
|
+
require('@noble/hashes/scrypt.js');
|
|
31
30
|
require('@better-auth/utils');
|
|
32
31
|
require('@better-auth/utils/hex');
|
|
33
|
-
require('@noble/hashes/utils');
|
|
32
|
+
require('@noble/hashes/utils.js');
|
|
34
33
|
require('./shared/better-auth.CYeOI8C-.cjs');
|
|
35
34
|
require('@better-auth/utils/random');
|
|
36
|
-
require('./shared/better-auth.
|
|
35
|
+
require('./shared/better-auth.C5ZbY8Lo.cjs');
|
|
37
36
|
require('./shared/better-auth.Byugpn9h.cjs');
|
|
38
|
-
require('./shared/better-auth.
|
|
37
|
+
require('./shared/better-auth.WyvofoOW.cjs');
|
|
39
38
|
require('kysely');
|
|
40
|
-
require('./shared/better-auth.
|
|
41
|
-
require('./shared/better-auth.
|
|
39
|
+
require('./shared/better-auth.Szg-8evr.cjs');
|
|
40
|
+
require('./shared/better-auth.QqWdVDmR.cjs');
|
|
42
41
|
require('./shared/better-auth.CDXNofOe.cjs');
|
|
43
42
|
require('@better-fetch/fetch');
|
|
44
43
|
require('jose/errors');
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.
|
|
2
|
-
export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, m as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, n as AdditionalUserFieldsOutput, g as Auth, h as AuthContext, v as AuthPluginSchema, r as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, l as InferAPI, I as InferOptionSchema, t as InferPluginErrorCodes, s as InferPluginTypes, j as InferSession, $ as InferSessionAPI, i as InferUser, a5 as InternalLogger, a4 as LogHandlerParams, a0 as LogLevel, a3 as Logger, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, W as WithJsDoc, L as betterAuth, a6 as createLogger, P as init, a1 as levels, a7 as logger, a2 as shouldPublishLog } from './shared/better-auth.
|
|
3
|
-
export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, i as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, I as IsSignal, S as SessionQueryParams, e as Store } from './shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.6crrbXrP.cjs';
|
|
2
|
+
export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, m as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, n as AdditionalUserFieldsOutput, g as Auth, h as AuthContext, v as AuthPluginSchema, r as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, l as InferAPI, I as InferOptionSchema, t as InferPluginErrorCodes, s as InferPluginTypes, j as InferSession, $ as InferSessionAPI, i as InferUser, a5 as InternalLogger, a4 as LogHandlerParams, a0 as LogLevel, a3 as Logger, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, W as WithJsDoc, L as betterAuth, a6 as createLogger, P as init, a1 as levels, a7 as logger, a2 as shouldPublishLog } from './shared/better-auth.6crrbXrP.cjs';
|
|
3
|
+
export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, i as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, I as IsSignal, S as SessionQueryParams, e as Store } from './shared/better-auth.B-V8R4q7.cjs';
|
|
4
4
|
export { H as HIDE_METADATA } from './shared/better-auth.DEHJp1rk.cjs';
|
|
5
|
-
export { g as generateState, p as parseState } from './shared/better-auth.
|
|
5
|
+
export { g as generateState, p as parseState } from './shared/better-auth.DQLetyog.cjs';
|
|
6
6
|
export * from 'better-call';
|
|
7
7
|
export { APIError } from 'better-call';
|
|
8
8
|
export * from 'zod/v4';
|
|
9
9
|
export * from 'zod/v4/core';
|
|
10
10
|
import { b as LiteralUnion } from './shared/better-auth.DTtXpZYr.cjs';
|
|
11
11
|
export { A as Awaitable, D as DeepPartial, E as Expand, H as HasRequiredKeys, d as LiteralNumber, L as LiteralString, O as OmitId, e as PreserveJSDoc, a as Prettify, P as PrettifyDeep, c as Primitive, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.DTtXpZYr.cjs';
|
|
12
|
-
export { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from './shared/better-auth.
|
|
12
|
+
export { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from './shared/better-auth.BaMSx6K3.cjs';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'zod';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -17,7 +17,6 @@ import 'bun:sqlite';
|
|
|
17
17
|
import 'node:sqlite';
|
|
18
18
|
import '@better-fetch/fetch';
|
|
19
19
|
import 'nanostores';
|
|
20
|
-
import 'jose';
|
|
21
20
|
|
|
22
21
|
declare function capitalizeFirstLetter(str: string): string;
|
|
23
22
|
|
|
@@ -84,7 +83,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
84
83
|
disableSignUp: boolean | undefined;
|
|
85
84
|
getUserInfo: boolean;
|
|
86
85
|
overrideUserInfoOnSignIn: boolean;
|
|
87
|
-
prompt: "
|
|
86
|
+
prompt: "select_account" | "consent" | "login" | "none" | "select_account consent" | undefined;
|
|
88
87
|
verifyIdToken: boolean;
|
|
89
88
|
scope: string[] | undefined;
|
|
90
89
|
refreshAccessToken: boolean;
|
|
@@ -92,7 +91,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
92
91
|
plugins: string[] | undefined;
|
|
93
92
|
user: {
|
|
94
93
|
modelName: string | undefined;
|
|
95
|
-
fields: Partial<Record<"
|
|
94
|
+
fields: Partial<Record<"name" | "emailVerified" | "email" | "image" | "createdAt" | "updatedAt", string>> | undefined;
|
|
96
95
|
additionalFields: {
|
|
97
96
|
[key: string]: FieldAttribute;
|
|
98
97
|
} | undefined;
|
|
@@ -117,7 +116,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
117
116
|
};
|
|
118
117
|
disableSessionRefresh: boolean | undefined;
|
|
119
118
|
expiresIn: number | undefined;
|
|
120
|
-
fields: Partial<Record<"
|
|
119
|
+
fields: Partial<Record<"token" | "createdAt" | "updatedAt" | "userId" | "expiresAt" | "ipAddress" | "userAgent", string>> | undefined;
|
|
121
120
|
freshAge: number | undefined;
|
|
122
121
|
preserveSessionInDatabase: boolean | undefined;
|
|
123
122
|
storeSessionInDatabase: boolean | undefined;
|
|
@@ -125,7 +124,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
125
124
|
};
|
|
126
125
|
account: {
|
|
127
126
|
modelName: string | undefined;
|
|
128
|
-
fields: Partial<Record<"
|
|
127
|
+
fields: Partial<Record<"scope" | "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "idToken" | "createdAt" | "updatedAt" | "userId" | "providerId" | "accountId" | "password", string>> | undefined;
|
|
129
128
|
encryptOAuthTokens: boolean | undefined;
|
|
130
129
|
updateAccountOnSignIn: boolean | undefined;
|
|
131
130
|
accountLinking: {
|
|
@@ -165,7 +164,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
165
164
|
cookieAttributes: {
|
|
166
165
|
expires: Date | undefined;
|
|
167
166
|
secure: boolean | undefined;
|
|
168
|
-
sameSite: "lax" | "Strict" | "Lax" | "None" | "strict" |
|
|
167
|
+
sameSite: "none" | "lax" | "Strict" | "Lax" | "None" | "strict" | undefined;
|
|
169
168
|
domain: boolean;
|
|
170
169
|
path: string | undefined;
|
|
171
170
|
httpOnly: boolean | undefined;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.
|
|
2
|
-
export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, m as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, n as AdditionalUserFieldsOutput, g as Auth, h as AuthContext, v as AuthPluginSchema, r as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, l as InferAPI, I as InferOptionSchema, t as InferPluginErrorCodes, s as InferPluginTypes, j as InferSession, $ as InferSessionAPI, i as InferUser, a5 as InternalLogger, a4 as LogHandlerParams, a0 as LogLevel, a3 as Logger, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, W as WithJsDoc, L as betterAuth, a6 as createLogger, P as init, a1 as levels, a7 as logger, a2 as shouldPublishLog } from './shared/better-auth.
|
|
3
|
-
export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, i as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, I as IsSignal, S as SessionQueryParams, e as Store } from './shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.YK5LQtFt.mjs';
|
|
2
|
+
export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, m as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, n as AdditionalUserFieldsOutput, g as Auth, h as AuthContext, v as AuthPluginSchema, r as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, l as InferAPI, I as InferOptionSchema, t as InferPluginErrorCodes, s as InferPluginTypes, j as InferSession, $ as InferSessionAPI, i as InferUser, a5 as InternalLogger, a4 as LogHandlerParams, a0 as LogLevel, a3 as Logger, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, W as WithJsDoc, L as betterAuth, a6 as createLogger, P as init, a1 as levels, a7 as logger, a2 as shouldPublishLog } from './shared/better-auth.YK5LQtFt.mjs';
|
|
3
|
+
export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, i as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, I as IsSignal, S as SessionQueryParams, e as Store } from './shared/better-auth.g9DlWOx7.mjs';
|
|
4
4
|
export { H as HIDE_METADATA } from './shared/better-auth.DEHJp1rk.mjs';
|
|
5
|
-
export { g as generateState, p as parseState } from './shared/better-auth.
|
|
5
|
+
export { g as generateState, p as parseState } from './shared/better-auth.km36dqos.mjs';
|
|
6
6
|
export * from 'better-call';
|
|
7
7
|
export { APIError } from 'better-call';
|
|
8
8
|
export * from 'zod/v4';
|
|
9
9
|
export * from 'zod/v4/core';
|
|
10
10
|
import { b as LiteralUnion } from './shared/better-auth.DTtXpZYr.mjs';
|
|
11
11
|
export { A as Awaitable, D as DeepPartial, E as Expand, H as HasRequiredKeys, d as LiteralNumber, L as LiteralString, O as OmitId, e as PreserveJSDoc, a as Prettify, P as PrettifyDeep, c as Primitive, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.DTtXpZYr.mjs';
|
|
12
|
-
export { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from './shared/better-auth.
|
|
12
|
+
export { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from './shared/better-auth.DR57bygo.mjs';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'zod';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -17,7 +17,6 @@ import 'bun:sqlite';
|
|
|
17
17
|
import 'node:sqlite';
|
|
18
18
|
import '@better-fetch/fetch';
|
|
19
19
|
import 'nanostores';
|
|
20
|
-
import 'jose';
|
|
21
20
|
|
|
22
21
|
declare function capitalizeFirstLetter(str: string): string;
|
|
23
22
|
|
|
@@ -84,7 +83,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
84
83
|
disableSignUp: boolean | undefined;
|
|
85
84
|
getUserInfo: boolean;
|
|
86
85
|
overrideUserInfoOnSignIn: boolean;
|
|
87
|
-
prompt: "
|
|
86
|
+
prompt: "select_account" | "consent" | "login" | "none" | "select_account consent" | undefined;
|
|
88
87
|
verifyIdToken: boolean;
|
|
89
88
|
scope: string[] | undefined;
|
|
90
89
|
refreshAccessToken: boolean;
|
|
@@ -92,7 +91,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
92
91
|
plugins: string[] | undefined;
|
|
93
92
|
user: {
|
|
94
93
|
modelName: string | undefined;
|
|
95
|
-
fields: Partial<Record<"
|
|
94
|
+
fields: Partial<Record<"name" | "emailVerified" | "email" | "image" | "createdAt" | "updatedAt", string>> | undefined;
|
|
96
95
|
additionalFields: {
|
|
97
96
|
[key: string]: FieldAttribute;
|
|
98
97
|
} | undefined;
|
|
@@ -117,7 +116,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
117
116
|
};
|
|
118
117
|
disableSessionRefresh: boolean | undefined;
|
|
119
118
|
expiresIn: number | undefined;
|
|
120
|
-
fields: Partial<Record<"
|
|
119
|
+
fields: Partial<Record<"token" | "createdAt" | "updatedAt" | "userId" | "expiresAt" | "ipAddress" | "userAgent", string>> | undefined;
|
|
121
120
|
freshAge: number | undefined;
|
|
122
121
|
preserveSessionInDatabase: boolean | undefined;
|
|
123
122
|
storeSessionInDatabase: boolean | undefined;
|
|
@@ -125,7 +124,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
125
124
|
};
|
|
126
125
|
account: {
|
|
127
126
|
modelName: string | undefined;
|
|
128
|
-
fields: Partial<Record<"
|
|
127
|
+
fields: Partial<Record<"scope" | "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "idToken" | "createdAt" | "updatedAt" | "userId" | "providerId" | "accountId" | "password", string>> | undefined;
|
|
129
128
|
encryptOAuthTokens: boolean | undefined;
|
|
130
129
|
updateAccountOnSignIn: boolean | undefined;
|
|
131
130
|
accountLinking: {
|
|
@@ -165,7 +164,7 @@ declare function getTelemetryAuthConfig(options: BetterAuthOptions, context?: Te
|
|
|
165
164
|
cookieAttributes: {
|
|
166
165
|
expires: Date | undefined;
|
|
167
166
|
secure: boolean | undefined;
|
|
168
|
-
sameSite: "lax" | "Strict" | "Lax" | "None" | "strict" |
|
|
167
|
+
sameSite: "none" | "lax" | "Strict" | "Lax" | "None" | "strict" | undefined;
|
|
169
168
|
domain: boolean;
|
|
170
169
|
path: string | undefined;
|
|
171
170
|
httpOnly: boolean | undefined;
|