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/dist/client/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin } from '../shared/better-auth.Dqj-g-Up.mjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
@@ -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.mjs';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../shared/better-auth.
|
|
12
|
+
import '../shared/better-auth.DNEJbRnE.mjs';
|
|
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;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin } from '../shared/better-auth.DGCyfEhG.js';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
@@ -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.js';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../shared/better-auth.
|
|
12
|
+
import '../shared/better-auth.BTuiucL9.js';
|
|
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;
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
export { u as useAuthQuery } from '../shared/better-auth.
|
|
3
|
+
export { u as useAuthQuery } from '../shared/better-auth.Buni1mmI.mjs';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
5
5
|
import '../shared/better-auth.VTXNLFMT.mjs';
|
|
6
6
|
import '../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const nanostores = require('nanostores');
|
|
4
4
|
require('@better-fetch/fetch');
|
|
5
5
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
6
|
-
const query = require('../../shared/better-auth.
|
|
6
|
+
const query = require('../../shared/better-auth.Ck3n8bMC.cjs');
|
|
7
7
|
const plugins_organization_access_index = require('../../plugins/organization/access/index.cjs');
|
|
8
8
|
const hasPermission = require('../../shared/better-auth.DSVbLSt7.cjs');
|
|
9
9
|
const browser = require('@simplewebauthn/browser');
|
|
@@ -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.DwXCmEc7.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,14 @@ 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.DlrGYDwK.cjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
|
+
export { global } from '@simplewebauthn/server';
|
|
26
27
|
import 'zod';
|
|
27
28
|
import 'better-call';
|
|
28
29
|
import '../../plugins/organization/access/index.cjs';
|
|
29
|
-
import '../../shared/better-auth.
|
|
30
|
+
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
30
31
|
import 'jose';
|
|
31
32
|
import 'kysely';
|
|
32
33
|
import 'better-sqlite3';
|
|
@@ -680,4 +681,5 @@ declare const oneTimeTokenClient: () => {
|
|
|
680
681
|
$InferServerPlugin: ReturnType<typeof oneTimeToken>;
|
|
681
682
|
};
|
|
682
683
|
|
|
683
|
-
export {
|
|
684
|
+
export { InferServerPlugin, adminClient, anonymousClient, apiKeyClient, customSessionClient, emailOTPClient, genericOAuthClient, getPasskeyActions, inferAdditionalFields, jwtClient, magicLinkClient, multiSessionClient, oidcClient, oneTapClient, oneTimeTokenClient, organizationClient, passkeyClient, phoneNumberClient, ssoClient, usernameClient };
|
|
685
|
+
export type { GoogleOneTapActionOptions, GoogleOneTapOptions };
|
|
@@ -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.Dqj-g-Up.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,14 @@ 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.DrtmN2NE.mjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
|
+
export { global } from '@simplewebauthn/server';
|
|
26
27
|
import 'zod';
|
|
27
28
|
import 'better-call';
|
|
28
29
|
import '../../plugins/organization/access/index.mjs';
|
|
29
|
-
import '../../shared/better-auth.
|
|
30
|
+
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
30
31
|
import 'jose';
|
|
31
32
|
import 'kysely';
|
|
32
33
|
import 'better-sqlite3';
|
|
@@ -680,4 +681,5 @@ declare const oneTimeTokenClient: () => {
|
|
|
680
681
|
$InferServerPlugin: ReturnType<typeof oneTimeToken>;
|
|
681
682
|
};
|
|
682
683
|
|
|
683
|
-
export {
|
|
684
|
+
export { InferServerPlugin, adminClient, anonymousClient, apiKeyClient, customSessionClient, emailOTPClient, genericOAuthClient, getPasskeyActions, inferAdditionalFields, jwtClient, magicLinkClient, multiSessionClient, oidcClient, oneTapClient, oneTimeTokenClient, organizationClient, passkeyClient, phoneNumberClient, ssoClient, usernameClient };
|
|
685
|
+
export type { GoogleOneTapActionOptions, GoogleOneTapOptions };
|
|
@@ -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.DGCyfEhG.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,14 @@ 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.CnWEHFr7.js';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.js';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
|
+
export { global } from '@simplewebauthn/server';
|
|
26
27
|
import 'zod';
|
|
27
28
|
import 'better-call';
|
|
28
29
|
import '../../plugins/organization/access/index.js';
|
|
29
|
-
import '../../shared/better-auth.
|
|
30
|
+
import '../../shared/better-auth.BTuiucL9.js';
|
|
30
31
|
import 'jose';
|
|
31
32
|
import 'kysely';
|
|
32
33
|
import 'better-sqlite3';
|
|
@@ -680,4 +681,5 @@ declare const oneTimeTokenClient: () => {
|
|
|
680
681
|
$InferServerPlugin: ReturnType<typeof oneTimeToken>;
|
|
681
682
|
};
|
|
682
683
|
|
|
683
|
-
export {
|
|
684
|
+
export { InferServerPlugin, adminClient, anonymousClient, apiKeyClient, customSessionClient, emailOTPClient, genericOAuthClient, getPasskeyActions, inferAdditionalFields, jwtClient, magicLinkClient, multiSessionClient, oidcClient, oneTapClient, oneTimeTokenClient, organizationClient, passkeyClient, phoneNumberClient, ssoClient, usernameClient };
|
|
685
|
+
export type { GoogleOneTapActionOptions, GoogleOneTapOptions };
|
|
@@ -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.DwXCmEc7.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
66
66
|
data: InferClientAPI<Option> extends {
|
|
67
67
|
getSession: () => Promise<infer Res>;
|
|
68
68
|
} ? Res extends {
|
|
69
|
+
data: infer S;
|
|
70
|
+
error: null;
|
|
71
|
+
} | {
|
|
69
72
|
data: null;
|
|
70
73
|
error: {
|
|
71
74
|
message?: string | undefined;
|
|
72
75
|
status: number;
|
|
73
76
|
statusText: string;
|
|
74
77
|
};
|
|
75
|
-
} | {
|
|
76
|
-
data: infer S;
|
|
77
|
-
error: null;
|
|
78
78
|
} ? S : Res : never;
|
|
79
79
|
isPending: boolean;
|
|
80
80
|
error: BetterFetchError | null;
|
|
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
84
84
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
85
85
|
getSession: () => Promise<infer Res>;
|
|
86
86
|
} ? Res extends {
|
|
87
|
+
data: infer S;
|
|
88
|
+
error: null;
|
|
89
|
+
} | {
|
|
87
90
|
data: null;
|
|
88
91
|
error: {
|
|
89
92
|
message?: string | undefined;
|
|
90
93
|
status: number;
|
|
91
94
|
statusText: string;
|
|
92
95
|
};
|
|
93
|
-
} | {
|
|
94
|
-
data: infer S;
|
|
95
|
-
error: null;
|
|
96
96
|
} ? S : Res : never>;
|
|
97
97
|
};
|
|
98
98
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -103,6 +103,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
103
103
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
104
104
|
};
|
|
105
105
|
})[];
|
|
106
|
+
redirect?: RequestRedirect;
|
|
107
|
+
method: string;
|
|
106
108
|
headers?: (HeadersInit & (HeadersInit | {
|
|
107
109
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
108
110
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -112,10 +114,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
112
114
|
credentials?: RequestCredentials;
|
|
113
115
|
integrity?: string;
|
|
114
116
|
keepalive?: boolean;
|
|
115
|
-
method: string;
|
|
116
117
|
mode?: RequestMode;
|
|
117
118
|
priority?: RequestPriority;
|
|
118
|
-
redirect?: RequestRedirect;
|
|
119
119
|
referrer?: string;
|
|
120
120
|
referrerPolicy?: ReferrerPolicy;
|
|
121
121
|
signal?: AbortSignal | null;
|
|
@@ -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.Dqj-g-Up.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
66
66
|
data: InferClientAPI<Option> extends {
|
|
67
67
|
getSession: () => Promise<infer Res>;
|
|
68
68
|
} ? Res extends {
|
|
69
|
+
data: infer S;
|
|
70
|
+
error: null;
|
|
71
|
+
} | {
|
|
69
72
|
data: null;
|
|
70
73
|
error: {
|
|
71
74
|
message?: string | undefined;
|
|
72
75
|
status: number;
|
|
73
76
|
statusText: string;
|
|
74
77
|
};
|
|
75
|
-
} | {
|
|
76
|
-
data: infer S;
|
|
77
|
-
error: null;
|
|
78
78
|
} ? S : Res : never;
|
|
79
79
|
isPending: boolean;
|
|
80
80
|
error: BetterFetchError | null;
|
|
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
84
84
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
85
85
|
getSession: () => Promise<infer Res>;
|
|
86
86
|
} ? Res extends {
|
|
87
|
+
data: infer S;
|
|
88
|
+
error: null;
|
|
89
|
+
} | {
|
|
87
90
|
data: null;
|
|
88
91
|
error: {
|
|
89
92
|
message?: string | undefined;
|
|
90
93
|
status: number;
|
|
91
94
|
statusText: string;
|
|
92
95
|
};
|
|
93
|
-
} | {
|
|
94
|
-
data: infer S;
|
|
95
|
-
error: null;
|
|
96
96
|
} ? S : Res : never>;
|
|
97
97
|
};
|
|
98
98
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -103,6 +103,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
103
103
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
104
104
|
};
|
|
105
105
|
})[];
|
|
106
|
+
redirect?: RequestRedirect;
|
|
107
|
+
method: string;
|
|
106
108
|
headers?: (HeadersInit & (HeadersInit | {
|
|
107
109
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
108
110
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -112,10 +114,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
112
114
|
credentials?: RequestCredentials;
|
|
113
115
|
integrity?: string;
|
|
114
116
|
keepalive?: boolean;
|
|
115
|
-
method: string;
|
|
116
117
|
mode?: RequestMode;
|
|
117
118
|
priority?: RequestPriority;
|
|
118
|
-
redirect?: RequestRedirect;
|
|
119
119
|
referrer?: string;
|
|
120
120
|
referrerPolicy?: ReferrerPolicy;
|
|
121
121
|
signal?: AbortSignal | null;
|
|
@@ -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.DGCyfEhG.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.BTuiucL9.js';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
66
66
|
data: InferClientAPI<Option> extends {
|
|
67
67
|
getSession: () => Promise<infer Res>;
|
|
68
68
|
} ? Res extends {
|
|
69
|
+
data: infer S;
|
|
70
|
+
error: null;
|
|
71
|
+
} | {
|
|
69
72
|
data: null;
|
|
70
73
|
error: {
|
|
71
74
|
message?: string | undefined;
|
|
72
75
|
status: number;
|
|
73
76
|
statusText: string;
|
|
74
77
|
};
|
|
75
|
-
} | {
|
|
76
|
-
data: infer S;
|
|
77
|
-
error: null;
|
|
78
78
|
} ? S : Res : never;
|
|
79
79
|
isPending: boolean;
|
|
80
80
|
error: BetterFetchError | null;
|
|
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
84
84
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
85
85
|
getSession: () => Promise<infer Res>;
|
|
86
86
|
} ? Res extends {
|
|
87
|
+
data: infer S;
|
|
88
|
+
error: null;
|
|
89
|
+
} | {
|
|
87
90
|
data: null;
|
|
88
91
|
error: {
|
|
89
92
|
message?: string | undefined;
|
|
90
93
|
status: number;
|
|
91
94
|
statusText: string;
|
|
92
95
|
};
|
|
93
|
-
} | {
|
|
94
|
-
data: infer S;
|
|
95
|
-
error: null;
|
|
96
96
|
} ? S : Res : never>;
|
|
97
97
|
};
|
|
98
98
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -103,6 +103,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
103
103
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
104
104
|
};
|
|
105
105
|
})[];
|
|
106
|
+
redirect?: RequestRedirect;
|
|
107
|
+
method: string;
|
|
106
108
|
headers?: (HeadersInit & (HeadersInit | {
|
|
107
109
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
108
110
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -112,10 +114,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
112
114
|
credentials?: RequestCredentials;
|
|
113
115
|
integrity?: string;
|
|
114
116
|
keepalive?: boolean;
|
|
115
|
-
method: string;
|
|
116
117
|
mode?: RequestMode;
|
|
117
118
|
priority?: RequestPriority;
|
|
118
|
-
redirect?: RequestRedirect;
|
|
119
119
|
referrer?: string;
|
|
120
120
|
referrerPolicy?: ReferrerPolicy;
|
|
121
121
|
signal?: AbortSignal | null;
|
|
@@ -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.DwXCmEc7.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.Dz9w_OUB.cjs';
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
@@ -59,6 +59,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
59
59
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
60
60
|
};
|
|
61
61
|
})[];
|
|
62
|
+
redirect?: RequestRedirect;
|
|
63
|
+
method: string;
|
|
62
64
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
65
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
66
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -68,10 +70,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
68
70
|
credentials?: RequestCredentials;
|
|
69
71
|
integrity?: string;
|
|
70
72
|
keepalive?: boolean;
|
|
71
|
-
method: string;
|
|
72
73
|
mode?: RequestMode;
|
|
73
74
|
priority?: RequestPriority;
|
|
74
|
-
redirect?: RequestRedirect;
|
|
75
75
|
referrer?: string;
|
|
76
76
|
referrerPolicy?: ReferrerPolicy;
|
|
77
77
|
signal?: AbortSignal | null;
|
|
@@ -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.Dqj-g-Up.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.DNEJbRnE.mjs';
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
@@ -59,6 +59,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
59
59
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
60
60
|
};
|
|
61
61
|
})[];
|
|
62
|
+
redirect?: RequestRedirect;
|
|
63
|
+
method: string;
|
|
62
64
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
65
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
66
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -68,10 +70,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
68
70
|
credentials?: RequestCredentials;
|
|
69
71
|
integrity?: string;
|
|
70
72
|
keepalive?: boolean;
|
|
71
|
-
method: string;
|
|
72
73
|
mode?: RequestMode;
|
|
73
74
|
priority?: RequestPriority;
|
|
74
|
-
redirect?: RequestRedirect;
|
|
75
75
|
referrer?: string;
|
|
76
76
|
referrerPolicy?: ReferrerPolicy;
|
|
77
77
|
signal?: AbortSignal | null;
|
|
@@ -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.DGCyfEhG.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.BTuiucL9.js';
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
@@ -59,6 +59,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
59
59
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
60
60
|
};
|
|
61
61
|
})[];
|
|
62
|
+
redirect?: RequestRedirect;
|
|
63
|
+
method: string;
|
|
62
64
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
65
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
66
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -68,10 +70,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
68
70
|
credentials?: RequestCredentials;
|
|
69
71
|
integrity?: string;
|
|
70
72
|
keepalive?: boolean;
|
|
71
|
-
method: string;
|
|
72
73
|
mode?: RequestMode;
|
|
73
74
|
priority?: RequestPriority;
|
|
74
|
-
redirect?: RequestRedirect;
|
|
75
75
|
referrer?: string;
|
|
76
76
|
referrerPolicy?: ReferrerPolicy;
|
|
77
77
|
signal?: AbortSignal | null;
|
|
@@ -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) {
|