better-auth 1.2.9-beta.1 → 1.2.9-beta.7
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/README.md +1 -1
- package/dist/adapters/drizzle-adapter/index.d.cts +5 -5
- package/dist/adapters/drizzle-adapter/index.d.mts +5 -5
- package/dist/adapters/drizzle-adapter/index.d.ts +5 -5
- package/dist/adapters/index.d.cts +4 -5
- package/dist/adapters/index.d.mts +4 -5
- package/dist/adapters/index.d.ts +4 -5
- package/dist/adapters/kysely-adapter/index.d.cts +3 -4
- package/dist/adapters/kysely-adapter/index.d.mts +3 -4
- package/dist/adapters/kysely-adapter/index.d.ts +3 -4
- package/dist/adapters/memory-adapter/index.d.cts +5 -5
- package/dist/adapters/memory-adapter/index.d.mts +5 -5
- package/dist/adapters/memory-adapter/index.d.ts +5 -5
- package/dist/adapters/mongodb-adapter/index.d.cts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.mts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.ts +3 -3
- package/dist/adapters/prisma-adapter/index.d.cts +5 -5
- package/dist/adapters/prisma-adapter/index.d.mts +5 -5
- package/dist/adapters/prisma-adapter/index.d.ts +5 -5
- package/dist/adapters/test.d.cts +3 -3
- package/dist/adapters/test.d.mts +3 -3
- package/dist/adapters/test.d.ts +3 -3
- package/dist/api/index.cjs +22 -10
- package/dist/api/index.d.cts +4 -4
- package/dist/api/index.d.mts +4 -4
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.mjs +23 -12
- package/dist/client/index.cjs +2 -2
- package/dist/client/index.d.cts +6 -6
- package/dist/client/index.d.mts +6 -6
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.mjs +2 -2
- package/dist/client/plugins/index.cjs +1 -1
- package/dist/client/plugins/index.d.cts +7 -5
- package/dist/client/plugins/index.d.mts +7 -5
- package/dist/client/plugins/index.d.ts +7 -5
- package/dist/client/plugins/index.mjs +1 -1
- package/dist/client/react/index.cjs +2 -2
- package/dist/client/react/index.d.cts +11 -11
- package/dist/client/react/index.d.mts +11 -11
- package/dist/client/react/index.d.ts +11 -11
- package/dist/client/react/index.mjs +2 -2
- package/dist/client/solid/index.cjs +2 -2
- package/dist/client/solid/index.d.cts +5 -5
- package/dist/client/solid/index.d.mts +5 -5
- package/dist/client/solid/index.d.ts +5 -5
- package/dist/client/solid/index.mjs +2 -2
- package/dist/client/svelte/index.cjs +2 -2
- package/dist/client/svelte/index.d.cts +5 -5
- package/dist/client/svelte/index.d.mts +5 -5
- package/dist/client/svelte/index.d.ts +5 -5
- package/dist/client/svelte/index.mjs +2 -2
- package/dist/client/vue/index.cjs +2 -2
- package/dist/client/vue/index.d.cts +5 -5
- package/dist/client/vue/index.d.mts +5 -5
- package/dist/client/vue/index.d.ts +5 -5
- package/dist/client/vue/index.mjs +2 -2
- package/dist/cookies/index.d.cts +3 -3
- package/dist/cookies/index.d.mts +3 -3
- package/dist/cookies/index.d.ts +3 -3
- package/dist/crypto/index.d.cts +2 -1
- package/dist/crypto/index.d.mts +2 -1
- package/dist/crypto/index.d.ts +2 -1
- package/dist/db/index.cjs +1 -1
- package/dist/db/index.d.cts +7 -7
- package/dist/db/index.d.mts +7 -7
- package/dist/db/index.d.ts +7 -7
- package/dist/db/index.mjs +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +9 -4
- package/dist/integrations/next-js.cjs +3 -3
- package/dist/integrations/next-js.d.cts +3 -3
- package/dist/integrations/next-js.d.mts +3 -3
- package/dist/integrations/next-js.d.ts +3 -3
- package/dist/integrations/next-js.mjs +3 -3
- package/dist/integrations/node.d.cts +3 -3
- package/dist/integrations/node.d.mts +3 -3
- package/dist/integrations/node.d.ts +3 -3
- package/dist/integrations/react-start.cjs +3 -3
- package/dist/integrations/react-start.d.cts +3 -3
- package/dist/integrations/react-start.d.mts +3 -3
- package/dist/integrations/react-start.d.ts +3 -3
- package/dist/integrations/react-start.mjs +3 -3
- package/dist/integrations/svelte-kit.d.cts +3 -3
- package/dist/integrations/svelte-kit.d.mts +3 -3
- package/dist/integrations/svelte-kit.d.ts +3 -3
- package/dist/oauth2/index.d.cts +5 -5
- package/dist/oauth2/index.d.mts +5 -5
- package/dist/oauth2/index.d.ts +5 -5
- package/dist/plugins/access/index.d.cts +7 -6
- package/dist/plugins/access/index.d.mts +7 -6
- package/dist/plugins/access/index.d.ts +7 -6
- package/dist/plugins/admin/access/index.d.cts +24 -24
- package/dist/plugins/admin/access/index.d.mts +24 -24
- package/dist/plugins/admin/access/index.d.ts +24 -24
- package/dist/plugins/admin/index.cjs +8 -8
- package/dist/plugins/admin/index.d.cts +34 -33
- package/dist/plugins/admin/index.d.mts +34 -33
- package/dist/plugins/admin/index.d.ts +34 -33
- package/dist/plugins/admin/index.mjs +8 -8
- package/dist/plugins/anonymous/index.cjs +9 -9
- package/dist/plugins/anonymous/index.d.cts +5 -4
- package/dist/plugins/anonymous/index.d.mts +5 -4
- package/dist/plugins/anonymous/index.d.ts +5 -4
- package/dist/plugins/anonymous/index.mjs +9 -9
- package/dist/plugins/bearer/index.cjs +7 -7
- package/dist/plugins/bearer/index.d.cts +3 -3
- package/dist/plugins/bearer/index.d.mts +3 -3
- package/dist/plugins/bearer/index.d.ts +3 -3
- package/dist/plugins/bearer/index.mjs +7 -7
- package/dist/plugins/captcha/index.d.cts +3 -3
- package/dist/plugins/captcha/index.d.mts +3 -3
- package/dist/plugins/captcha/index.d.ts +3 -3
- package/dist/plugins/custom-session/index.cjs +7 -7
- package/dist/plugins/custom-session/index.d.cts +3 -3
- package/dist/plugins/custom-session/index.d.mts +3 -3
- package/dist/plugins/custom-session/index.d.ts +3 -3
- package/dist/plugins/custom-session/index.mjs +7 -7
- package/dist/plugins/email-otp/index.cjs +3 -3
- package/dist/plugins/email-otp/index.d.cts +15 -14
- package/dist/plugins/email-otp/index.d.mts +15 -14
- package/dist/plugins/email-otp/index.d.ts +15 -14
- package/dist/plugins/email-otp/index.mjs +3 -3
- package/dist/plugins/generic-oauth/index.cjs +3 -2
- package/dist/plugins/generic-oauth/index.d.cts +16 -15
- package/dist/plugins/generic-oauth/index.d.mts +16 -15
- package/dist/plugins/generic-oauth/index.d.ts +16 -15
- package/dist/plugins/generic-oauth/index.mjs +3 -2
- package/dist/plugins/haveibeenpwned/index.cjs +6 -6
- package/dist/plugins/haveibeenpwned/index.d.cts +5 -4
- package/dist/plugins/haveibeenpwned/index.d.mts +5 -4
- package/dist/plugins/haveibeenpwned/index.d.ts +5 -4
- package/dist/plugins/haveibeenpwned/index.mjs +6 -6
- package/dist/plugins/index.cjs +198 -200
- package/dist/plugins/index.d.cts +17 -17
- package/dist/plugins/index.d.mts +17 -17
- package/dist/plugins/index.d.ts +17 -17
- package/dist/plugins/index.mjs +200 -202
- package/dist/plugins/jwt/index.cjs +6 -6
- package/dist/plugins/jwt/index.d.cts +7 -6
- package/dist/plugins/jwt/index.d.mts +7 -6
- package/dist/plugins/jwt/index.d.ts +7 -6
- package/dist/plugins/jwt/index.mjs +6 -6
- package/dist/plugins/magic-link/index.cjs +17 -8
- package/dist/plugins/magic-link/index.mjs +17 -8
- package/dist/plugins/multi-session/index.cjs +9 -9
- package/dist/plugins/multi-session/index.d.cts +8 -8
- package/dist/plugins/multi-session/index.d.mts +8 -8
- package/dist/plugins/multi-session/index.d.ts +8 -8
- package/dist/plugins/multi-session/index.mjs +9 -9
- package/dist/plugins/oauth-proxy/index.cjs +7 -7
- package/dist/plugins/oauth-proxy/index.d.cts +7 -7
- package/dist/plugins/oauth-proxy/index.d.mts +7 -7
- package/dist/plugins/oauth-proxy/index.d.ts +7 -7
- package/dist/plugins/oauth-proxy/index.mjs +7 -7
- package/dist/plugins/oidc-provider/index.cjs +4 -4
- package/dist/plugins/oidc-provider/index.d.cts +29 -19
- package/dist/plugins/oidc-provider/index.d.mts +29 -19
- package/dist/plugins/oidc-provider/index.d.ts +29 -19
- package/dist/plugins/oidc-provider/index.mjs +4 -4
- package/dist/plugins/one-tap/index.cjs +8 -8
- package/dist/plugins/one-tap/index.mjs +8 -8
- package/dist/plugins/one-time-token/index.cjs +3 -3
- package/dist/plugins/one-time-token/index.d.cts +5 -5
- package/dist/plugins/one-time-token/index.d.mts +5 -5
- package/dist/plugins/one-time-token/index.d.ts +5 -5
- package/dist/plugins/one-time-token/index.mjs +3 -3
- package/dist/plugins/open-api/index.cjs +2 -2
- package/dist/plugins/open-api/index.d.cts +5 -4
- package/dist/plugins/open-api/index.d.mts +5 -4
- package/dist/plugins/open-api/index.d.ts +5 -4
- package/dist/plugins/open-api/index.mjs +2 -2
- package/dist/plugins/organization/access/index.d.cts +9 -9
- package/dist/plugins/organization/access/index.d.mts +9 -9
- package/dist/plugins/organization/access/index.d.ts +9 -9
- package/dist/plugins/organization/index.cjs +8 -8
- package/dist/plugins/organization/index.d.cts +172 -171
- package/dist/plugins/organization/index.d.mts +172 -171
- package/dist/plugins/organization/index.d.ts +172 -171
- package/dist/plugins/organization/index.mjs +8 -8
- package/dist/plugins/passkey/index.cjs +2 -2
- package/dist/plugins/passkey/index.d.cts +17 -16
- package/dist/plugins/passkey/index.d.mts +17 -16
- package/dist/plugins/passkey/index.d.ts +17 -16
- package/dist/plugins/passkey/index.mjs +2 -2
- package/dist/plugins/phone-number/index.cjs +9 -9
- package/dist/plugins/phone-number/index.d.cts +9 -8
- package/dist/plugins/phone-number/index.d.mts +9 -8
- package/dist/plugins/phone-number/index.d.ts +9 -8
- package/dist/plugins/phone-number/index.mjs +9 -9
- package/dist/plugins/sso/index.cjs +3 -2
- package/dist/plugins/sso/index.d.cts +35 -34
- package/dist/plugins/sso/index.d.mts +35 -34
- package/dist/plugins/sso/index.d.ts +35 -34
- package/dist/plugins/sso/index.mjs +3 -2
- package/dist/plugins/two-factor/index.cjs +2 -2
- package/dist/plugins/two-factor/index.d.cts +14 -13
- package/dist/plugins/two-factor/index.d.mts +14 -13
- package/dist/plugins/two-factor/index.d.ts +14 -13
- package/dist/plugins/two-factor/index.mjs +2 -2
- package/dist/plugins/username/index.cjs +9 -9
- package/dist/plugins/username/index.d.cts +5 -4
- package/dist/plugins/username/index.d.mts +5 -4
- package/dist/plugins/username/index.d.ts +5 -4
- package/dist/plugins/username/index.mjs +9 -9
- package/dist/shared/{better-auth.Bzjh9zg_.d.ts → better-auth.BTuiucL9.d.ts} +4 -3
- package/dist/shared/{better-auth.CYegVoq1.d.cts → better-auth.Bi8FQwDD.d.cts} +1 -1
- package/dist/shared/{better-auth.CYegVoq1.d.mts → better-auth.Bi8FQwDD.d.mts} +1 -1
- package/dist/shared/{better-auth.CYegVoq1.d.ts → better-auth.Bi8FQwDD.d.ts} +1 -1
- package/dist/shared/{better-auth.BMyxOUuq.cjs → better-auth.BnnLmpgJ.cjs} +2 -1
- package/dist/shared/{better-auth.CQvoVIBD.mjs → better-auth.Buni1mmI.mjs} +14 -10
- package/dist/shared/{better-auth.CQcCOgHC.mjs → better-auth.BxnsZrT2.mjs} +30 -19
- package/dist/shared/{better-auth.B5gC5Szw.mjs → better-auth.C1U2eQvC.mjs} +1 -1
- package/dist/shared/{better-auth.Bt3Neoqa.d.mts → better-auth.C3XZ-VgJ.d.cts} +3 -3
- package/dist/shared/{better-auth.CsujSPu3.d.ts → better-auth.CFB3tRhe.d.ts} +3 -3
- package/dist/shared/{better-auth.DNzJK3VH.cjs → better-auth.CHER_2lV.cjs} +1 -1
- package/dist/shared/{better-auth.C_Zl7Etp.cjs → better-auth.Ck3n8bMC.cjs} +14 -10
- package/dist/shared/{better-auth.Cwb6DfVs.mjs → better-auth.Ckq_Q8UM.mjs} +2 -2
- package/dist/shared/{better-auth.jp32bTkx.d.ts → better-auth.CnWEHFr7.d.ts} +42 -102
- package/dist/shared/{better-auth.BgyblbhF.cjs → better-auth.CxJ_2fTW.cjs} +2 -2
- package/dist/shared/{better-auth.Dvh-YFwT.mjs → better-auth.D6-2nUlx.mjs} +138 -38
- package/dist/shared/{better-auth.Ch9yQZRY.cjs → better-auth.DBsHPrgZ.cjs} +30 -19
- package/dist/shared/{better-auth.Bdf76d5Z.mjs → better-auth.DCB35LVD.mjs} +2 -1
- package/dist/shared/{better-auth.CUQGT7zI.d.cts → better-auth.DGCyfEhG.d.ts} +1405 -517
- package/dist/shared/{better-auth.DxtzDaxH.cjs → better-auth.DGaseWvu.cjs} +138 -37
- package/dist/shared/{better-auth._rXvQlMG.d.cts → better-auth.DNEJbRnE.d.mts} +4 -3
- package/dist/shared/{better-auth.BV34uPij.cjs → better-auth.DOObHhnd.cjs} +1 -1
- package/dist/shared/{better-auth.BVyTlGJD.d.cts → better-auth.DlrGYDwK.d.cts} +42 -102
- package/dist/shared/{better-auth.B7NH8D_Q.d.ts → better-auth.Dqj-g-Up.d.mts} +1405 -517
- package/dist/shared/{better-auth.Cm5_Oaun.d.mts → better-auth.DrtmN2NE.d.mts} +42 -102
- package/dist/shared/{better-auth.FvRECEI1.mjs → better-auth.Dw8i6Dcb.mjs} +1 -1
- package/dist/shared/{better-auth.ZI2NxmSV.d.mts → better-auth.DwXCmEc7.d.cts} +1405 -517
- package/dist/shared/{better-auth.BTXFetzv.d.mts → better-auth.Dz9w_OUB.d.cts} +4 -3
- package/dist/shared/{better-auth.Bx-sj0KL.d.cts → better-auth.kagr8goH.d.mts} +3 -3
- package/dist/social-providers/index.cjs +13 -8
- package/dist/social-providers/index.d.cts +2 -2
- package/dist/social-providers/index.d.mts +2 -2
- package/dist/social-providers/index.d.ts +2 -2
- package/dist/social-providers/index.mjs +13 -8
- package/dist/types/index.d.cts +6 -5
- package/dist/types/index.d.mts +6 -5
- package/dist/types/index.d.ts +6 -5
- package/package.json +2 -2
- package/dist/shared/better-auth.B9518la0.d.mts +0 -344
- package/dist/shared/better-auth.BIYNWcaQ.d.cts +0 -344
- package/dist/shared/better-auth.BJfF6T3s.d.ts +0 -344
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<a href="https://better-auth.com"><strong>Learn more »</strong></a>
|
|
15
15
|
<br />
|
|
16
16
|
<br />
|
|
17
|
-
<a href="https://discord.
|
|
17
|
+
<a href="https://discord.gg/better-auth">Discord</a>
|
|
18
18
|
·
|
|
19
19
|
<a href="https://better-auth.com">Website</a>
|
|
20
20
|
·
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import
|
|
3
|
-
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DwXCmEc7.cjs';
|
|
2
|
+
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
3
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
6
5
|
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-call';
|
|
@@ -36,4 +35,5 @@ interface DrizzleAdapterConfig {
|
|
|
36
35
|
}
|
|
37
36
|
declare const drizzleAdapter: (db: DB, config: DrizzleAdapterConfig) => (options: BetterAuthOptions) => Adapter;
|
|
38
37
|
|
|
39
|
-
export {
|
|
38
|
+
export { drizzleAdapter };
|
|
39
|
+
export type { DB, DrizzleAdapterConfig };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import
|
|
3
|
-
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.Dqj-g-Up.mjs';
|
|
2
|
+
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
3
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
6
5
|
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-call';
|
|
@@ -36,4 +35,5 @@ interface DrizzleAdapterConfig {
|
|
|
36
35
|
}
|
|
37
36
|
declare const drizzleAdapter: (db: DB, config: DrizzleAdapterConfig) => (options: BetterAuthOptions) => Adapter;
|
|
38
37
|
|
|
39
|
-
export {
|
|
38
|
+
export { drizzleAdapter };
|
|
39
|
+
export type { DB, DrizzleAdapterConfig };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import
|
|
3
|
-
import '../../shared/better-auth.CYegVoq1.js';
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DGCyfEhG.js';
|
|
2
|
+
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
3
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.BTuiucL9.js';
|
|
6
5
|
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-call';
|
|
@@ -36,4 +35,5 @@ interface DrizzleAdapterConfig {
|
|
|
36
35
|
}
|
|
37
36
|
declare const drizzleAdapter: (db: DB, config: DrizzleAdapterConfig) => (options: BetterAuthOptions) => Adapter;
|
|
38
37
|
|
|
39
|
-
export {
|
|
38
|
+
export { drizzleAdapter };
|
|
39
|
+
export type { DB, DrizzleAdapterConfig };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import '../shared/better-auth.CYegVoq1.cjs';
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.DwXCmEc7.cjs';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.DwXCmEc7.cjs';
|
|
3
|
+
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
5
4
|
import 'zod';
|
|
6
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.Dz9w_OUB.cjs';
|
|
7
6
|
import 'jose';
|
|
8
7
|
import 'kysely';
|
|
9
8
|
import 'better-call';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import '../shared/better-auth.CYegVoq1.mjs';
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.Dqj-g-Up.mjs';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.Dqj-g-Up.mjs';
|
|
3
|
+
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
5
4
|
import 'zod';
|
|
6
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.DNEJbRnE.mjs';
|
|
7
6
|
import 'jose';
|
|
8
7
|
import 'kysely';
|
|
9
8
|
import 'better-call';
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import '../shared/better-auth.CYegVoq1.js';
|
|
1
|
+
import { b as AdapterConfig, C as CreateCustomAdapter, B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.DGCyfEhG.js';
|
|
2
|
+
export { A as AdapterDebugLogs, e as AdapterTestDebugLogs, d as CleanedWhere, c as CustomAdapter } from '../shared/better-auth.DGCyfEhG.js';
|
|
3
|
+
import '../shared/better-auth.Bi8FQwDD.js';
|
|
5
4
|
import 'zod';
|
|
6
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.BTuiucL9.js';
|
|
7
6
|
import 'jose';
|
|
8
7
|
import 'kysely';
|
|
9
8
|
import 'better-call';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as Adapter } from '../../shared/better-auth.
|
|
3
|
-
import
|
|
4
|
-
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.DwXCmEc7.cjs';
|
|
3
|
+
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
5
4
|
import 'zod';
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
7
6
|
import 'jose';
|
|
8
7
|
import 'better-call';
|
|
9
8
|
import 'better-sqlite3';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as Adapter } from '../../shared/better-auth.
|
|
3
|
-
import
|
|
4
|
-
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.Dqj-g-Up.mjs';
|
|
3
|
+
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
5
4
|
import 'zod';
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
7
6
|
import 'jose';
|
|
8
7
|
import 'better-call';
|
|
9
8
|
import 'better-sqlite3';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as Adapter } from '../../shared/better-auth.
|
|
3
|
-
import
|
|
4
|
-
import '../../shared/better-auth.CYegVoq1.js';
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, A as AdapterDebugLogs, a as Adapter } from '../../shared/better-auth.DGCyfEhG.js';
|
|
3
|
+
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
5
4
|
import 'zod';
|
|
6
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.BTuiucL9.js';
|
|
7
6
|
import 'jose';
|
|
8
7
|
import 'better-call';
|
|
9
8
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import
|
|
3
|
-
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DwXCmEc7.cjs';
|
|
2
|
+
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
3
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
6
5
|
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-call';
|
|
@@ -17,4 +16,5 @@ interface MemoryAdapterConfig {
|
|
|
17
16
|
}
|
|
18
17
|
declare const memoryAdapter: (db: MemoryDB, config?: MemoryAdapterConfig) => (options: BetterAuthOptions) => Adapter;
|
|
19
18
|
|
|
20
|
-
export {
|
|
19
|
+
export { memoryAdapter };
|
|
20
|
+
export type { MemoryAdapterConfig, MemoryDB };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import
|
|
3
|
-
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.Dqj-g-Up.mjs';
|
|
2
|
+
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
3
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
6
5
|
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-call';
|
|
@@ -17,4 +16,5 @@ interface MemoryAdapterConfig {
|
|
|
17
16
|
}
|
|
18
17
|
declare const memoryAdapter: (db: MemoryDB, config?: MemoryAdapterConfig) => (options: BetterAuthOptions) => Adapter;
|
|
19
18
|
|
|
20
|
-
export {
|
|
19
|
+
export { memoryAdapter };
|
|
20
|
+
export type { MemoryAdapterConfig, MemoryDB };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import
|
|
3
|
-
import '../../shared/better-auth.CYegVoq1.js';
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DGCyfEhG.js';
|
|
2
|
+
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
3
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.BTuiucL9.js';
|
|
6
5
|
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-call';
|
|
@@ -17,4 +16,5 @@ interface MemoryAdapterConfig {
|
|
|
17
16
|
}
|
|
18
17
|
declare const memoryAdapter: (db: MemoryDB, config?: MemoryAdapterConfig) => (options: BetterAuthOptions) => Adapter;
|
|
19
18
|
|
|
20
|
-
export {
|
|
19
|
+
export { memoryAdapter };
|
|
20
|
+
export type { MemoryAdapterConfig, MemoryDB };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
3
|
-
import '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.DwXCmEc7.cjs';
|
|
3
|
+
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
3
|
-
import '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.Dqj-g-Up.mjs';
|
|
3
|
+
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.
|
|
3
|
-
import '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, W as Where } from '../../shared/better-auth.DGCyfEhG.js';
|
|
3
|
+
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.BTuiucL9.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import
|
|
3
|
-
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DwXCmEc7.cjs';
|
|
2
|
+
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
3
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
6
5
|
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-call';
|
|
@@ -31,4 +30,5 @@ interface PrismaClient {
|
|
|
31
30
|
}
|
|
32
31
|
declare const prismaAdapter: (prisma: PrismaClient, config: PrismaConfig) => (options: BetterAuthOptions) => Adapter;
|
|
33
32
|
|
|
34
|
-
export {
|
|
33
|
+
export { prismaAdapter };
|
|
34
|
+
export type { PrismaConfig };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import
|
|
3
|
-
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.Dqj-g-Up.mjs';
|
|
2
|
+
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
3
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
6
5
|
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-call';
|
|
@@ -31,4 +30,5 @@ interface PrismaClient {
|
|
|
31
30
|
}
|
|
32
31
|
declare const prismaAdapter: (prisma: PrismaClient, config: PrismaConfig) => (options: BetterAuthOptions) => Adapter;
|
|
33
32
|
|
|
34
|
-
export {
|
|
33
|
+
export { prismaAdapter };
|
|
34
|
+
export type { PrismaConfig };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import
|
|
3
|
-
import '../../shared/better-auth.CYegVoq1.js';
|
|
1
|
+
import { A as AdapterDebugLogs, B as BetterAuthOptions, a as Adapter } from '../../shared/better-auth.DGCyfEhG.js';
|
|
2
|
+
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
3
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.BTuiucL9.js';
|
|
6
5
|
import 'jose';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-call';
|
|
@@ -31,4 +30,5 @@ interface PrismaClient {
|
|
|
31
30
|
}
|
|
32
31
|
declare const prismaAdapter: (prisma: PrismaClient, config: PrismaConfig) => (options: BetterAuthOptions) => Adapter;
|
|
33
32
|
|
|
34
|
-
export {
|
|
33
|
+
export { prismaAdapter };
|
|
34
|
+
export type { PrismaConfig };
|
package/dist/adapters/test.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.DwXCmEc7.cjs';
|
|
2
|
+
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../shared/better-auth.
|
|
4
|
+
import '../shared/better-auth.Dz9w_OUB.cjs';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-call';
|
package/dist/adapters/test.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.Dqj-g-Up.mjs';
|
|
2
|
+
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../shared/better-auth.
|
|
4
|
+
import '../shared/better-auth.DNEJbRnE.mjs';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-call';
|
package/dist/adapters/test.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BetterAuthOptions,
|
|
2
|
-
import '../shared/better-auth.
|
|
1
|
+
import { B as BetterAuthOptions, a as Adapter } from '../shared/better-auth.DGCyfEhG.js';
|
|
2
|
+
import '../shared/better-auth.Bi8FQwDD.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../shared/better-auth.
|
|
4
|
+
import '../shared/better-auth.BTuiucL9.js';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-call';
|
package/dist/api/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const account = require('../shared/better-auth.
|
|
4
|
+
const account = require('../shared/better-auth.DGaseWvu.cjs');
|
|
5
5
|
const zod = require('zod');
|
|
6
6
|
const cookies_index = require('../cookies/index.cjs');
|
|
7
7
|
const schema = require('../shared/better-auth.DcWKCjjf.cjs');
|
|
@@ -9,24 +9,24 @@ const env = require('../shared/better-auth.DiSjtgs9.cjs');
|
|
|
9
9
|
const logger = require('../shared/better-auth.GpOOav9x.cjs');
|
|
10
10
|
const getRequestIp = require('../shared/better-auth.B7cZ2juS.cjs');
|
|
11
11
|
const defu = require('defu');
|
|
12
|
-
require('
|
|
13
|
-
require('
|
|
14
|
-
require('jose');
|
|
15
|
-
require('../shared/better-auth.6XyKj7DG.cjs');
|
|
16
|
-
require('@better-auth/utils/base64');
|
|
17
|
-
require('../shared/better-auth.C1hdVENX.cjs');
|
|
12
|
+
require('@better-auth/utils/random');
|
|
13
|
+
require('../shared/better-auth.CWJ7qc0w.cjs');
|
|
18
14
|
require('@better-auth/utils/hash');
|
|
19
15
|
require('@noble/ciphers/chacha');
|
|
20
16
|
require('@noble/ciphers/utils');
|
|
21
17
|
require('@noble/ciphers/webcrypto');
|
|
18
|
+
require('@better-auth/utils/base64');
|
|
19
|
+
require('jose');
|
|
22
20
|
require('@noble/hashes/scrypt');
|
|
23
21
|
require('@better-auth/utils');
|
|
24
22
|
require('@better-auth/utils/hex');
|
|
25
23
|
require('@noble/hashes/utils');
|
|
26
24
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
27
|
-
require('
|
|
25
|
+
require('../social-providers/index.cjs');
|
|
26
|
+
require('@better-fetch/fetch');
|
|
27
|
+
require('../shared/better-auth.6XyKj7DG.cjs');
|
|
28
|
+
require('../shared/better-auth.C1hdVENX.cjs');
|
|
28
29
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
29
|
-
require('../shared/better-auth.CWJ7qc0w.cjs');
|
|
30
30
|
require('../shared/better-auth.D3mtHEZg.cjs');
|
|
31
31
|
require('../shared/better-auth.Bg6iw3ig.cjs');
|
|
32
32
|
require('@better-auth/utils/hmac');
|
|
@@ -702,7 +702,8 @@ function getEndpoints(ctx, options) {
|
|
|
702
702
|
deleteUserCallback: account.deleteUserCallback,
|
|
703
703
|
unlinkAccount: account.unlinkAccount,
|
|
704
704
|
refreshToken: account.refreshToken,
|
|
705
|
-
getAccessToken: account.getAccessToken
|
|
705
|
+
getAccessToken: account.getAccessToken,
|
|
706
|
+
accountInfo: account.accountInfo
|
|
706
707
|
};
|
|
707
708
|
const endpoints = {
|
|
708
709
|
...baseEndpoints,
|
|
@@ -710,6 +711,16 @@ function getEndpoints(ctx, options) {
|
|
|
710
711
|
ok: account.ok,
|
|
711
712
|
error: account.error
|
|
712
713
|
};
|
|
714
|
+
if (options.customPaths) {
|
|
715
|
+
Object.keys(endpoints).forEach((key) => {
|
|
716
|
+
const endpoint = endpoints[key];
|
|
717
|
+
if (endpoint && "path" in endpoint && typeof endpoint.path === "string" && options.customPaths?.[endpoint.path]) {
|
|
718
|
+
const original = endpoint.path;
|
|
719
|
+
const modified = options.customPaths[original];
|
|
720
|
+
endpoint.path = modified;
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
}
|
|
713
724
|
const api = toAuthEndpoints(endpoints, ctx);
|
|
714
725
|
return {
|
|
715
726
|
api,
|
|
@@ -796,6 +807,7 @@ const router = (ctx, options) => {
|
|
|
796
807
|
};
|
|
797
808
|
|
|
798
809
|
exports.APIError = betterCall.APIError;
|
|
810
|
+
exports.accountInfo = account.accountInfo;
|
|
799
811
|
exports.callbackOAuth = account.callbackOAuth;
|
|
800
812
|
exports.changeEmail = account.changeEmail;
|
|
801
813
|
exports.changePassword = account.changePassword;
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.Dz9w_OUB.cjs';
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bf as accountInfo, aL as callbackOAuth, b6 as changeEmail, b2 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, aZ as createEmailVerificationToken, b4 as deleteUser, b5 as deleteUserCallback, b7 as error, aW as forgetPassword, aX as forgetPasswordCallback, aQ as freshSessionMiddleware, bd as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bb as linkSocialAccount, aR as listSessions, ba as listUserAccounts, b8 as ok, o as optionsMiddleware, bh as originCheck, bg as originCheckMiddleware, be as refreshToken, aP as requestOnlySessionMiddleware, aY as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, a$ as sendVerificationEmail, a_ as sendVerificationEmailFn, aO as sessionMiddleware, b3 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, b9 as signUpEmail, bc as unlinkAccount, b1 as updateUser, b0 as verifyEmail } from '../shared/better-auth.DwXCmEc7.cjs';
|
|
2
3
|
export { APIError } from 'better-call';
|
|
3
|
-
|
|
4
|
+
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
5
|
import 'zod';
|
|
5
|
-
import '
|
|
6
|
+
import 'jose';
|
|
6
7
|
import 'kysely';
|
|
7
8
|
import 'better-sqlite3';
|
|
8
9
|
import 'bun:sqlite';
|
|
9
|
-
import 'jose';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.DNEJbRnE.mjs';
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bf as accountInfo, aL as callbackOAuth, b6 as changeEmail, b2 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, aZ as createEmailVerificationToken, b4 as deleteUser, b5 as deleteUserCallback, b7 as error, aW as forgetPassword, aX as forgetPasswordCallback, aQ as freshSessionMiddleware, bd as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bb as linkSocialAccount, aR as listSessions, ba as listUserAccounts, b8 as ok, o as optionsMiddleware, bh as originCheck, bg as originCheckMiddleware, be as refreshToken, aP as requestOnlySessionMiddleware, aY as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, a$ as sendVerificationEmail, a_ as sendVerificationEmailFn, aO as sessionMiddleware, b3 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, b9 as signUpEmail, bc as unlinkAccount, b1 as updateUser, b0 as verifyEmail } from '../shared/better-auth.Dqj-g-Up.mjs';
|
|
2
3
|
export { APIError } from 'better-call';
|
|
3
|
-
|
|
4
|
+
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
5
|
import 'zod';
|
|
5
|
-
import '
|
|
6
|
+
import 'jose';
|
|
6
7
|
import 'kysely';
|
|
7
8
|
import 'better-sqlite3';
|
|
8
9
|
import 'bun:sqlite';
|
|
9
|
-
import 'jose';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.BTuiucL9.js';
|
|
2
|
+
export { l as AuthEndpoint, m as AuthMiddleware, bf as accountInfo, aL as callbackOAuth, b6 as changeEmail, b2 as changePassword, k as createAuthEndpoint, j as createAuthMiddleware, aZ as createEmailVerificationToken, b4 as deleteUser, b5 as deleteUserCallback, b7 as error, aW as forgetPassword, aX as forgetPasswordCallback, aQ as freshSessionMiddleware, bd as getAccessToken, aH as getEndpoints, aM as getSession, aN as getSessionFromCtx, bb as linkSocialAccount, aR as listSessions, ba as listUserAccounts, b8 as ok, o as optionsMiddleware, bh as originCheck, bg as originCheckMiddleware, be as refreshToken, aP as requestOnlySessionMiddleware, aY as resetPassword, aU as revokeOtherSessions, aS as revokeSession, aT as revokeSessions, aI as router, a$ as sendVerificationEmail, a_ as sendVerificationEmailFn, aO as sessionMiddleware, b3 as setPassword, aK as signInEmail, aJ as signInSocial, aV as signOut, b9 as signUpEmail, bc as unlinkAccount, b1 as updateUser, b0 as verifyEmail } from '../shared/better-auth.DGCyfEhG.js';
|
|
2
3
|
export { APIError } from 'better-call';
|
|
3
|
-
|
|
4
|
+
import '../shared/better-auth.Bi8FQwDD.js';
|
|
4
5
|
import 'zod';
|
|
5
|
-
import '
|
|
6
|
+
import 'jose';
|
|
6
7
|
import 'kysely';
|
|
7
8
|
import 'better-sqlite3';
|
|
8
9
|
import 'bun:sqlite';
|
|
9
|
-
import 'jose';
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIError, toResponse, createRouter } from 'better-call';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, e as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, b as getSession, i as
|
|
4
|
-
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx,
|
|
3
|
+
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, e as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, b as getSession, i as error, j as ok, k as accountInfo, m as getAccessToken, r as refreshToken, n as unlinkAccount, p as deleteUserCallback, q as listUserAccounts, t as linkSocialAccount, v as revokeOtherSessions, x as revokeSessions, y as revokeSession, z as forgetPasswordCallback, A as deleteUser, C as setPassword, D as changePassword, E as changeEmail, F as sendVerificationEmail, G as verifyEmail, I as resetPassword, J as forgetPassword, K as signInEmail, L as signOut, M as callbackOAuth, N as signInSocial, O as originCheckMiddleware } from '../shared/better-auth.D6-2nUlx.mjs';
|
|
4
|
+
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, Q as optionsMiddleware, o as originCheck, P as requestOnlySessionMiddleware, d as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.D6-2nUlx.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { setSessionCookie } from '../cookies/index.mjs';
|
|
7
7
|
import { f as parseUserInput } from '../shared/better-auth.Cc72UxUH.mjs';
|
|
@@ -9,24 +9,24 @@ import { b as isDevelopment } from '../shared/better-auth.8zoxzg-F.mjs';
|
|
|
9
9
|
import { l as logger } from '../shared/better-auth.Cqykj82J.mjs';
|
|
10
10
|
import { g as getIp } from '../shared/better-auth.iKoUsdFE.mjs';
|
|
11
11
|
import defu from 'defu';
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
14
|
-
import 'jose';
|
|
15
|
-
import '../shared/better-auth.DufyW0qf.mjs';
|
|
16
|
-
import '@better-auth/utils/base64';
|
|
17
|
-
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
12
|
+
import '@better-auth/utils/random';
|
|
13
|
+
import '../shared/better-auth.dn8_oqOu.mjs';
|
|
18
14
|
import '@better-auth/utils/hash';
|
|
19
15
|
import '@noble/ciphers/chacha';
|
|
20
16
|
import '@noble/ciphers/utils';
|
|
21
17
|
import '@noble/ciphers/webcrypto';
|
|
18
|
+
import '@better-auth/utils/base64';
|
|
19
|
+
import 'jose';
|
|
22
20
|
import '@noble/hashes/scrypt';
|
|
23
21
|
import '@better-auth/utils';
|
|
24
22
|
import '@better-auth/utils/hex';
|
|
25
23
|
import '@noble/hashes/utils';
|
|
26
24
|
import '../shared/better-auth.B4Qoxdgc.mjs';
|
|
27
|
-
import '
|
|
25
|
+
import '../social-providers/index.mjs';
|
|
26
|
+
import '@better-fetch/fetch';
|
|
27
|
+
import '../shared/better-auth.DufyW0qf.mjs';
|
|
28
|
+
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
28
29
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
29
|
-
import '../shared/better-auth.dn8_oqOu.mjs';
|
|
30
30
|
import '../shared/better-auth.tB5eU6EY.mjs';
|
|
31
31
|
import '../shared/better-auth.BUPPRXfK.mjs';
|
|
32
32
|
import '@better-auth/utils/hmac';
|
|
@@ -698,7 +698,8 @@ function getEndpoints(ctx, options) {
|
|
|
698
698
|
deleteUserCallback,
|
|
699
699
|
unlinkAccount,
|
|
700
700
|
refreshToken,
|
|
701
|
-
getAccessToken
|
|
701
|
+
getAccessToken,
|
|
702
|
+
accountInfo
|
|
702
703
|
};
|
|
703
704
|
const endpoints = {
|
|
704
705
|
...baseEndpoints,
|
|
@@ -706,6 +707,16 @@ function getEndpoints(ctx, options) {
|
|
|
706
707
|
ok,
|
|
707
708
|
error
|
|
708
709
|
};
|
|
710
|
+
if (options.customPaths) {
|
|
711
|
+
Object.keys(endpoints).forEach((key) => {
|
|
712
|
+
const endpoint = endpoints[key];
|
|
713
|
+
if (endpoint && "path" in endpoint && typeof endpoint.path === "string" && options.customPaths?.[endpoint.path]) {
|
|
714
|
+
const original = endpoint.path;
|
|
715
|
+
const modified = options.customPaths[original];
|
|
716
|
+
endpoint.path = modified;
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
}
|
|
709
720
|
const api = toAuthEndpoints(endpoints, ctx);
|
|
710
721
|
return {
|
|
711
722
|
api,
|
|
@@ -791,4 +802,4 @@ const router = (ctx, options) => {
|
|
|
791
802
|
});
|
|
792
803
|
};
|
|
793
804
|
|
|
794
|
-
export { callbackOAuth, changeEmail, changePassword, createAuthEndpoint, createEmailVerificationToken, deleteUser, deleteUserCallback, error, forgetPassword, forgetPasswordCallback, getAccessToken, getEndpoints, getSession, linkSocialAccount, listSessions, listUserAccounts, ok, originCheckMiddleware, refreshToken, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail };
|
|
805
|
+
export { accountInfo, callbackOAuth, changeEmail, changePassword, createAuthEndpoint, createEmailVerificationToken, deleteUser, deleteUserCallback, error, forgetPassword, forgetPasswordCallback, getAccessToken, getEndpoints, getSession, linkSocialAccount, listSessions, listUserAccounts, ok, originCheckMiddleware, refreshToken, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail };
|
package/dist/client/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const proxy = require('../shared/better-auth.
|
|
3
|
+
const proxy = require('../shared/better-auth.DOObHhnd.cjs');
|
|
4
4
|
const misc = require('../shared/better-auth.BLDOwz3i.cjs');
|
|
5
|
-
const query = require('../shared/better-auth.
|
|
5
|
+
const query = require('../shared/better-auth.Ck3n8bMC.cjs');
|
|
6
6
|
require('@better-fetch/fetch');
|
|
7
7
|
require('../shared/better-auth.C-R0J0n1.cjs');
|
|
8
8
|
require('../shared/better-auth.DiSjtgs9.cjs');
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin } from '../shared/better-auth.DwXCmEc7.cjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
@@ -7,9 +7,9 @@ export { AtomListener, InferAdditionalFromClient, InferPluginsFromClient, InferS
|
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
10
|
-
import { U as UnionToIntersection,
|
|
10
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.Bi8FQwDD.cjs';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../shared/better-auth.
|
|
12
|
+
import '../shared/better-auth.Dz9w_OUB.cjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-call';
|
|
@@ -45,16 +45,16 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
45
45
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
46
46
|
};
|
|
47
47
|
})[];
|
|
48
|
-
|
|
48
|
+
cache?: RequestCache;
|
|
49
|
+
credentials?: RequestCredentials;
|
|
49
50
|
headers?: (HeadersInit & (HeadersInit | {
|
|
50
51
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
51
52
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
52
53
|
authorization: "Bearer" | "Basic";
|
|
53
54
|
})) | undefined;
|
|
54
|
-
cache?: RequestCache;
|
|
55
|
-
credentials?: RequestCredentials;
|
|
56
55
|
integrity?: string;
|
|
57
56
|
keepalive?: boolean;
|
|
57
|
+
method: string;
|
|
58
58
|
mode?: RequestMode;
|
|
59
59
|
priority?: RequestPriority;
|
|
60
60
|
redirect?: RequestRedirect;
|