better-auth 1.2.9-beta.1 → 1.2.9-beta.6
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 +3 -4
- package/dist/adapters/drizzle-adapter/index.d.mts +3 -4
- package/dist/adapters/drizzle-adapter/index.d.ts +3 -4
- 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 +3 -4
- package/dist/adapters/memory-adapter/index.d.mts +3 -4
- package/dist/adapters/memory-adapter/index.d.ts +3 -4
- 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 +3 -4
- package/dist/adapters/prisma-adapter/index.d.mts +3 -4
- package/dist/adapters/prisma-adapter/index.d.ts +3 -4
- 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 +3 -3
- package/dist/api/index.d.mts +3 -3
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.mjs +23 -12
- package/dist/client/index.cjs +2 -2
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.mjs +2 -2
- package/dist/client/plugins/index.cjs +1 -1
- package/dist/client/plugins/index.d.cts +4 -4
- package/dist/client/plugins/index.d.mts +4 -4
- package/dist/client/plugins/index.d.ts +4 -4
- package/dist/client/plugins/index.mjs +1 -1
- package/dist/client/react/index.cjs +2 -2
- package/dist/client/react/index.d.cts +3 -3
- package/dist/client/react/index.d.mts +3 -3
- package/dist/client/react/index.d.ts +3 -3
- package/dist/client/react/index.mjs +2 -2
- package/dist/client/solid/index.cjs +2 -2
- package/dist/client/solid/index.d.cts +3 -3
- package/dist/client/solid/index.d.mts +3 -3
- package/dist/client/solid/index.d.ts +3 -3
- package/dist/client/solid/index.mjs +2 -2
- package/dist/client/svelte/index.cjs +2 -2
- package/dist/client/svelte/index.d.cts +3 -3
- package/dist/client/svelte/index.d.mts +3 -3
- package/dist/client/svelte/index.d.ts +3 -3
- package/dist/client/svelte/index.mjs +2 -2
- package/dist/client/vue/index.cjs +2 -2
- package/dist/client/vue/index.d.cts +3 -3
- package/dist/client/vue/index.d.mts +3 -3
- package/dist/client/vue/index.d.ts +3 -3
- package/dist/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/db/index.cjs +1 -1
- package/dist/db/index.d.cts +4 -4
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.d.ts +4 -4
- 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 +6 -6
- package/dist/plugins/access/index.d.mts +6 -6
- package/dist/plugins/access/index.d.ts +6 -6
- package/dist/plugins/admin/access/index.d.cts +7 -7
- package/dist/plugins/admin/access/index.d.mts +7 -7
- package/dist/plugins/admin/access/index.d.ts +7 -7
- package/dist/plugins/admin/index.cjs +8 -8
- package/dist/plugins/admin/index.d.cts +7 -7
- package/dist/plugins/admin/index.d.mts +7 -7
- package/dist/plugins/admin/index.d.ts +7 -7
- package/dist/plugins/admin/index.mjs +8 -8
- package/dist/plugins/anonymous/index.cjs +9 -9
- package/dist/plugins/anonymous/index.d.cts +3 -3
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/anonymous/index.d.ts +3 -3
- 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 +3 -3
- package/dist/plugins/email-otp/index.d.mts +3 -3
- package/dist/plugins/email-otp/index.d.ts +3 -3
- 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 +3 -3
- package/dist/plugins/generic-oauth/index.d.mts +3 -3
- package/dist/plugins/generic-oauth/index.d.ts +3 -3
- package/dist/plugins/generic-oauth/index.mjs +3 -2
- package/dist/plugins/haveibeenpwned/index.cjs +6 -6
- package/dist/plugins/haveibeenpwned/index.d.cts +3 -3
- package/dist/plugins/haveibeenpwned/index.d.mts +3 -3
- package/dist/plugins/haveibeenpwned/index.d.ts +3 -3
- package/dist/plugins/haveibeenpwned/index.mjs +6 -6
- package/dist/plugins/index.cjs +5 -5
- package/dist/plugins/index.d.cts +5 -5
- package/dist/plugins/index.d.mts +5 -5
- package/dist/plugins/index.d.ts +5 -5
- package/dist/plugins/index.mjs +7 -7
- package/dist/plugins/jwt/index.cjs +6 -6
- package/dist/plugins/jwt/index.d.cts +3 -3
- package/dist/plugins/jwt/index.d.mts +3 -3
- package/dist/plugins/jwt/index.d.ts +3 -3
- 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 +3 -3
- package/dist/plugins/multi-session/index.d.mts +3 -3
- package/dist/plugins/multi-session/index.d.ts +3 -3
- 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 +3 -3
- package/dist/plugins/oauth-proxy/index.d.mts +3 -3
- package/dist/plugins/oauth-proxy/index.d.ts +3 -3
- 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 +5 -5
- package/dist/plugins/oidc-provider/index.d.mts +5 -5
- package/dist/plugins/oidc-provider/index.d.ts +5 -5
- package/dist/plugins/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 +3 -3
- package/dist/plugins/one-time-token/index.d.mts +3 -3
- package/dist/plugins/one-time-token/index.d.ts +3 -3
- 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 +3 -3
- package/dist/plugins/open-api/index.d.mts +3 -3
- package/dist/plugins/open-api/index.d.ts +3 -3
- 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 +3 -3
- package/dist/plugins/organization/index.d.mts +3 -3
- package/dist/plugins/organization/index.d.ts +3 -3
- package/dist/plugins/organization/index.mjs +8 -8
- package/dist/plugins/passkey/index.cjs +2 -2
- package/dist/plugins/passkey/index.d.cts +3 -3
- package/dist/plugins/passkey/index.d.mts +3 -3
- package/dist/plugins/passkey/index.d.ts +3 -3
- package/dist/plugins/passkey/index.mjs +2 -2
- package/dist/plugins/phone-number/index.cjs +8 -8
- package/dist/plugins/phone-number/index.d.cts +3 -3
- package/dist/plugins/phone-number/index.d.mts +3 -3
- package/dist/plugins/phone-number/index.d.ts +3 -3
- package/dist/plugins/phone-number/index.mjs +8 -8
- package/dist/plugins/sso/index.cjs +3 -2
- package/dist/plugins/sso/index.d.cts +3 -3
- package/dist/plugins/sso/index.d.mts +3 -3
- package/dist/plugins/sso/index.d.ts +3 -3
- package/dist/plugins/sso/index.mjs +3 -2
- package/dist/plugins/two-factor/index.cjs +2 -2
- package/dist/plugins/two-factor/index.d.cts +3 -3
- package/dist/plugins/two-factor/index.d.mts +3 -3
- package/dist/plugins/two-factor/index.d.ts +3 -3
- package/dist/plugins/two-factor/index.mjs +2 -2
- package/dist/plugins/username/index.cjs +9 -9
- package/dist/plugins/username/index.d.cts +3 -3
- package/dist/plugins/username/index.d.mts +3 -3
- package/dist/plugins/username/index.d.ts +3 -3
- package/dist/plugins/username/index.mjs +9 -9
- package/dist/shared/{better-auth.Cm5_Oaun.d.mts → better-auth.B0Qseyk5.d.mts} +1 -1
- package/dist/shared/{better-auth.jp32bTkx.d.ts → better-auth.B79sBZ5R.d.ts} +1 -1
- package/dist/shared/{better-auth.CsujSPu3.d.ts → better-auth.BFR46gjQ.d.ts} +1 -1
- package/dist/shared/{better-auth.Bt3Neoqa.d.mts → better-auth.BQP9roUV.d.mts} +1 -1
- package/dist/shared/{better-auth.Ch9yQZRY.cjs → better-auth.BWb7XZvT.cjs} +5 -5
- package/dist/shared/{better-auth.Bzjh9zg_.d.ts → better-auth.BgtukYVC.d.cts} +2 -2
- 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.B7NH8D_Q.d.ts → better-auth.BmjQ3Bjc.d.ts} +928 -41
- 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._rXvQlMG.d.cts → better-auth.ByC0y0O-.d.ts} +2 -2
- package/dist/shared/{better-auth.B5gC5Szw.mjs → better-auth.C1U2eQvC.mjs} +1 -1
- package/dist/shared/{better-auth.CQcCOgHC.mjs → better-auth.CDo1lsla.mjs} +5 -5
- package/dist/shared/{better-auth.DNzJK3VH.cjs → better-auth.CHER_2lV.cjs} +1 -1
- package/dist/shared/{better-auth.BTXFetzv.d.mts → better-auth.CggyDr6H.d.mts} +2 -2
- 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.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.Bdf76d5Z.mjs → better-auth.DCB35LVD.mjs} +2 -1
- package/dist/shared/{better-auth.DxtzDaxH.cjs → better-auth.DGaseWvu.cjs} +138 -37
- package/dist/shared/{better-auth.BV34uPij.cjs → better-auth.DOObHhnd.cjs} +1 -1
- package/dist/shared/{better-auth.Bx-sj0KL.d.cts → better-auth.DqE__YRm.d.cts} +1 -1
- package/dist/shared/{better-auth.FvRECEI1.mjs → better-auth.Dw8i6Dcb.mjs} +1 -1
- package/dist/shared/{better-auth.CUQGT7zI.d.cts → better-auth.c8uOsc8s.d.cts} +928 -41
- package/dist/shared/{better-auth.BVyTlGJD.d.cts → better-auth.pfMfSSjQ.d.cts} +1 -1
- package/dist/shared/{better-auth.ZI2NxmSV.d.mts → better-auth.yS_3d_FU.d.mts} +928 -41
- 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 +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/package.json +1 -1
- 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
|
@@ -4,14 +4,14 @@ import { AccessControl, Role, Statements } from '../../plugins/access/index.cjs'
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
6
6
|
import { organization, InferMember, InferInvitation, Team, Organization, Member, Invitation } from '../../plugins/organization/index.cjs';
|
|
7
|
-
import {
|
|
7
|
+
import { b as Prettify } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
8
8
|
import { username } from '../../plugins/username/index.cjs';
|
|
9
9
|
import { Passkey, passkey } from '../../plugins/passkey/index.cjs';
|
|
10
10
|
export { twoFactorClient } from '../../plugins/two-factor/index.cjs';
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.cjs';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.cjs';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.cjs';
|
|
14
|
-
import {
|
|
14
|
+
import { a1 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.c8uOsc8s.cjs';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.cjs';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.cjs';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.cjs';
|
|
@@ -20,13 +20,13 @@ import { emailOTP } from '../../plugins/email-otp/index.cjs';
|
|
|
20
20
|
import { Store } from '../../types/index.cjs';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.cjs';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.cjs';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.pfMfSSjQ.cjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
import 'zod';
|
|
27
27
|
import 'better-call';
|
|
28
28
|
import '../../plugins/organization/access/index.cjs';
|
|
29
|
-
import '../../shared/better-auth.
|
|
29
|
+
import '../../shared/better-auth.BgtukYVC.cjs';
|
|
30
30
|
import 'jose';
|
|
31
31
|
import 'kysely';
|
|
32
32
|
import 'better-sqlite3';
|
|
@@ -4,14 +4,14 @@ import { AccessControl, Role, Statements } from '../../plugins/access/index.mjs'
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
6
6
|
import { organization, InferMember, InferInvitation, Team, Organization, Member, Invitation } from '../../plugins/organization/index.mjs';
|
|
7
|
-
import {
|
|
7
|
+
import { b as Prettify } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
8
8
|
import { username } from '../../plugins/username/index.mjs';
|
|
9
9
|
import { Passkey, passkey } from '../../plugins/passkey/index.mjs';
|
|
10
10
|
export { twoFactorClient } from '../../plugins/two-factor/index.mjs';
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.mjs';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.mjs';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.mjs';
|
|
14
|
-
import {
|
|
14
|
+
import { a1 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.yS_3d_FU.mjs';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.mjs';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.mjs';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.mjs';
|
|
@@ -20,13 +20,13 @@ import { emailOTP } from '../../plugins/email-otp/index.mjs';
|
|
|
20
20
|
import { Store } from '../../types/index.mjs';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.mjs';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.mjs';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.B0Qseyk5.mjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
import 'zod';
|
|
27
27
|
import 'better-call';
|
|
28
28
|
import '../../plugins/organization/access/index.mjs';
|
|
29
|
-
import '../../shared/better-auth.
|
|
29
|
+
import '../../shared/better-auth.CggyDr6H.mjs';
|
|
30
30
|
import 'jose';
|
|
31
31
|
import 'kysely';
|
|
32
32
|
import 'better-sqlite3';
|
|
@@ -4,14 +4,14 @@ import { AccessControl, Role, Statements } from '../../plugins/access/index.js';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
6
6
|
import { organization, InferMember, InferInvitation, Team, Organization, Member, Invitation } from '../../plugins/organization/index.js';
|
|
7
|
-
import {
|
|
7
|
+
import { b as Prettify } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
8
8
|
import { username } from '../../plugins/username/index.js';
|
|
9
9
|
import { Passkey, passkey } from '../../plugins/passkey/index.js';
|
|
10
10
|
export { twoFactorClient } from '../../plugins/two-factor/index.js';
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.js';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.js';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.js';
|
|
14
|
-
import {
|
|
14
|
+
import { a1 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.BmjQ3Bjc.js';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.js';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.js';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.js';
|
|
@@ -20,13 +20,13 @@ import { emailOTP } from '../../plugins/email-otp/index.js';
|
|
|
20
20
|
import { Store } from '../../types/index.js';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.js';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.js';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.B79sBZ5R.js';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.js';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
import 'zod';
|
|
27
27
|
import 'better-call';
|
|
28
28
|
import '../../plugins/organization/access/index.js';
|
|
29
|
-
import '../../shared/better-auth.
|
|
29
|
+
import '../../shared/better-auth.ByC0y0O-.js';
|
|
30
30
|
import 'jose';
|
|
31
31
|
import 'kysely';
|
|
32
32
|
import 'better-sqlite3';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { atom } from 'nanostores';
|
|
2
2
|
import '@better-fetch/fetch';
|
|
3
3
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
4
|
-
import { u as useAuthQuery } from '../../shared/better-auth.
|
|
4
|
+
import { u as useAuthQuery } from '../../shared/better-auth.Buni1mmI.mjs';
|
|
5
5
|
import { ownerAc, memberAc, adminAc } from '../../plugins/organization/access/index.mjs';
|
|
6
6
|
import { h as hasPermission } from '../../shared/better-auth.OuYYTHC7.mjs';
|
|
7
7
|
import { startRegistration, WebAuthnError, startAuthentication } from '@simplewebauthn/browser';
|
|
@@ -1,13 +1,13 @@
|
|
|
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 nanostores = require('nanostores');
|
|
5
5
|
const react = require('react');
|
|
6
6
|
require('@better-fetch/fetch');
|
|
7
7
|
require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
8
8
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
9
9
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
10
|
-
require('../../shared/better-auth.
|
|
10
|
+
require('../../shared/better-auth.Ck3n8bMC.cjs');
|
|
11
11
|
require('../../shared/better-auth.DhsGZ30Q.cjs');
|
|
12
12
|
|
|
13
13
|
function useStore(store, options = {}) {
|
|
@@ -5,12 +5,12 @@ 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
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
8
|
-
import { U as UnionToIntersection,
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.c8uOsc8s.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.BgtukYVC.cjs';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
@@ -5,12 +5,12 @@ 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
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
8
|
-
import { U as UnionToIntersection,
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.yS_3d_FU.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.CggyDr6H.mjs';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
@@ -5,12 +5,12 @@ 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
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
8
|
-
import { U as UnionToIntersection,
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BmjQ3Bjc.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.ByC0y0O-.js';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
1
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.Dw8i6Dcb.mjs';
|
|
2
2
|
import { listenKeys } from 'nanostores';
|
|
3
3
|
import { useRef, useCallback, useSyncExternalStore } from 'react';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
5
5
|
import '../../shared/better-auth.VTXNLFMT.mjs';
|
|
6
6
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
7
7
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
8
|
-
import '../../shared/better-auth.
|
|
8
|
+
import '../../shared/better-auth.Buni1mmI.mjs';
|
|
9
9
|
import '../../shared/better-auth.ffWeg50w.mjs';
|
|
10
10
|
|
|
11
11
|
function useStore(store, options = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
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
5
|
const store = require('solid-js/store');
|
|
6
6
|
const solidJs = require('solid-js');
|
|
@@ -9,7 +9,7 @@ require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
|
9
9
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
10
10
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
11
11
|
require('nanostores');
|
|
12
|
-
require('../../shared/better-auth.
|
|
12
|
+
require('../../shared/better-auth.Ck3n8bMC.cjs');
|
|
13
13
|
require('../../shared/better-auth.DhsGZ30Q.cjs');
|
|
14
14
|
|
|
15
15
|
function useStore(store$1) {
|
|
@@ -3,12 +3,12 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
|
-
import { U as UnionToIntersection,
|
|
7
|
-
import {
|
|
6
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.c8uOsc8s.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
11
|
-
import '../../shared/better-auth.
|
|
11
|
+
import '../../shared/better-auth.BgtukYVC.cjs';
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
@@ -3,12 +3,12 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
|
-
import { U as UnionToIntersection,
|
|
7
|
-
import {
|
|
6
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.yS_3d_FU.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
11
|
-
import '../../shared/better-auth.
|
|
11
|
+
import '../../shared/better-auth.CggyDr6H.mjs';
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
@@ -3,12 +3,12 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
|
-
import { U as UnionToIntersection,
|
|
7
|
-
import {
|
|
6
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BmjQ3Bjc.js';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
11
|
-
import '../../shared/better-auth.
|
|
11
|
+
import '../../shared/better-auth.ByC0y0O-.js';
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
1
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.Dw8i6Dcb.mjs';
|
|
2
2
|
import { c as capitalizeFirstLetter } from '../../shared/better-auth.D-2CmEwz.mjs';
|
|
3
3
|
import { createStore, reconcile } from 'solid-js/store';
|
|
4
4
|
import { onCleanup } from 'solid-js';
|
|
@@ -7,7 +7,7 @@ import '../../shared/better-auth.VTXNLFMT.mjs';
|
|
|
7
7
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
8
8
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
9
9
|
import 'nanostores';
|
|
10
|
-
import '../../shared/better-auth.
|
|
10
|
+
import '../../shared/better-auth.Buni1mmI.mjs';
|
|
11
11
|
import '../../shared/better-auth.ffWeg50w.mjs';
|
|
12
12
|
|
|
13
13
|
function useStore(store) {
|
|
@@ -1,13 +1,13 @@
|
|
|
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
5
|
require('@better-fetch/fetch');
|
|
6
6
|
require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
7
7
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
8
8
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
9
9
|
require('nanostores');
|
|
10
|
-
require('../../shared/better-auth.
|
|
10
|
+
require('../../shared/better-auth.Ck3n8bMC.cjs');
|
|
11
11
|
require('../../shared/better-auth.DhsGZ30Q.cjs');
|
|
12
12
|
|
|
13
13
|
function createAuthClient(options) {
|
|
@@ -5,11 +5,11 @@ 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
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
8
|
-
import { U as UnionToIntersection,
|
|
9
|
-
import {
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.c8uOsc8s.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.BgtukYVC.cjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -5,11 +5,11 @@ 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
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
8
|
-
import { U as UnionToIntersection,
|
|
9
|
-
import {
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.yS_3d_FU.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.CggyDr6H.mjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -5,11 +5,11 @@ 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
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
8
|
-
import { U as UnionToIntersection,
|
|
9
|
-
import {
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BmjQ3Bjc.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.ByC0y0O-.js';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
1
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.Dw8i6Dcb.mjs';
|
|
2
2
|
import { c as capitalizeFirstLetter } from '../../shared/better-auth.D-2CmEwz.mjs';
|
|
3
3
|
import '@better-fetch/fetch';
|
|
4
4
|
import '../../shared/better-auth.VTXNLFMT.mjs';
|
|
5
5
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
6
6
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
7
7
|
import 'nanostores';
|
|
8
|
-
import '../../shared/better-auth.
|
|
8
|
+
import '../../shared/better-auth.Buni1mmI.mjs';
|
|
9
9
|
import '../../shared/better-auth.ffWeg50w.mjs';
|
|
10
10
|
|
|
11
11
|
function createAuthClient(options) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const vue = require('vue');
|
|
4
|
-
const proxy = require('../../shared/better-auth.
|
|
4
|
+
const proxy = require('../../shared/better-auth.DOObHhnd.cjs');
|
|
5
5
|
const misc = require('../../shared/better-auth.BLDOwz3i.cjs');
|
|
6
6
|
require('@better-fetch/fetch');
|
|
7
7
|
require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
8
8
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
9
9
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
10
10
|
require('nanostores');
|
|
11
|
-
require('../../shared/better-auth.
|
|
11
|
+
require('../../shared/better-auth.Ck3n8bMC.cjs');
|
|
12
12
|
require('../../shared/better-auth.DhsGZ30Q.cjs');
|
|
13
13
|
|
|
14
14
|
function registerStore(store) {
|
|
@@ -5,11 +5,11 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
5
5
|
export * from '@better-fetch/fetch';
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
8
|
-
import { U as UnionToIntersection,
|
|
9
|
-
import {
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.c8uOsc8s.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.BgtukYVC.cjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -5,11 +5,11 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
5
5
|
export * from '@better-fetch/fetch';
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
8
|
-
import { U as UnionToIntersection,
|
|
9
|
-
import {
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.yS_3d_FU.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.CggyDr6H.mjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -5,11 +5,11 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
5
5
|
export * from '@better-fetch/fetch';
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
8
|
-
import { U as UnionToIntersection,
|
|
9
|
-
import {
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BmjQ3Bjc.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.ByC0y0O-.js';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { shallowRef, getCurrentScope, onScopeDispose, readonly, getCurrentInstance } from 'vue';
|
|
2
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
2
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.Dw8i6Dcb.mjs';
|
|
3
3
|
import { c as capitalizeFirstLetter } from '../../shared/better-auth.D-2CmEwz.mjs';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
5
5
|
import '../../shared/better-auth.VTXNLFMT.mjs';
|
|
6
6
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
7
7
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
8
8
|
import 'nanostores';
|
|
9
|
-
import '../../shared/better-auth.
|
|
9
|
+
import '../../shared/better-auth.Buni1mmI.mjs';
|
|
10
10
|
import '../../shared/better-auth.ffWeg50w.mjs';
|
|
11
11
|
|
|
12
12
|
function registerStore(store) {
|
package/dist/cookies/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export {
|
|
3
|
-
import '../shared/better-auth.
|
|
2
|
+
export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.c8uOsc8s.cjs';
|
|
3
|
+
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.BgtukYVC.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
package/dist/cookies/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export {
|
|
3
|
-
import '../shared/better-auth.
|
|
2
|
+
export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.yS_3d_FU.mjs';
|
|
3
|
+
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.CggyDr6H.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
package/dist/cookies/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export {
|
|
3
|
-
import '../shared/better-auth.
|
|
2
|
+
export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.BmjQ3Bjc.js';
|
|
3
|
+
import '../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.ByC0y0O-.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
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.BnnLmpgJ.cjs');
|
|
4
4
|
const getTables = require('../shared/better-auth.BEphVDyL.cjs');
|
|
5
5
|
const zod = require('zod');
|
|
6
6
|
const schema = require('../shared/better-auth.DcWKCjjf.cjs');
|
package/dist/db/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, a1 as FieldAttribute, a2 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.c8uOsc8s.cjs';
|
|
2
|
+
export { ae as BetterAuthDbSchema, a5 as FieldAttributeConfig, ad as InferFieldsFromOptions, ac as InferFieldsFromPlugins, a9 as InferFieldsInput, aa as InferFieldsInputClient, a8 as InferFieldsOutput, a7 as InferValueType, a4 as InternalAdapter, ab as PluginFieldAttribute, ag as accountSchema, a6 as createFieldAttribute, a3 as createInternalAdapter, al as getAllFields, af as getAuthTables, au as mergeSchema, as as parseAccountInput, an as parseAccountOutput, ar as parseAdditionalUserInput, ap as parseInputData, ak as parseOutputData, at as parseSessionInput, ao as parseSessionOutput, aq as parseUserInput, am as parseUserOutput, ai as sessionSchema, ah as userSchema, aj as verificationSchema } from '../shared/better-auth.c8uOsc8s.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../shared/better-auth.
|
|
5
|
-
import '../shared/better-auth.
|
|
4
|
+
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
5
|
+
import '../shared/better-auth.BgtukYVC.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
package/dist/db/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, a1 as FieldAttribute, a2 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.yS_3d_FU.mjs';
|
|
2
|
+
export { ae as BetterAuthDbSchema, a5 as FieldAttributeConfig, ad as InferFieldsFromOptions, ac as InferFieldsFromPlugins, a9 as InferFieldsInput, aa as InferFieldsInputClient, a8 as InferFieldsOutput, a7 as InferValueType, a4 as InternalAdapter, ab as PluginFieldAttribute, ag as accountSchema, a6 as createFieldAttribute, a3 as createInternalAdapter, al as getAllFields, af as getAuthTables, au as mergeSchema, as as parseAccountInput, an as parseAccountOutput, ar as parseAdditionalUserInput, ap as parseInputData, ak as parseOutputData, at as parseSessionInput, ao as parseSessionOutput, aq as parseUserInput, am as parseUserOutput, ai as sessionSchema, ah as userSchema, aj as verificationSchema } from '../shared/better-auth.yS_3d_FU.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../shared/better-auth.
|
|
5
|
-
import '../shared/better-auth.
|
|
4
|
+
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
5
|
+
import '../shared/better-auth.CggyDr6H.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
package/dist/db/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, a1 as FieldAttribute, a2 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.BmjQ3Bjc.js';
|
|
2
|
+
export { ae as BetterAuthDbSchema, a5 as FieldAttributeConfig, ad as InferFieldsFromOptions, ac as InferFieldsFromPlugins, a9 as InferFieldsInput, aa as InferFieldsInputClient, a8 as InferFieldsOutput, a7 as InferValueType, a4 as InternalAdapter, ab as PluginFieldAttribute, ag as accountSchema, a6 as createFieldAttribute, a3 as createInternalAdapter, al as getAllFields, af as getAuthTables, au as mergeSchema, as as parseAccountInput, an as parseAccountOutput, ar as parseAdditionalUserInput, ap as parseInputData, ak as parseOutputData, at as parseSessionInput, ao as parseSessionOutput, aq as parseUserInput, am as parseUserOutput, ai as sessionSchema, ah as userSchema, aj as verificationSchema } from '../shared/better-auth.BmjQ3Bjc.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../shared/better-auth.
|
|
5
|
-
import '../shared/better-auth.
|
|
4
|
+
import '../shared/better-auth.Bi8FQwDD.js';
|
|
5
|
+
import '../shared/better-auth.ByC0y0O-.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
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.DCB35LVD.mjs';
|
|
2
2
|
export { g as getAuthTables } from '../shared/better-auth.DORkW_Ge.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export { a as accountSchema, g as getAllFields, m as mergeSchema, i as parseAccountInput, c as parseAccountOutput, h as parseAdditionalUserInput, e as parseInputData, p as parseOutputData, j as parseSessionInput, d as parseSessionOutput, f as parseUserInput, b as parseUserOutput, s as sessionSchema, u as userSchema, v as verificationSchema } from '../shared/better-auth.Cc72UxUH.mjs';
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const api_index = require('./api/index.cjs');
|
|
4
4
|
const defu = require('defu');
|
|
5
5
|
const password = require('./shared/better-auth.YUF6P-PB.cjs');
|
|
6
|
-
const getMigration = require('./shared/better-auth.
|
|
6
|
+
const getMigration = require('./shared/better-auth.BnnLmpgJ.cjs');
|
|
7
7
|
const getTables = require('./shared/better-auth.BEphVDyL.cjs');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('./shared/better-auth.DcWKCjjf.cjs');
|
|
@@ -23,7 +23,7 @@ const env = require('./shared/better-auth.DiSjtgs9.cjs');
|
|
|
23
23
|
const password$1 = require('./shared/better-auth.CDXNofOe.cjs');
|
|
24
24
|
const url = require('./shared/better-auth.C-R0J0n1.cjs');
|
|
25
25
|
const index = require('./shared/better-auth.ANpbi45u.cjs');
|
|
26
|
-
const account = require('./shared/better-auth.
|
|
26
|
+
const account = require('./shared/better-auth.DGaseWvu.cjs');
|
|
27
27
|
const misc = require('./shared/better-auth.BLDOwz3i.cjs');
|
|
28
28
|
const state = require('./shared/better-auth.CWJ7qc0w.cjs');
|
|
29
29
|
require('./shared/better-auth.B7cZ2juS.cjs');
|
|
@@ -162,7 +162,7 @@ function runPluginInit(ctx) {
|
|
|
162
162
|
const dbHooks = [];
|
|
163
163
|
for (const plugin of plugins) {
|
|
164
164
|
if (plugin.init) {
|
|
165
|
-
const result = plugin.init(
|
|
165
|
+
const result = plugin.init(context);
|
|
166
166
|
if (typeof result === "object") {
|
|
167
167
|
if (result.options) {
|
|
168
168
|
const { databaseHooks, ...restOpts } = result.options;
|
|
@@ -207,6 +207,11 @@ function getTrustedOrigins(options) {
|
|
|
207
207
|
if (envTrustedOrigins) {
|
|
208
208
|
trustedOrigins.push(...envTrustedOrigins.split(","));
|
|
209
209
|
}
|
|
210
|
+
if (trustedOrigins.filter((x) => !x).length) {
|
|
211
|
+
throw new index.BetterAuthError(
|
|
212
|
+
"A provided trusted origin is invalid, make sure your trusted origins list is properly defined."
|
|
213
|
+
);
|
|
214
|
+
}
|
|
210
215
|
return trustedOrigins;
|
|
211
216
|
}
|
|
212
217
|
|