better-auth 1.4.0-beta.3 → 1.4.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle-adapter/index.d.cts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.ts +1 -1
- package/dist/adapters/index.d.cts +2 -2
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.d.ts +2 -2
- package/dist/adapters/kysely-adapter/index.d.cts +1 -1
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.d.ts +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.d.ts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
- package/dist/adapters/prisma-adapter/index.d.cts +1 -1
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.d.ts +1 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api/index.cjs +7 -6
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.mjs +9 -8
- package/dist/client/index.cjs +3 -3
- 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 +3 -3
- package/dist/client/plugins/index.d.cts +3 -3
- package/dist/client/plugins/index.d.mts +3 -3
- package/dist/client/plugins/index.d.ts +3 -3
- package/dist/client/react/index.cjs +2 -2
- package/dist/client/react/index.d.cts +9 -9
- package/dist/client/react/index.d.mts +9 -9
- package/dist/client/react/index.d.ts +9 -9
- package/dist/client/react/index.mjs +2 -2
- package/dist/client/solid/index.cjs +2 -2
- package/dist/client/solid/index.d.cts +9 -9
- package/dist/client/solid/index.d.mts +9 -9
- package/dist/client/solid/index.d.ts +9 -9
- 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 +3 -3
- 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 +3 -3
- package/dist/cookies/index.cjs +2 -2
- package/dist/cookies/index.d.cts +1 -1
- package/dist/cookies/index.d.mts +1 -1
- package/dist/cookies/index.d.ts +1 -1
- package/dist/cookies/index.mjs +2 -2
- package/dist/db/index.cjs +1 -1
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.mjs +1 -1
- package/dist/index.cjs +7 -6
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.mjs +7 -6
- package/dist/integrations/next-js.cjs +6 -5
- package/dist/integrations/next-js.d.cts +1 -1
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/next-js.d.ts +1 -1
- package/dist/integrations/next-js.mjs +6 -5
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/react-start.cjs +6 -5
- package/dist/integrations/react-start.d.cts +1 -1
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/react-start.d.ts +1 -1
- package/dist/integrations/react-start.mjs +6 -5
- package/dist/integrations/svelte-kit.cjs +5 -4
- package/dist/integrations/svelte-kit.d.cts +1 -1
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.ts +1 -1
- package/dist/integrations/svelte-kit.mjs +5 -4
- package/dist/oauth2/index.cjs +5 -4
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/oauth2/index.mjs +5 -4
- package/dist/plugins/admin/index.cjs +6 -5
- package/dist/plugins/admin/index.d.cts +7 -6
- package/dist/plugins/admin/index.d.mts +7 -6
- package/dist/plugins/admin/index.d.ts +7 -6
- package/dist/plugins/admin/index.mjs +6 -5
- package/dist/plugins/anonymous/index.cjs +5 -4
- package/dist/plugins/anonymous/index.d.cts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.ts +1 -1
- package/dist/plugins/anonymous/index.mjs +5 -4
- package/dist/plugins/bearer/index.cjs +5 -4
- package/dist/plugins/bearer/index.d.cts +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.ts +1 -1
- package/dist/plugins/bearer/index.mjs +5 -4
- package/dist/plugins/captcha/index.cjs +5 -4
- package/dist/plugins/captcha/index.d.cts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.ts +1 -1
- package/dist/plugins/captcha/index.mjs +5 -4
- package/dist/plugins/custom-session/index.cjs +11 -8
- package/dist/plugins/custom-session/index.d.cts +1 -1
- package/dist/plugins/custom-session/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.mjs +11 -8
- package/dist/plugins/device-authorization/index.cjs +52 -19
- package/dist/plugins/device-authorization/index.d.cts +1 -1
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/device-authorization/index.d.ts +1 -1
- package/dist/plugins/device-authorization/index.mjs +52 -19
- package/dist/plugins/email-otp/index.cjs +62 -21
- package/dist/plugins/email-otp/index.d.cts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.ts +1 -1
- package/dist/plugins/email-otp/index.mjs +62 -21
- package/dist/plugins/generic-oauth/index.cjs +44 -25
- package/dist/plugins/generic-oauth/index.d.cts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.ts +1 -1
- package/dist/plugins/generic-oauth/index.mjs +44 -25
- package/dist/plugins/haveibeenpwned/index.cjs +5 -4
- package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
- package/dist/plugins/haveibeenpwned/index.mjs +5 -4
- package/dist/plugins/index.cjs +11 -10
- package/dist/plugins/index.d.cts +6 -6
- package/dist/plugins/index.d.mts +6 -6
- package/dist/plugins/index.d.ts +6 -6
- package/dist/plugins/index.mjs +13 -12
- package/dist/plugins/jwt/index.cjs +5 -4
- package/dist/plugins/jwt/index.d.cts +1 -1
- package/dist/plugins/jwt/index.d.mts +1 -1
- package/dist/plugins/jwt/index.d.ts +1 -1
- package/dist/plugins/jwt/index.mjs +5 -4
- package/dist/plugins/magic-link/index.cjs +32 -21
- package/dist/plugins/magic-link/index.mjs +32 -21
- package/dist/plugins/multi-session/index.cjs +11 -6
- package/dist/plugins/multi-session/index.d.cts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.ts +1 -1
- package/dist/plugins/multi-session/index.mjs +11 -6
- package/dist/plugins/oauth-proxy/index.cjs +11 -6
- package/dist/plugins/oauth-proxy/index.d.cts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.ts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +11 -6
- package/dist/plugins/oidc-provider/index.cjs +6 -5
- 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 +6 -5
- package/dist/plugins/one-tap/index.cjs +8 -7
- package/dist/plugins/one-tap/index.mjs +8 -7
- package/dist/plugins/one-time-token/index.cjs +7 -6
- package/dist/plugins/one-time-token/index.d.cts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.ts +1 -1
- package/dist/plugins/one-time-token/index.mjs +7 -6
- package/dist/plugins/open-api/index.cjs +5 -4
- package/dist/plugins/open-api/index.d.cts +1 -1
- package/dist/plugins/open-api/index.d.mts +1 -1
- package/dist/plugins/open-api/index.d.ts +1 -1
- package/dist/plugins/open-api/index.mjs +5 -4
- package/dist/plugins/organization/index.cjs +7 -6
- package/dist/plugins/organization/index.d.cts +9 -9
- package/dist/plugins/organization/index.d.mts +9 -9
- package/dist/plugins/organization/index.d.ts +9 -9
- package/dist/plugins/organization/index.mjs +7 -6
- package/dist/plugins/passkey/index.cjs +17 -12
- package/dist/plugins/passkey/index.d.cts +1 -1
- package/dist/plugins/passkey/index.d.mts +1 -1
- package/dist/plugins/passkey/index.d.ts +1 -1
- package/dist/plugins/passkey/index.mjs +17 -12
- package/dist/plugins/phone-number/index.cjs +41 -24
- package/dist/plugins/phone-number/index.d.cts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.ts +1 -1
- package/dist/plugins/phone-number/index.mjs +41 -24
- package/dist/plugins/siwe/index.cjs +5 -4
- package/dist/plugins/siwe/index.d.cts +1 -1
- package/dist/plugins/siwe/index.d.mts +1 -1
- package/dist/plugins/siwe/index.d.ts +1 -1
- package/dist/plugins/siwe/index.mjs +5 -4
- package/dist/plugins/sso/index.cjs +89 -62
- 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 +89 -62
- package/dist/plugins/two-factor/index.cjs +50 -19
- package/dist/plugins/two-factor/index.d.cts +1 -1
- package/dist/plugins/two-factor/index.d.mts +1 -1
- package/dist/plugins/two-factor/index.d.ts +1 -1
- package/dist/plugins/two-factor/index.mjs +50 -19
- package/dist/plugins/username/index.cjs +18 -11
- package/dist/plugins/username/index.d.cts +19 -19
- package/dist/plugins/username/index.d.mts +19 -19
- package/dist/plugins/username/index.d.ts +19 -19
- package/dist/plugins/username/index.mjs +18 -11
- package/dist/shared/{better-auth.CuyhlHls.cjs → better-auth.1iHKsGdY.cjs} +2 -2
- package/dist/shared/{better-auth.DyZUF2_t.d.ts → better-auth.3es9ZU_K.d.ts} +36 -37
- package/dist/shared/{better-auth.COdnr6eY.cjs → better-auth.B2Bmtu6f.cjs} +83 -47
- package/dist/shared/{better-auth.T3Ux10v9.mjs → better-auth.BAPVOPl3.mjs} +3 -3
- package/dist/shared/{better-auth.DxV4YGX3.mjs → better-auth.BAQSo96z.mjs} +6 -4
- package/dist/shared/{better-auth.cXemjp2M.mjs → better-auth.BHwIy11H.mjs} +83 -47
- package/dist/shared/{better-auth.B1Za4fb4.d.cts → better-auth.BLDIAFp8.d.cts} +5 -5
- package/dist/shared/{better-auth.DHiuXI9L.d.cts → better-auth.BOKSn3AP.d.cts} +36 -37
- package/dist/shared/{better-auth.ZC_QEMLv.d.cts → better-auth.BW0VS3vZ.d.cts} +1 -1
- package/dist/shared/{better-auth.DXd8qaHd.mjs → better-auth.Bc2H_kPB.mjs} +54 -28
- package/dist/shared/{better-auth.DhQzyejE.mjs → better-auth.BoY6Vo7c.mjs} +1 -1
- package/dist/shared/{better-auth.D1jaLDAW.mjs → better-auth.C-9OPnjJ.mjs} +151 -71
- package/dist/shared/{better-auth.A_lT_4ey.cjs → better-auth.C0WkvM-b.cjs} +151 -71
- package/dist/shared/{better-auth.iE8wqp5_.cjs → better-auth.C2xLgiCv.cjs} +1 -1
- package/dist/shared/{better-auth.Cdkx1UlR.cjs → better-auth.C4gSFtQb.cjs} +54 -28
- package/dist/shared/{better-auth.D3u5pPGf.d.ts → better-auth.CAc8m5ps.d.ts} +1 -1
- package/dist/shared/{better-auth.BUqsHDoX.d.ts → better-auth.CBpfh9gd.d.ts} +1 -1
- package/dist/shared/{better-auth.BUmFH1YH.d.mts → better-auth.CHakYG_s.d.mts} +5 -5
- package/dist/shared/{better-auth.Co88PbP3.mjs → better-auth.CIqzVuC5.mjs} +15 -9
- package/dist/shared/{better-auth.DL28hkwE.mjs → better-auth.CJk6lu9H.mjs} +5 -5
- package/dist/shared/{better-auth.wBgaxGEw.cjs → better-auth.CWoe8tep.cjs} +15 -9
- package/dist/shared/{better-auth.TQtfFmwt.mjs → better-auth.Cs4ObP2J.mjs} +246 -139
- package/dist/shared/{better-auth.BftmE2f4.mjs → better-auth.Cw2Wb5xl.mjs} +2 -2
- package/dist/shared/{better-auth.BTmQo2-r.mjs → better-auth.CyhdLtgz.mjs} +122 -54
- package/dist/shared/{better-auth.Cn3gHKIq.d.ts → better-auth.D1mfnXw8.d.ts} +5 -5
- package/dist/shared/better-auth.D2xndZ2p.mjs +5 -0
- package/dist/shared/{better-auth.LBYUF6qL.d.mts → better-auth.D63GoHoT.d.mts} +1 -1
- package/dist/shared/{better-auth.DrO1u8u7.cjs → better-auth.DVpUemsq.cjs} +49 -10
- package/dist/shared/{better-auth.CYRK2rir.cjs → better-auth.DcLnIy5M.cjs} +122 -54
- package/dist/shared/{better-auth.B-RhOtHf.cjs → better-auth.Df7v65t4.cjs} +3 -3
- package/dist/shared/{better-auth.g25nv4YL.mjs → better-auth.DpE8ZxDZ.mjs} +49 -10
- package/dist/shared/{better-auth.8am3GyvS.d.cts → better-auth.DqouI_5s.d.cts} +1 -1
- package/dist/shared/{better-auth.DRmln2Nr.cjs → better-auth.DxBcELEX.cjs} +6 -4
- package/dist/shared/{better-auth.BSU7i7gN.cjs → better-auth.Fhb5xDFB.cjs} +5 -5
- package/dist/shared/{better-auth.CNhgW39t.cjs → better-auth.W6wY8Xk1.cjs} +246 -139
- package/dist/shared/{better-auth.DIfV2UBl.cjs → better-auth.oHfRlmfe.cjs} +1 -1
- package/dist/shared/{better-auth.C3bLnul-.mjs → better-auth.pyHheoY8.mjs} +1 -1
- package/dist/shared/better-auth.uykCWCYS.cjs +7 -0
- package/dist/shared/{better-auth.DQBMcFsm.d.mts → better-auth.vNMd9aBC.d.mts} +36 -37
- package/dist/shared/{better-auth.BC_XVl81.d.mts → better-auth.x83uJ-Ru.d.mts} +1 -1
- package/dist/social-providers/index.cjs +5 -4
- package/dist/social-providers/index.mjs +5 -4
- package/dist/test-utils/index.cjs +10 -9
- package/dist/test-utils/index.d.cts +59 -57
- package/dist/test-utils/index.d.mts +59 -57
- package/dist/test-utils/index.d.ts +59 -57
- package/dist/test-utils/index.mjs +10 -9
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +3 -2
|
@@ -4,10 +4,10 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.CAc8m5ps.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.3es9ZU_K.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import '../../shared/better-auth.4SXCyo06.js';
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
data: InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
-
data: infer S;
|
|
71
|
-
error: null;
|
|
72
|
-
} | {
|
|
73
70
|
data: null;
|
|
74
71
|
error: {
|
|
75
72
|
message?: string | undefined;
|
|
76
73
|
status: number;
|
|
77
74
|
statusText: string;
|
|
78
75
|
};
|
|
76
|
+
} | {
|
|
77
|
+
data: infer S;
|
|
78
|
+
error: null;
|
|
79
79
|
} ? S : Res : never;
|
|
80
80
|
isPending: boolean;
|
|
81
81
|
error: BetterFetchError | null;
|
|
@@ -87,15 +87,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
87
87
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
88
88
|
getSession: () => Promise<infer Res>;
|
|
89
89
|
} ? Res extends {
|
|
90
|
-
data: infer S;
|
|
91
|
-
error: null;
|
|
92
|
-
} | {
|
|
93
90
|
data: null;
|
|
94
91
|
error: {
|
|
95
92
|
message?: string | undefined;
|
|
96
93
|
status: number;
|
|
97
94
|
statusText: string;
|
|
98
95
|
};
|
|
96
|
+
} | {
|
|
97
|
+
data: infer S;
|
|
98
|
+
error: null;
|
|
99
99
|
} ? S : Res : never>;
|
|
100
100
|
};
|
|
101
101
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -115,13 +115,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
115
115
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
116
116
|
};
|
|
117
117
|
})[];
|
|
118
|
+
redirect?: RequestRedirect | undefined;
|
|
118
119
|
method: string;
|
|
119
120
|
headers?: (HeadersInit & (HeadersInit | {
|
|
120
121
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
121
122
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
122
123
|
authorization: "Bearer" | "Basic";
|
|
123
124
|
})) | undefined;
|
|
124
|
-
redirect?: RequestRedirect | undefined;
|
|
125
125
|
cache?: RequestCache | undefined;
|
|
126
126
|
credentials?: RequestCredentials;
|
|
127
127
|
integrity?: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
1
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.BAPVOPl3.mjs';
|
|
2
2
|
import { listenKeys } from 'nanostores';
|
|
3
3
|
import { useRef, useCallback, useSyncExternalStore } from 'react';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.BAQSo96z.mjs';
|
|
6
6
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
7
7
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
8
8
|
import '../../shared/better-auth.BYWGbmZ5.mjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const proxy = require('../../shared/better-auth.
|
|
3
|
+
const proxy = require('../../shared/better-auth.Df7v65t4.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');
|
|
7
7
|
require('@better-fetch/fetch');
|
|
8
|
-
require('../../shared/better-auth.
|
|
8
|
+
require('../../shared/better-auth.DxBcELEX.cjs');
|
|
9
9
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
10
10
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
11
11
|
require('nanostores');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BW0VS3vZ.cjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
7
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.BOKSn3AP.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
@@ -23,15 +23,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
23
23
|
data: InferClientAPI<Option> extends {
|
|
24
24
|
getSession: () => Promise<infer Res>;
|
|
25
25
|
} ? Res extends {
|
|
26
|
+
data: infer S;
|
|
27
|
+
error: null;
|
|
28
|
+
} | {
|
|
26
29
|
data: null;
|
|
27
30
|
error: {
|
|
28
31
|
message?: string | undefined;
|
|
29
32
|
status: number;
|
|
30
33
|
statusText: string;
|
|
31
34
|
};
|
|
32
|
-
} | {
|
|
33
|
-
data: infer S;
|
|
34
|
-
error: null;
|
|
35
35
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
36
36
|
isPending: boolean;
|
|
37
37
|
isRefetching: boolean;
|
|
@@ -41,15 +41,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
41
41
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
42
42
|
getSession: () => Promise<infer Res>;
|
|
43
43
|
} ? Res extends {
|
|
44
|
+
data: infer S;
|
|
45
|
+
error: null;
|
|
46
|
+
} | {
|
|
44
47
|
data: null;
|
|
45
48
|
error: {
|
|
46
49
|
message?: string | undefined;
|
|
47
50
|
status: number;
|
|
48
51
|
statusText: string;
|
|
49
52
|
};
|
|
50
|
-
} | {
|
|
51
|
-
data: infer S;
|
|
52
|
-
error: null;
|
|
53
53
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
54
54
|
};
|
|
55
55
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -69,13 +69,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
69
69
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
70
70
|
};
|
|
71
71
|
})[];
|
|
72
|
+
redirect?: RequestRedirect | undefined;
|
|
72
73
|
method: string;
|
|
73
74
|
headers?: (HeadersInit & (HeadersInit | {
|
|
74
75
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
75
76
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
76
77
|
authorization: "Bearer" | "Basic";
|
|
77
78
|
})) | undefined;
|
|
78
|
-
redirect?: RequestRedirect | undefined;
|
|
79
79
|
cache?: RequestCache | undefined;
|
|
80
80
|
credentials?: RequestCredentials;
|
|
81
81
|
integrity?: string | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.D63GoHoT.mjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
7
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.vNMd9aBC.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
@@ -23,15 +23,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
23
23
|
data: InferClientAPI<Option> extends {
|
|
24
24
|
getSession: () => Promise<infer Res>;
|
|
25
25
|
} ? Res extends {
|
|
26
|
+
data: infer S;
|
|
27
|
+
error: null;
|
|
28
|
+
} | {
|
|
26
29
|
data: null;
|
|
27
30
|
error: {
|
|
28
31
|
message?: string | undefined;
|
|
29
32
|
status: number;
|
|
30
33
|
statusText: string;
|
|
31
34
|
};
|
|
32
|
-
} | {
|
|
33
|
-
data: infer S;
|
|
34
|
-
error: null;
|
|
35
35
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
36
36
|
isPending: boolean;
|
|
37
37
|
isRefetching: boolean;
|
|
@@ -41,15 +41,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
41
41
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
42
42
|
getSession: () => Promise<infer Res>;
|
|
43
43
|
} ? Res extends {
|
|
44
|
+
data: infer S;
|
|
45
|
+
error: null;
|
|
46
|
+
} | {
|
|
44
47
|
data: null;
|
|
45
48
|
error: {
|
|
46
49
|
message?: string | undefined;
|
|
47
50
|
status: number;
|
|
48
51
|
statusText: string;
|
|
49
52
|
};
|
|
50
|
-
} | {
|
|
51
|
-
data: infer S;
|
|
52
|
-
error: null;
|
|
53
53
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
54
54
|
};
|
|
55
55
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -69,13 +69,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
69
69
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
70
70
|
};
|
|
71
71
|
})[];
|
|
72
|
+
redirect?: RequestRedirect | undefined;
|
|
72
73
|
method: string;
|
|
73
74
|
headers?: (HeadersInit & (HeadersInit | {
|
|
74
75
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
75
76
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
76
77
|
authorization: "Bearer" | "Basic";
|
|
77
78
|
})) | undefined;
|
|
78
|
-
redirect?: RequestRedirect | undefined;
|
|
79
79
|
cache?: RequestCache | undefined;
|
|
80
80
|
credentials?: RequestCredentials;
|
|
81
81
|
integrity?: string | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
3
3
|
export * from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.CAc8m5ps.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
7
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.3es9ZU_K.js';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
@@ -23,15 +23,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
23
23
|
data: InferClientAPI<Option> extends {
|
|
24
24
|
getSession: () => Promise<infer Res>;
|
|
25
25
|
} ? Res extends {
|
|
26
|
+
data: infer S;
|
|
27
|
+
error: null;
|
|
28
|
+
} | {
|
|
26
29
|
data: null;
|
|
27
30
|
error: {
|
|
28
31
|
message?: string | undefined;
|
|
29
32
|
status: number;
|
|
30
33
|
statusText: string;
|
|
31
34
|
};
|
|
32
|
-
} | {
|
|
33
|
-
data: infer S;
|
|
34
|
-
error: null;
|
|
35
35
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
36
36
|
isPending: boolean;
|
|
37
37
|
isRefetching: boolean;
|
|
@@ -41,15 +41,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
41
41
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
42
42
|
getSession: () => Promise<infer Res>;
|
|
43
43
|
} ? Res extends {
|
|
44
|
+
data: infer S;
|
|
45
|
+
error: null;
|
|
46
|
+
} | {
|
|
44
47
|
data: null;
|
|
45
48
|
error: {
|
|
46
49
|
message?: string | undefined;
|
|
47
50
|
status: number;
|
|
48
51
|
statusText: string;
|
|
49
52
|
};
|
|
50
|
-
} | {
|
|
51
|
-
data: infer S;
|
|
52
|
-
error: null;
|
|
53
53
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
54
54
|
};
|
|
55
55
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -69,13 +69,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
69
69
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
70
70
|
};
|
|
71
71
|
})[];
|
|
72
|
+
redirect?: RequestRedirect | undefined;
|
|
72
73
|
method: string;
|
|
73
74
|
headers?: (HeadersInit & (HeadersInit | {
|
|
74
75
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
75
76
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
76
77
|
authorization: "Bearer" | "Basic";
|
|
77
78
|
})) | undefined;
|
|
78
|
-
redirect?: RequestRedirect | undefined;
|
|
79
79
|
cache?: RequestCache | undefined;
|
|
80
80
|
credentials?: RequestCredentials;
|
|
81
81
|
integrity?: string | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
1
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.BAPVOPl3.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';
|
|
5
5
|
import '@better-fetch/fetch';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BAQSo96z.mjs';
|
|
7
7
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
8
8
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
9
9
|
import 'nanostores';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const proxy = require('../../shared/better-auth.
|
|
3
|
+
const proxy = require('../../shared/better-auth.Df7v65t4.cjs');
|
|
4
4
|
const misc = require('../../shared/better-auth.BLDOwz3i.cjs');
|
|
5
5
|
require('@better-fetch/fetch');
|
|
6
|
-
require('../../shared/better-auth.
|
|
6
|
+
require('../../shared/better-auth.DxBcELEX.cjs');
|
|
7
7
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
8
8
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
9
9
|
require('nanostores');
|
|
@@ -4,9 +4,9 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BW0VS3vZ.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
9
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.BOKSn3AP.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
@@ -55,13 +55,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
55
55
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
56
56
|
};
|
|
57
57
|
})[];
|
|
58
|
+
redirect?: RequestRedirect | undefined;
|
|
58
59
|
method: string;
|
|
59
60
|
headers?: (HeadersInit & (HeadersInit | {
|
|
60
61
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
61
62
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
62
63
|
authorization: "Bearer" | "Basic";
|
|
63
64
|
})) | undefined;
|
|
64
|
-
redirect?: RequestRedirect | undefined;
|
|
65
65
|
cache?: RequestCache | undefined;
|
|
66
66
|
credentials?: RequestCredentials;
|
|
67
67
|
integrity?: string | undefined;
|
|
@@ -4,9 +4,9 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.D63GoHoT.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
9
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.vNMd9aBC.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
@@ -55,13 +55,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
55
55
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
56
56
|
};
|
|
57
57
|
})[];
|
|
58
|
+
redirect?: RequestRedirect | undefined;
|
|
58
59
|
method: string;
|
|
59
60
|
headers?: (HeadersInit & (HeadersInit | {
|
|
60
61
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
61
62
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
62
63
|
authorization: "Bearer" | "Basic";
|
|
63
64
|
})) | undefined;
|
|
64
|
-
redirect?: RequestRedirect | undefined;
|
|
65
65
|
cache?: RequestCache | undefined;
|
|
66
66
|
credentials?: RequestCredentials;
|
|
67
67
|
integrity?: string | undefined;
|
|
@@ -4,9 +4,9 @@ export * from 'nanostores';
|
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
5
5
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.CAc8m5ps.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
9
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.3es9ZU_K.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import '../../shared/better-auth.4SXCyo06.js';
|
|
@@ -55,13 +55,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
55
55
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
56
56
|
};
|
|
57
57
|
})[];
|
|
58
|
+
redirect?: RequestRedirect | undefined;
|
|
58
59
|
method: string;
|
|
59
60
|
headers?: (HeadersInit & (HeadersInit | {
|
|
60
61
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
61
62
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
62
63
|
authorization: "Bearer" | "Basic";
|
|
63
64
|
})) | undefined;
|
|
64
|
-
redirect?: RequestRedirect | undefined;
|
|
65
65
|
cache?: RequestCache | undefined;
|
|
66
66
|
credentials?: RequestCredentials;
|
|
67
67
|
integrity?: string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
1
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.BAPVOPl3.mjs';
|
|
2
2
|
import { c as capitalizeFirstLetter } from '../../shared/better-auth.D-2CmEwz.mjs';
|
|
3
3
|
import '@better-fetch/fetch';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.BAQSo96z.mjs';
|
|
5
5
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
6
6
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
7
7
|
import 'nanostores';
|
|
@@ -1,10 +1,10 @@
|
|
|
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.Df7v65t4.cjs');
|
|
5
5
|
const misc = require('../../shared/better-auth.BLDOwz3i.cjs');
|
|
6
6
|
require('@better-fetch/fetch');
|
|
7
|
-
require('../../shared/better-auth.
|
|
7
|
+
require('../../shared/better-auth.DxBcELEX.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
9
9
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
10
10
|
require('nanostores');
|
|
@@ -44,7 +44,7 @@ function createAuthClient(options) {
|
|
|
44
44
|
$fetch,
|
|
45
45
|
$store,
|
|
46
46
|
atomListeners
|
|
47
|
-
} = proxy.getClientConfig(options);
|
|
47
|
+
} = proxy.getClientConfig(options, false);
|
|
48
48
|
let resolvedHooks = {};
|
|
49
49
|
for (const [key, value] of Object.entries(pluginsAtoms)) {
|
|
50
50
|
resolvedHooks[getAtomKey(key)] = () => useStore(value);
|
|
@@ -4,9 +4,9 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
|
4
4
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
5
5
|
export * from '@better-fetch/fetch';
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BW0VS3vZ.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
9
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.BOKSn3AP.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
@@ -93,13 +93,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
93
93
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
94
94
|
};
|
|
95
95
|
})[];
|
|
96
|
+
redirect?: RequestRedirect | undefined;
|
|
96
97
|
method: string;
|
|
97
98
|
headers?: (HeadersInit & (HeadersInit | {
|
|
98
99
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
99
100
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
100
101
|
authorization: "Bearer" | "Basic";
|
|
101
102
|
})) | undefined;
|
|
102
|
-
redirect?: RequestRedirect | undefined;
|
|
103
103
|
cache?: RequestCache | undefined;
|
|
104
104
|
credentials?: RequestCredentials;
|
|
105
105
|
integrity?: string | undefined;
|
|
@@ -4,9 +4,9 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
|
4
4
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
5
5
|
export * from '@better-fetch/fetch';
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.D63GoHoT.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
9
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.vNMd9aBC.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
@@ -93,13 +93,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
93
93
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
94
94
|
};
|
|
95
95
|
})[];
|
|
96
|
+
redirect?: RequestRedirect | undefined;
|
|
96
97
|
method: string;
|
|
97
98
|
headers?: (HeadersInit & (HeadersInit | {
|
|
98
99
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
99
100
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
100
101
|
authorization: "Bearer" | "Basic";
|
|
101
102
|
})) | undefined;
|
|
102
|
-
redirect?: RequestRedirect | undefined;
|
|
103
103
|
cache?: RequestCache | undefined;
|
|
104
104
|
credentials?: RequestCredentials;
|
|
105
105
|
integrity?: string | undefined;
|
|
@@ -4,9 +4,9 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
|
4
4
|
import { BetterFetchError } from '@better-fetch/fetch';
|
|
5
5
|
export * from '@better-fetch/fetch';
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.
|
|
7
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.CAc8m5ps.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
9
|
-
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { b as BASE_ERROR_CODES } from '../../shared/better-auth.3es9ZU_K.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import '../../shared/better-auth.4SXCyo06.js';
|
|
@@ -93,13 +93,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
93
93
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
94
94
|
};
|
|
95
95
|
})[];
|
|
96
|
+
redirect?: RequestRedirect | undefined;
|
|
96
97
|
method: string;
|
|
97
98
|
headers?: (HeadersInit & (HeadersInit | {
|
|
98
99
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
99
100
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
100
101
|
authorization: "Bearer" | "Basic";
|
|
101
102
|
})) | undefined;
|
|
102
|
-
redirect?: RequestRedirect | undefined;
|
|
103
103
|
cache?: RequestCache | undefined;
|
|
104
104
|
credentials?: RequestCredentials;
|
|
105
105
|
integrity?: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
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.BAPVOPl3.mjs';
|
|
3
3
|
import { c as capitalizeFirstLetter } from '../../shared/better-auth.D-2CmEwz.mjs';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.BAQSo96z.mjs';
|
|
6
6
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
7
7
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
8
8
|
import 'nanostores';
|
|
@@ -42,7 +42,7 @@ function createAuthClient(options) {
|
|
|
42
42
|
$fetch,
|
|
43
43
|
$store,
|
|
44
44
|
atomListeners
|
|
45
|
-
} = getClientConfig(options);
|
|
45
|
+
} = getClientConfig(options, false);
|
|
46
46
|
let resolvedHooks = {};
|
|
47
47
|
for (const [key, value] of Object.entries(pluginsAtoms)) {
|
|
48
48
|
resolvedHooks[getAtomKey(key)] = () => useStore(value);
|
package/dist/cookies/index.cjs
CHANGED
|
@@ -4,10 +4,10 @@ require('../shared/better-auth.ANpbi45u.cjs');
|
|
|
4
4
|
require('../shared/better-auth.C1hdVENX.cjs');
|
|
5
5
|
require('../shared/better-auth.B6fIklBU.cjs');
|
|
6
6
|
require('@better-auth/utils/base64');
|
|
7
|
-
const cookies_index = require('../shared/better-auth.
|
|
7
|
+
const cookies_index = require('../shared/better-auth.oHfRlmfe.cjs');
|
|
8
8
|
require('@better-auth/utils/hmac');
|
|
9
9
|
require('../shared/better-auth.DgMx7bVs.cjs');
|
|
10
|
-
require('../shared/better-auth.
|
|
10
|
+
require('../shared/better-auth.DxBcELEX.cjs');
|
|
11
11
|
require('@better-auth/utils/binary');
|
|
12
12
|
require('../shared/better-auth.DTvRBuq4.cjs');
|
|
13
13
|
|
package/dist/cookies/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { aG as BetterAuthCookies, aL as EligibleCookies, aE as createCookieGetter, aJ as deleteSessionCookie, aN as getCookieCache, aF as getCookies, aM as getSessionCookie, aK as parseCookies, aO as parseSetCookieHeader, aH as setCookieCache, s as setCookieToHeader, aI as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aG as BetterAuthCookies, aL as EligibleCookies, aE as createCookieGetter, aJ as deleteSessionCookie, aN as getCookieCache, aF as getCookies, aM as getSessionCookie, aK as parseCookies, aO as parseSetCookieHeader, aH as setCookieCache, s as setCookieToHeader, aI as setSessionCookie } from '../shared/better-auth.BOKSn3AP.cjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import '../shared/better-auth.v_lf-jeY.cjs';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
package/dist/cookies/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { aG as BetterAuthCookies, aL as EligibleCookies, aE as createCookieGetter, aJ as deleteSessionCookie, aN as getCookieCache, aF as getCookies, aM as getSessionCookie, aK as parseCookies, aO as parseSetCookieHeader, aH as setCookieCache, s as setCookieToHeader, aI as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aG as BetterAuthCookies, aL as EligibleCookies, aE as createCookieGetter, aJ as deleteSessionCookie, aN as getCookieCache, aF as getCookies, aM as getSessionCookie, aK as parseCookies, aO as parseSetCookieHeader, aH as setCookieCache, s as setCookieToHeader, aI as setSessionCookie } from '../shared/better-auth.vNMd9aBC.mjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import '../shared/better-auth.XefKa8DI.mjs';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
package/dist/cookies/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { aG as BetterAuthCookies, aL as EligibleCookies, aE as createCookieGetter, aJ as deleteSessionCookie, aN as getCookieCache, aF as getCookies, aM as getSessionCookie, aK as parseCookies, aO as parseSetCookieHeader, aH as setCookieCache, s as setCookieToHeader, aI as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aG as BetterAuthCookies, aL as EligibleCookies, aE as createCookieGetter, aJ as deleteSessionCookie, aN as getCookieCache, aF as getCookies, aM as getSessionCookie, aK as parseCookies, aO as parseSetCookieHeader, aH as setCookieCache, s as setCookieToHeader, aI as setSessionCookie } from '../shared/better-auth.3es9ZU_K.js';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import '../shared/better-auth.4SXCyo06.js';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.js';
|
package/dist/cookies/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import '../shared/better-auth.DdzSJf-n.mjs';
|
|
|
2
2
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
3
3
|
import '../shared/better-auth.CiuwFiHM.mjs';
|
|
4
4
|
import '@better-auth/utils/base64';
|
|
5
|
-
export { c as createCookieGetter, d as deleteSessionCookie, h as getCookieCache, g as getCookies, f as getSessionCookie, a as parseCookies, p as parseSetCookieHeader, b as setCookieCache, e as setCookieToHeader, s as setSessionCookie } from '../shared/better-auth.
|
|
5
|
+
export { c as createCookieGetter, d as deleteSessionCookie, h as getCookieCache, g as getCookies, f as getSessionCookie, a as parseCookies, p as parseSetCookieHeader, b as setCookieCache, e as setCookieToHeader, s as setSessionCookie } from '../shared/better-auth.pyHheoY8.mjs';
|
|
6
6
|
import '@better-auth/utils/hmac';
|
|
7
7
|
import '../shared/better-auth.CvNZNAOW.mjs';
|
|
8
|
-
import '../shared/better-auth.
|
|
8
|
+
import '../shared/better-auth.BAQSo96z.mjs';
|
|
9
9
|
import '@better-auth/utils/binary';
|
|
10
10
|
import '../shared/better-auth.C4g12FAA.mjs';
|
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.DVpUemsq.cjs');
|
|
4
4
|
const getTables = require('../shared/better-auth.DF_1VOmo.cjs');
|
|
5
5
|
const toZod = require('../shared/better-auth.CsC4FSOQ.cjs');
|
|
6
6
|
const schema = require('../shared/better-auth.DcYLM7Us.cjs');
|
package/dist/db/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, L as FieldAttribute, E as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { Z as BetterAuthDbSchema, J as FieldAttributeConfig, V as FieldAttributeToObject, X as InferAdditionalFieldsFromPluginOptions, l as InferFieldsFromOptions, k as InferFieldsFromPlugins, R as InferFieldsInput, T as InferFieldsInputClient, Q as InferFieldsOutput, P as InferValueType, N as InternalAdapter, Y as PluginFieldAttribute, a0 as accountSchema, $ as coreSchema, O as createFieldAttribute, M as createInternalAdapter, a5 as getAllFields, _ as getAuthTables, ae as mergeSchema, ac as parseAccountInput, a7 as parseAccountOutput, ab as parseAdditionalUserInput, a9 as parseInputData, a4 as parseOutputData, ad as parseSessionInput, a8 as parseSessionOutput, aa as parseUserInput, a6 as parseUserOutput, a2 as sessionSchema, a1 as userSchema, a3 as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, L as FieldAttribute, E as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.BOKSn3AP.cjs';
|
|
2
|
+
export { Z as BetterAuthDbSchema, J as FieldAttributeConfig, V as FieldAttributeToObject, X as InferAdditionalFieldsFromPluginOptions, l as InferFieldsFromOptions, k as InferFieldsFromPlugins, R as InferFieldsInput, T as InferFieldsInputClient, Q as InferFieldsOutput, P as InferValueType, N as InternalAdapter, Y as PluginFieldAttribute, a0 as accountSchema, $ as coreSchema, O as createFieldAttribute, M as createInternalAdapter, a5 as getAllFields, _ as getAuthTables, ae as mergeSchema, ac as parseAccountInput, a7 as parseAccountOutput, ab as parseAdditionalUserInput, a9 as parseInputData, a4 as parseOutputData, ad as parseSessionInput, a8 as parseSessionOutput, aa as parseUserInput, a6 as parseUserOutput, a2 as sessionSchema, a1 as userSchema, a3 as verificationSchema } from '../shared/better-auth.BOKSn3AP.cjs';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
package/dist/db/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, L as FieldAttribute, E as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { Z as BetterAuthDbSchema, J as FieldAttributeConfig, V as FieldAttributeToObject, X as InferAdditionalFieldsFromPluginOptions, l as InferFieldsFromOptions, k as InferFieldsFromPlugins, R as InferFieldsInput, T as InferFieldsInputClient, Q as InferFieldsOutput, P as InferValueType, N as InternalAdapter, Y as PluginFieldAttribute, a0 as accountSchema, $ as coreSchema, O as createFieldAttribute, M as createInternalAdapter, a5 as getAllFields, _ as getAuthTables, ae as mergeSchema, ac as parseAccountInput, a7 as parseAccountOutput, ab as parseAdditionalUserInput, a9 as parseInputData, a4 as parseOutputData, ad as parseSessionInput, a8 as parseSessionOutput, aa as parseUserInput, a6 as parseUserOutput, a2 as sessionSchema, a1 as userSchema, a3 as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, L as FieldAttribute, E as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.vNMd9aBC.mjs';
|
|
2
|
+
export { Z as BetterAuthDbSchema, J as FieldAttributeConfig, V as FieldAttributeToObject, X as InferAdditionalFieldsFromPluginOptions, l as InferFieldsFromOptions, k as InferFieldsFromPlugins, R as InferFieldsInput, T as InferFieldsInputClient, Q as InferFieldsOutput, P as InferValueType, N as InternalAdapter, Y as PluginFieldAttribute, a0 as accountSchema, $ as coreSchema, O as createFieldAttribute, M as createInternalAdapter, a5 as getAllFields, _ as getAuthTables, ae as mergeSchema, ac as parseAccountInput, a7 as parseAccountOutput, ab as parseAdditionalUserInput, a9 as parseInputData, a4 as parseOutputData, ad as parseSessionInput, a8 as parseSessionOutput, aa as parseUserInput, a6 as parseUserOutput, a2 as sessionSchema, a1 as userSchema, a3 as verificationSchema } from '../shared/better-auth.vNMd9aBC.mjs';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|