better-auth 1.3.0-beta.8 → 1.3.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle-adapter/index.cjs +2 -2
- package/dist/adapters/drizzle-adapter/index.d.cts +6 -4
- package/dist/adapters/drizzle-adapter/index.d.mts +6 -4
- package/dist/adapters/drizzle-adapter/index.d.ts +6 -4
- package/dist/adapters/drizzle-adapter/index.mjs +2 -2
- package/dist/adapters/index.cjs +2 -2
- package/dist/adapters/index.d.cts +7 -5
- package/dist/adapters/index.d.mts +7 -5
- package/dist/adapters/index.d.ts +7 -5
- package/dist/adapters/index.mjs +2 -2
- package/dist/adapters/kysely-adapter/index.cjs +3 -3
- package/dist/adapters/kysely-adapter/index.d.cts +6 -4
- package/dist/adapters/kysely-adapter/index.d.mts +6 -4
- package/dist/adapters/kysely-adapter/index.d.ts +6 -4
- package/dist/adapters/kysely-adapter/index.mjs +3 -3
- package/dist/adapters/memory-adapter/index.cjs +3 -3
- package/dist/adapters/memory-adapter/index.d.cts +6 -4
- package/dist/adapters/memory-adapter/index.d.mts +6 -4
- package/dist/adapters/memory-adapter/index.d.ts +6 -4
- package/dist/adapters/memory-adapter/index.mjs +3 -3
- package/dist/adapters/mongodb-adapter/index.cjs +3 -3
- package/dist/adapters/mongodb-adapter/index.d.cts +6 -4
- package/dist/adapters/mongodb-adapter/index.d.mts +6 -4
- package/dist/adapters/mongodb-adapter/index.d.ts +6 -4
- package/dist/adapters/mongodb-adapter/index.mjs +3 -3
- package/dist/adapters/prisma-adapter/index.cjs +2 -2
- package/dist/adapters/prisma-adapter/index.d.cts +6 -4
- package/dist/adapters/prisma-adapter/index.d.mts +6 -4
- package/dist/adapters/prisma-adapter/index.d.ts +6 -4
- package/dist/adapters/prisma-adapter/index.mjs +2 -2
- package/dist/adapters/test.cjs +1 -1
- package/dist/adapters/test.d.cts +6 -4
- package/dist/adapters/test.d.mts +6 -4
- package/dist/adapters/test.d.ts +6 -4
- package/dist/adapters/test.mjs +1 -1
- package/dist/api/index.cjs +26 -8
- package/dist/api/index.d.cts +5 -3
- package/dist/api/index.d.mts +5 -3
- package/dist/api/index.d.ts +5 -3
- package/dist/api/index.mjs +13 -8
- package/dist/client/index.d.cts +8 -6
- package/dist/client/index.d.mts +8 -6
- package/dist/client/index.d.ts +8 -6
- package/dist/client/plugins/index.d.cts +18 -16
- package/dist/client/plugins/index.d.mts +18 -16
- package/dist/client/plugins/index.d.ts +18 -16
- package/dist/client/react/index.d.cts +14 -12
- package/dist/client/react/index.d.mts +14 -12
- package/dist/client/react/index.d.ts +14 -12
- package/dist/client/solid/index.d.cts +8 -6
- package/dist/client/solid/index.d.mts +8 -6
- package/dist/client/solid/index.d.ts +8 -6
- package/dist/client/svelte/index.d.cts +14 -12
- package/dist/client/svelte/index.d.mts +14 -12
- package/dist/client/svelte/index.d.ts +14 -12
- package/dist/client/vue/index.d.cts +8 -6
- package/dist/client/vue/index.d.mts +8 -6
- package/dist/client/vue/index.d.ts +8 -6
- package/dist/cookies/index.d.cts +6 -4
- package/dist/cookies/index.d.mts +6 -4
- package/dist/cookies/index.d.ts +6 -4
- package/dist/db/index.cjs +25 -11
- package/dist/db/index.d.cts +8 -6
- package/dist/db/index.d.mts +8 -6
- package/dist/db/index.d.ts +8 -6
- package/dist/db/index.mjs +7 -7
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +8 -6
- package/dist/index.d.mts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.mjs +9 -9
- package/dist/integrations/next-js.cjs +17 -6
- package/dist/integrations/next-js.d.cts +6 -4
- package/dist/integrations/next-js.d.mts +6 -4
- package/dist/integrations/next-js.d.ts +6 -4
- package/dist/integrations/next-js.mjs +17 -6
- package/dist/integrations/node.d.cts +6 -4
- package/dist/integrations/node.d.mts +6 -4
- package/dist/integrations/node.d.ts +6 -4
- package/dist/integrations/react-start.cjs +6 -5
- package/dist/integrations/react-start.d.cts +6 -4
- package/dist/integrations/react-start.d.mts +6 -4
- package/dist/integrations/react-start.d.ts +6 -4
- package/dist/integrations/react-start.mjs +6 -5
- package/dist/integrations/svelte-kit.cjs +3 -3
- package/dist/integrations/svelte-kit.d.cts +6 -4
- package/dist/integrations/svelte-kit.d.mts +6 -4
- package/dist/integrations/svelte-kit.d.ts +6 -4
- package/dist/integrations/svelte-kit.mjs +3 -3
- package/dist/oauth2/index.cjs +3 -3
- package/dist/oauth2/index.d.cts +13 -10
- package/dist/oauth2/index.d.mts +13 -10
- package/dist/oauth2/index.d.ts +13 -10
- package/dist/oauth2/index.mjs +3 -3
- package/dist/plugins/access/index.d.cts +1 -2
- package/dist/plugins/access/index.d.mts +1 -2
- package/dist/plugins/access/index.d.ts +1 -2
- package/dist/plugins/admin/access/index.d.cts +1 -2
- package/dist/plugins/admin/access/index.d.mts +1 -2
- package/dist/plugins/admin/access/index.d.ts +1 -2
- package/dist/plugins/admin/index.cjs +4 -3
- package/dist/plugins/admin/index.d.cts +114 -197
- package/dist/plugins/admin/index.d.mts +114 -197
- package/dist/plugins/admin/index.d.ts +114 -197
- package/dist/plugins/admin/index.mjs +4 -3
- package/dist/plugins/anonymous/index.cjs +4 -4
- package/dist/plugins/anonymous/index.d.cts +6 -4
- package/dist/plugins/anonymous/index.d.mts +6 -4
- package/dist/plugins/anonymous/index.d.ts +6 -4
- package/dist/plugins/anonymous/index.mjs +4 -4
- package/dist/plugins/bearer/index.cjs +3 -3
- package/dist/plugins/bearer/index.d.cts +6 -4
- package/dist/plugins/bearer/index.d.mts +6 -4
- package/dist/plugins/bearer/index.d.ts +6 -4
- package/dist/plugins/bearer/index.mjs +3 -3
- package/dist/plugins/captcha/index.d.cts +6 -4
- package/dist/plugins/captcha/index.d.mts +6 -4
- package/dist/plugins/captcha/index.d.ts +6 -4
- package/dist/plugins/custom-session/index.cjs +22 -8
- package/dist/plugins/custom-session/index.d.cts +8 -16
- package/dist/plugins/custom-session/index.d.mts +8 -16
- package/dist/plugins/custom-session/index.d.ts +8 -16
- package/dist/plugins/custom-session/index.mjs +5 -5
- package/dist/plugins/email-otp/index.cjs +24 -17
- package/dist/plugins/email-otp/index.d.cts +33 -61
- package/dist/plugins/email-otp/index.d.mts +33 -61
- package/dist/plugins/email-otp/index.d.ts +33 -61
- package/dist/plugins/email-otp/index.mjs +24 -17
- package/dist/plugins/generic-oauth/index.cjs +40 -24
- package/dist/plugins/generic-oauth/index.d.cts +23 -63
- package/dist/plugins/generic-oauth/index.d.mts +23 -63
- package/dist/plugins/generic-oauth/index.d.ts +23 -63
- package/dist/plugins/generic-oauth/index.mjs +21 -19
- package/dist/plugins/haveibeenpwned/index.cjs +3 -3
- package/dist/plugins/haveibeenpwned/index.d.cts +6 -4
- package/dist/plugins/haveibeenpwned/index.d.mts +6 -4
- package/dist/plugins/haveibeenpwned/index.d.ts +6 -4
- package/dist/plugins/haveibeenpwned/index.mjs +3 -3
- package/dist/plugins/index.cjs +112 -80
- package/dist/plugins/index.d.cts +53 -71
- package/dist/plugins/index.d.mts +53 -71
- package/dist/plugins/index.d.ts +53 -71
- package/dist/plugins/index.mjs +82 -64
- package/dist/plugins/jwt/index.cjs +9 -90
- package/dist/plugins/jwt/index.d.cts +10 -9
- package/dist/plugins/jwt/index.d.mts +10 -9
- package/dist/plugins/jwt/index.d.ts +10 -9
- package/dist/plugins/jwt/index.mjs +9 -89
- package/dist/plugins/magic-link/index.cjs +24 -10
- package/dist/plugins/magic-link/index.d.cts +4 -18
- package/dist/plugins/magic-link/index.d.mts +4 -18
- package/dist/plugins/magic-link/index.d.ts +4 -18
- package/dist/plugins/magic-link/index.mjs +8 -8
- package/dist/plugins/multi-session/index.cjs +21 -7
- package/dist/plugins/multi-session/index.d.cts +14 -20
- package/dist/plugins/multi-session/index.d.mts +14 -20
- package/dist/plugins/multi-session/index.d.ts +14 -20
- package/dist/plugins/multi-session/index.mjs +5 -5
- package/dist/plugins/oauth-proxy/index.cjs +20 -6
- package/dist/plugins/oauth-proxy/index.d.cts +7 -11
- package/dist/plugins/oauth-proxy/index.d.mts +7 -11
- package/dist/plugins/oauth-proxy/index.d.ts +7 -11
- package/dist/plugins/oauth-proxy/index.mjs +5 -5
- package/dist/plugins/oidc-provider/index.cjs +11 -6
- package/dist/plugins/oidc-provider/index.d.cts +106 -84
- package/dist/plugins/oidc-provider/index.d.mts +106 -84
- package/dist/plugins/oidc-provider/index.d.ts +106 -84
- package/dist/plugins/oidc-provider/index.mjs +10 -6
- package/dist/plugins/one-tap/index.cjs +19 -5
- package/dist/plugins/one-tap/index.d.cts +2 -6
- package/dist/plugins/one-tap/index.d.mts +2 -6
- package/dist/plugins/one-tap/index.d.ts +2 -6
- package/dist/plugins/one-tap/index.mjs +4 -4
- package/dist/plugins/one-time-token/index.cjs +7 -6
- package/dist/plugins/one-time-token/index.d.cts +9 -11
- package/dist/plugins/one-time-token/index.d.mts +9 -11
- package/dist/plugins/one-time-token/index.d.ts +9 -11
- package/dist/plugins/one-time-token/index.mjs +7 -6
- package/dist/plugins/open-api/index.cjs +21 -23
- package/dist/plugins/open-api/index.d.cts +6 -4
- package/dist/plugins/open-api/index.d.mts +6 -4
- package/dist/plugins/open-api/index.d.ts +6 -4
- package/dist/plugins/open-api/index.mjs +17 -19
- package/dist/plugins/organization/access/index.d.cts +1 -2
- package/dist/plugins/organization/access/index.d.mts +1 -2
- package/dist/plugins/organization/access/index.d.ts +1 -2
- package/dist/plugins/organization/index.cjs +5 -4
- package/dist/plugins/organization/index.d.cts +811 -1130
- package/dist/plugins/organization/index.d.mts +811 -1130
- package/dist/plugins/organization/index.d.ts +811 -1130
- package/dist/plugins/organization/index.mjs +5 -4
- package/dist/plugins/passkey/index.cjs +35 -19
- package/dist/plugins/passkey/index.d.cts +37 -60
- package/dist/plugins/passkey/index.d.mts +37 -60
- package/dist/plugins/passkey/index.d.ts +37 -60
- package/dist/plugins/passkey/index.mjs +13 -11
- package/dist/plugins/phone-number/index.cjs +36 -22
- package/dist/plugins/phone-number/index.d.cts +15 -66
- package/dist/plugins/phone-number/index.d.mts +15 -66
- package/dist/plugins/phone-number/index.d.ts +15 -66
- package/dist/plugins/phone-number/index.mjs +11 -11
- package/dist/plugins/sso/index.cjs +56 -42
- package/dist/plugins/sso/index.d.cts +32 -119
- package/dist/plugins/sso/index.d.mts +32 -119
- package/dist/plugins/sso/index.d.ts +32 -119
- package/dist/plugins/sso/index.mjs +31 -31
- package/dist/plugins/two-factor/index.cjs +43 -29
- package/dist/plugins/two-factor/index.d.cts +30 -78
- package/dist/plugins/two-factor/index.d.mts +30 -78
- package/dist/plugins/two-factor/index.d.ts +30 -78
- package/dist/plugins/two-factor/index.mjs +13 -13
- package/dist/plugins/username/index.cjs +25 -15
- package/dist/plugins/username/index.d.cts +10 -22
- package/dist/plugins/username/index.d.mts +10 -22
- package/dist/plugins/username/index.d.ts +10 -22
- package/dist/plugins/username/index.mjs +9 -13
- package/dist/shared/{better-auth.CcqPcsQw.d.ts → better-auth.4fWbQEA_.d.ts} +2 -2
- package/dist/shared/{better-auth.Cs9tnjbm.d.mts → better-auth.AjMhD7yz.d.mts} +44 -103
- package/dist/shared/{better-auth.CTYN90cw.cjs → better-auth.BFWSzd99.cjs} +5 -5
- package/dist/shared/{better-auth.DcWKCjjf.cjs → better-auth.BIMq4RPW.cjs} +53 -39
- package/dist/shared/{better-auth.M3B56FHf.d.cts → better-auth.BMs5wQpJ.d.ts} +45 -104
- package/dist/shared/{better-auth.CeC_YPBC.mjs → better-auth.BRkCkvkr.mjs} +4 -4
- package/dist/shared/{better-auth.BGqNvLSj.d.mts → better-auth.BTGXn6Wu.d.ts} +4 -3
- package/dist/shared/{better-auth.CkL-IpXS.cjs → better-auth.BUiVJvLO.cjs} +1 -1
- package/dist/shared/{better-auth.1U46rRCb.d.ts → better-auth.BalZRjl9.d.cts} +642 -1700
- package/dist/shared/{better-auth.CKaSQSiK.d.cts → better-auth.BbVHEJaq.d.mts} +642 -1700
- package/dist/shared/{better-auth.BjlnHtWM.mjs → better-auth.BdrJBkRw.mjs} +88 -45
- package/dist/shared/{better-auth.dkmWAMtv.d.mts → better-auth.Beq6UEbm.d.cts} +2 -2
- package/dist/shared/{better-auth.Lq361xtr.mjs → better-auth.BluEOpoj.mjs} +1 -1
- package/dist/shared/{better-auth.fsvwNeUx.mjs → better-auth.CGrHn1Ih.mjs} +1 -1
- package/dist/shared/{better-auth.DXFEde7S.d.mts → better-auth.CTHn60Kj.d.ts} +642 -1700
- package/dist/shared/{better-auth.B7cZ2juS.cjs → better-auth.CeLY0dLy.cjs} +1 -2
- package/dist/shared/{better-auth.KCmQsDm-.cjs → better-auth.Cg1dmr5y.cjs} +1 -1
- package/dist/shared/{better-auth.C9r4-D4D.cjs → better-auth.CgWmIFz1.cjs} +188 -75
- package/dist/shared/{better-auth.Bl6kZMTz.d.ts → better-auth.CmoI7VL1.d.ts} +5 -5
- package/dist/shared/{better-auth.DPYZ4lEW.mjs → better-auth.Cx_7nFZg.mjs} +78 -73
- package/dist/shared/{better-auth.CZaGcPOu.d.cts → better-auth.D3D9uwta.d.cts} +4 -3
- package/dist/shared/{better-auth.CiEL_3L9.d.mts → better-auth.D5KZfhN9.d.cts} +5 -5
- package/dist/shared/{better-auth.CxiUYpyi.mjs → better-auth.D6kyMvXP.mjs} +189 -77
- package/dist/shared/{better-auth.YhbwFO4I.cjs → better-auth.DBBvVNHz.cjs} +78 -73
- package/dist/shared/better-auth.DE4w3zEf.cjs +88 -0
- package/dist/shared/better-auth.DI0OyFsZ.cjs +44 -0
- package/dist/shared/{better-auth._dAJf_oa.cjs → better-auth.DOgvYMa8.cjs} +1 -1
- package/dist/shared/{better-auth.DEj39-fy.mjs → better-auth.DRCA5tuq.mjs} +1 -1
- package/dist/shared/better-auth.DUwl8-HL.mjs +85 -0
- package/dist/shared/{better-auth.BQ4_OHi3.cjs → better-auth.DZTOcfJ2.cjs} +66 -42
- package/dist/shared/{better-auth.iKoUsdFE.mjs → better-auth.DcfNPS8q.mjs} +1 -2
- package/dist/shared/{better-auth.wF952O4S.d.ts → better-auth.DgdqIOZX.d.cts} +45 -104
- package/dist/shared/{better-auth.B1UvcDzZ.mjs → better-auth.DwzM-9N1.mjs} +1 -1
- package/dist/shared/{better-auth.CGOCIshw.cjs → better-auth.DzBLnNed.cjs} +1 -1
- package/dist/shared/{better-auth.B7DsbyxZ.cjs → better-auth.Gx72AqAK.cjs} +4 -4
- package/dist/shared/{better-auth.J-FkYMpb.mjs → better-auth.H13TSpTJ.mjs} +5 -5
- package/dist/shared/{better-auth.Bvj_fvZF.d.cts → better-auth.IsSv8odO.d.mts} +5 -5
- package/dist/shared/{better-auth.DTKHr5aa.cjs → better-auth.JhO62CUu.cjs} +154 -97
- package/dist/shared/{better-auth.BJuT8WiU.mjs → better-auth.Rwb5CwA2.mjs} +46 -36
- package/dist/shared/{better-auth.9XhOL8gb.d.cts → better-auth.ZSfSbnQT.d.cts} +2 -3
- package/dist/shared/{better-auth.9XhOL8gb.d.mts → better-auth.ZSfSbnQT.d.mts} +2 -3
- package/dist/shared/{better-auth.9XhOL8gb.d.ts → better-auth.ZSfSbnQT.d.ts} +2 -3
- package/dist/shared/{better-auth.Di4b3h9T.cjs → better-auth.clHUhzUm.cjs} +171 -138
- package/dist/shared/{better-auth.BP35Nbhe.d.cts → better-auth.fpvODASA.d.mts} +2 -2
- package/dist/shared/{better-auth.C3eCZf9N.mjs → better-auth.gBl3F_xa.mjs} +1 -1
- package/dist/shared/{better-auth.dm850UlW.mjs → better-auth.jhSvrQhK.mjs} +100 -81
- package/dist/shared/{better-auth.Cc72UxUH.mjs → better-auth.n2KFGwjY.mjs} +1 -1
- package/dist/shared/{better-auth.D1VhCXSa.d.ts → better-auth.nM381a9n.d.mts} +4 -3
- package/dist/social-providers/index.cjs +3 -3
- package/dist/social-providers/index.d.cts +3 -3
- package/dist/social-providers/index.d.mts +3 -3
- package/dist/social-providers/index.d.ts +3 -3
- package/dist/social-providers/index.mjs +3 -3
- package/dist/test-utils/index.cjs +13 -12
- package/dist/test-utils/index.d.cts +1555 -3105
- package/dist/test-utils/index.d.mts +1555 -3105
- package/dist/test-utils/index.d.ts +1555 -3105
- package/dist/test-utils/index.mjs +13 -12
- package/dist/types/index.d.cts +7 -5
- package/dist/types/index.d.mts +7 -5
- package/dist/types/index.d.ts +7 -5
- package/package.json +2 -2
- package/dist/shared/better-auth.BG6vHVNT.cjs +0 -30
|
@@ -4,14 +4,16 @@ 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.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } 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.Beq6UEbm.cjs';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BalZRjl9.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
|
-
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.CZaGcPOu.cjs';
|
|
14
12
|
import 'kysely';
|
|
13
|
+
import 'zod/v4';
|
|
14
|
+
import '../../shared/better-auth.D3D9uwta.cjs';
|
|
15
|
+
import 'zod/v4/core';
|
|
16
|
+
import 'zod';
|
|
15
17
|
import 'better-sqlite3';
|
|
16
18
|
import 'bun:sqlite';
|
|
17
19
|
|
|
@@ -65,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
65
67
|
data: InferClientAPI<Option> extends {
|
|
66
68
|
getSession: () => Promise<infer Res>;
|
|
67
69
|
} ? Res extends {
|
|
68
|
-
data: infer S;
|
|
69
|
-
error: null;
|
|
70
|
-
} | {
|
|
71
70
|
data: null;
|
|
72
71
|
error: {
|
|
73
72
|
message?: string | undefined;
|
|
74
73
|
status: number;
|
|
75
74
|
statusText: string;
|
|
76
75
|
};
|
|
76
|
+
} | {
|
|
77
|
+
data: infer S;
|
|
78
|
+
error: null;
|
|
77
79
|
} ? S : Res : never;
|
|
78
80
|
isPending: boolean;
|
|
79
81
|
error: BetterFetchError | null;
|
|
@@ -83,15 +85,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
83
85
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
84
86
|
getSession: () => Promise<infer Res>;
|
|
85
87
|
} ? Res extends {
|
|
86
|
-
data: infer S;
|
|
87
|
-
error: null;
|
|
88
|
-
} | {
|
|
89
88
|
data: null;
|
|
90
89
|
error: {
|
|
91
90
|
message?: string | undefined;
|
|
92
91
|
status: number;
|
|
93
92
|
statusText: string;
|
|
94
93
|
};
|
|
94
|
+
} | {
|
|
95
|
+
data: infer S;
|
|
96
|
+
error: null;
|
|
95
97
|
} ? S : Res : never>;
|
|
96
98
|
};
|
|
97
99
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -102,13 +104,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
102
104
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
103
105
|
};
|
|
104
106
|
})[];
|
|
107
|
+
redirect?: RequestRedirect;
|
|
105
108
|
method: string;
|
|
106
109
|
headers?: (HeadersInit & (HeadersInit | {
|
|
107
110
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
108
111
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
109
112
|
authorization: "Bearer" | "Basic";
|
|
110
113
|
})) | undefined;
|
|
111
|
-
redirect?: RequestRedirect;
|
|
112
114
|
cache?: RequestCache;
|
|
113
115
|
credentials?: RequestCredentials;
|
|
114
116
|
integrity?: string;
|
|
@@ -4,14 +4,16 @@ 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.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } 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.fpvODASA.mjs';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BbVHEJaq.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
|
-
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.BGqNvLSj.mjs';
|
|
14
12
|
import 'kysely';
|
|
13
|
+
import 'zod/v4';
|
|
14
|
+
import '../../shared/better-auth.nM381a9n.mjs';
|
|
15
|
+
import 'zod/v4/core';
|
|
16
|
+
import 'zod';
|
|
15
17
|
import 'better-sqlite3';
|
|
16
18
|
import 'bun:sqlite';
|
|
17
19
|
|
|
@@ -65,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
65
67
|
data: InferClientAPI<Option> extends {
|
|
66
68
|
getSession: () => Promise<infer Res>;
|
|
67
69
|
} ? Res extends {
|
|
68
|
-
data: infer S;
|
|
69
|
-
error: null;
|
|
70
|
-
} | {
|
|
71
70
|
data: null;
|
|
72
71
|
error: {
|
|
73
72
|
message?: string | undefined;
|
|
74
73
|
status: number;
|
|
75
74
|
statusText: string;
|
|
76
75
|
};
|
|
76
|
+
} | {
|
|
77
|
+
data: infer S;
|
|
78
|
+
error: null;
|
|
77
79
|
} ? S : Res : never;
|
|
78
80
|
isPending: boolean;
|
|
79
81
|
error: BetterFetchError | null;
|
|
@@ -83,15 +85,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
83
85
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
84
86
|
getSession: () => Promise<infer Res>;
|
|
85
87
|
} ? Res extends {
|
|
86
|
-
data: infer S;
|
|
87
|
-
error: null;
|
|
88
|
-
} | {
|
|
89
88
|
data: null;
|
|
90
89
|
error: {
|
|
91
90
|
message?: string | undefined;
|
|
92
91
|
status: number;
|
|
93
92
|
statusText: string;
|
|
94
93
|
};
|
|
94
|
+
} | {
|
|
95
|
+
data: infer S;
|
|
96
|
+
error: null;
|
|
95
97
|
} ? S : Res : never>;
|
|
96
98
|
};
|
|
97
99
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -102,13 +104,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
102
104
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
103
105
|
};
|
|
104
106
|
})[];
|
|
107
|
+
redirect?: RequestRedirect;
|
|
105
108
|
method: string;
|
|
106
109
|
headers?: (HeadersInit & (HeadersInit | {
|
|
107
110
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
108
111
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
109
112
|
authorization: "Bearer" | "Basic";
|
|
110
113
|
})) | undefined;
|
|
111
|
-
redirect?: RequestRedirect;
|
|
112
114
|
cache?: RequestCache;
|
|
113
115
|
credentials?: RequestCredentials;
|
|
114
116
|
integrity?: string;
|
|
@@ -4,14 +4,16 @@ 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.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } 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.4fWbQEA_.js';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.js';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CTHn60Kj.js';
|
|
11
11
|
import 'better-call';
|
|
12
|
-
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.D1VhCXSa.js';
|
|
14
12
|
import 'kysely';
|
|
13
|
+
import 'zod/v4';
|
|
14
|
+
import '../../shared/better-auth.BTGXn6Wu.js';
|
|
15
|
+
import 'zod/v4/core';
|
|
16
|
+
import 'zod';
|
|
15
17
|
import 'better-sqlite3';
|
|
16
18
|
import 'bun:sqlite';
|
|
17
19
|
|
|
@@ -65,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
65
67
|
data: InferClientAPI<Option> extends {
|
|
66
68
|
getSession: () => Promise<infer Res>;
|
|
67
69
|
} ? Res extends {
|
|
68
|
-
data: infer S;
|
|
69
|
-
error: null;
|
|
70
|
-
} | {
|
|
71
70
|
data: null;
|
|
72
71
|
error: {
|
|
73
72
|
message?: string | undefined;
|
|
74
73
|
status: number;
|
|
75
74
|
statusText: string;
|
|
76
75
|
};
|
|
76
|
+
} | {
|
|
77
|
+
data: infer S;
|
|
78
|
+
error: null;
|
|
77
79
|
} ? S : Res : never;
|
|
78
80
|
isPending: boolean;
|
|
79
81
|
error: BetterFetchError | null;
|
|
@@ -83,15 +85,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
83
85
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
84
86
|
getSession: () => Promise<infer Res>;
|
|
85
87
|
} ? Res extends {
|
|
86
|
-
data: infer S;
|
|
87
|
-
error: null;
|
|
88
|
-
} | {
|
|
89
88
|
data: null;
|
|
90
89
|
error: {
|
|
91
90
|
message?: string | undefined;
|
|
92
91
|
status: number;
|
|
93
92
|
statusText: string;
|
|
94
93
|
};
|
|
94
|
+
} | {
|
|
95
|
+
data: infer S;
|
|
96
|
+
error: null;
|
|
95
97
|
} ? S : Res : never>;
|
|
96
98
|
};
|
|
97
99
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -102,13 +104,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
102
104
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
103
105
|
};
|
|
104
106
|
})[];
|
|
107
|
+
redirect?: RequestRedirect;
|
|
105
108
|
method: string;
|
|
106
109
|
headers?: (HeadersInit & (HeadersInit | {
|
|
107
110
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
108
111
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
109
112
|
authorization: "Bearer" | "Basic";
|
|
110
113
|
})) | undefined;
|
|
111
|
-
redirect?: RequestRedirect;
|
|
112
114
|
cache?: RequestCache;
|
|
113
115
|
credentials?: RequestCredentials;
|
|
114
116
|
integrity?: string;
|
|
@@ -1,15 +1,17 @@
|
|
|
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.Beq6UEbm.cjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
6
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BalZRjl9.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
|
-
import 'zod';
|
|
11
|
-
import '../../shared/better-auth.CZaGcPOu.cjs';
|
|
12
10
|
import 'kysely';
|
|
11
|
+
import 'zod/v4';
|
|
12
|
+
import '../../shared/better-auth.D3D9uwta.cjs';
|
|
13
|
+
import 'zod/v4/core';
|
|
14
|
+
import 'zod';
|
|
13
15
|
import 'better-sqlite3';
|
|
14
16
|
import 'bun:sqlite';
|
|
15
17
|
|
|
@@ -58,13 +60,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
58
60
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
59
61
|
};
|
|
60
62
|
})[];
|
|
63
|
+
redirect?: RequestRedirect;
|
|
61
64
|
method: string;
|
|
62
65
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
66
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
67
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
65
68
|
authorization: "Bearer" | "Basic";
|
|
66
69
|
})) | undefined;
|
|
67
|
-
redirect?: RequestRedirect;
|
|
68
70
|
cache?: RequestCache;
|
|
69
71
|
credentials?: RequestCredentials;
|
|
70
72
|
integrity?: string;
|
|
@@ -1,15 +1,17 @@
|
|
|
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.fpvODASA.mjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
6
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BbVHEJaq.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
|
-
import 'zod';
|
|
11
|
-
import '../../shared/better-auth.BGqNvLSj.mjs';
|
|
12
10
|
import 'kysely';
|
|
11
|
+
import 'zod/v4';
|
|
12
|
+
import '../../shared/better-auth.nM381a9n.mjs';
|
|
13
|
+
import 'zod/v4/core';
|
|
14
|
+
import 'zod';
|
|
13
15
|
import 'better-sqlite3';
|
|
14
16
|
import 'bun:sqlite';
|
|
15
17
|
|
|
@@ -58,13 +60,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
58
60
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
59
61
|
};
|
|
60
62
|
})[];
|
|
63
|
+
redirect?: RequestRedirect;
|
|
61
64
|
method: string;
|
|
62
65
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
66
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
67
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
65
68
|
authorization: "Bearer" | "Basic";
|
|
66
69
|
})) | undefined;
|
|
67
|
-
redirect?: RequestRedirect;
|
|
68
70
|
cache?: RequestCache;
|
|
69
71
|
credentials?: RequestCredentials;
|
|
70
72
|
integrity?: string;
|
|
@@ -1,15 +1,17 @@
|
|
|
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.4fWbQEA_.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
6
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.js';
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CTHn60Kj.js';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
|
-
import 'zod';
|
|
11
|
-
import '../../shared/better-auth.D1VhCXSa.js';
|
|
12
10
|
import 'kysely';
|
|
11
|
+
import 'zod/v4';
|
|
12
|
+
import '../../shared/better-auth.BTGXn6Wu.js';
|
|
13
|
+
import 'zod/v4/core';
|
|
14
|
+
import 'zod';
|
|
13
15
|
import 'better-sqlite3';
|
|
14
16
|
import 'bun:sqlite';
|
|
15
17
|
|
|
@@ -58,13 +60,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
58
60
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
59
61
|
};
|
|
60
62
|
})[];
|
|
63
|
+
redirect?: RequestRedirect;
|
|
61
64
|
method: string;
|
|
62
65
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
66
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
67
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
65
68
|
authorization: "Bearer" | "Basic";
|
|
66
69
|
})) | undefined;
|
|
67
|
-
redirect?: RequestRedirect;
|
|
68
70
|
cache?: RequestCache;
|
|
69
71
|
credentials?: RequestCredentials;
|
|
70
72
|
integrity?: string;
|
|
@@ -4,13 +4,15 @@ 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.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
9
|
-
import { f as BASE_ERROR_CODES } 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.Beq6UEbm.cjs';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BalZRjl9.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
|
-
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.CZaGcPOu.cjs';
|
|
13
11
|
import 'kysely';
|
|
12
|
+
import 'zod/v4';
|
|
13
|
+
import '../../shared/better-auth.D3D9uwta.cjs';
|
|
14
|
+
import 'zod/v4/core';
|
|
15
|
+
import 'zod';
|
|
14
16
|
import 'better-sqlite3';
|
|
15
17
|
import 'bun:sqlite';
|
|
16
18
|
|
|
@@ -22,15 +24,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
22
24
|
data: InferClientAPI<Option> extends {
|
|
23
25
|
getSession: () => Promise<infer Res>;
|
|
24
26
|
} ? Res extends {
|
|
27
|
+
data: infer S;
|
|
28
|
+
error: null;
|
|
29
|
+
} | {
|
|
25
30
|
data: null;
|
|
26
31
|
error: {
|
|
27
32
|
message?: string | undefined;
|
|
28
33
|
status: number;
|
|
29
34
|
statusText: string;
|
|
30
35
|
};
|
|
31
|
-
} | {
|
|
32
|
-
data: infer S;
|
|
33
|
-
error: null;
|
|
34
36
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
35
37
|
error: BetterFetchError | null;
|
|
36
38
|
isPending: boolean;
|
|
@@ -44,13 +46,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
44
46
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
45
47
|
};
|
|
46
48
|
})[];
|
|
49
|
+
redirect?: RequestRedirect;
|
|
47
50
|
method: string;
|
|
48
51
|
headers?: (HeadersInit & (HeadersInit | {
|
|
49
52
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
50
53
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
51
54
|
authorization: "Bearer" | "Basic";
|
|
52
55
|
})) | undefined;
|
|
53
|
-
redirect?: RequestRedirect;
|
|
54
56
|
cache?: RequestCache;
|
|
55
57
|
credentials?: RequestCredentials;
|
|
56
58
|
integrity?: string;
|
|
@@ -105,15 +107,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
105
107
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
106
108
|
getSession: () => Promise<infer Res>;
|
|
107
109
|
} ? Res extends {
|
|
110
|
+
data: infer S;
|
|
111
|
+
error: null;
|
|
112
|
+
} | {
|
|
108
113
|
data: null;
|
|
109
114
|
error: {
|
|
110
115
|
message?: string | undefined;
|
|
111
116
|
status: number;
|
|
112
117
|
statusText: string;
|
|
113
118
|
};
|
|
114
|
-
} | {
|
|
115
|
-
data: infer S;
|
|
116
|
-
error: null;
|
|
117
119
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
118
120
|
};
|
|
119
121
|
$ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
|
|
@@ -4,13 +4,15 @@ 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.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
9
|
-
import { f as BASE_ERROR_CODES } 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.fpvODASA.mjs';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BbVHEJaq.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
|
-
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.BGqNvLSj.mjs';
|
|
13
11
|
import 'kysely';
|
|
12
|
+
import 'zod/v4';
|
|
13
|
+
import '../../shared/better-auth.nM381a9n.mjs';
|
|
14
|
+
import 'zod/v4/core';
|
|
15
|
+
import 'zod';
|
|
14
16
|
import 'better-sqlite3';
|
|
15
17
|
import 'bun:sqlite';
|
|
16
18
|
|
|
@@ -22,15 +24,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
22
24
|
data: InferClientAPI<Option> extends {
|
|
23
25
|
getSession: () => Promise<infer Res>;
|
|
24
26
|
} ? Res extends {
|
|
27
|
+
data: infer S;
|
|
28
|
+
error: null;
|
|
29
|
+
} | {
|
|
25
30
|
data: null;
|
|
26
31
|
error: {
|
|
27
32
|
message?: string | undefined;
|
|
28
33
|
status: number;
|
|
29
34
|
statusText: string;
|
|
30
35
|
};
|
|
31
|
-
} | {
|
|
32
|
-
data: infer S;
|
|
33
|
-
error: null;
|
|
34
36
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
35
37
|
error: BetterFetchError | null;
|
|
36
38
|
isPending: boolean;
|
|
@@ -44,13 +46,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
44
46
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
45
47
|
};
|
|
46
48
|
})[];
|
|
49
|
+
redirect?: RequestRedirect;
|
|
47
50
|
method: string;
|
|
48
51
|
headers?: (HeadersInit & (HeadersInit | {
|
|
49
52
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
50
53
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
51
54
|
authorization: "Bearer" | "Basic";
|
|
52
55
|
})) | undefined;
|
|
53
|
-
redirect?: RequestRedirect;
|
|
54
56
|
cache?: RequestCache;
|
|
55
57
|
credentials?: RequestCredentials;
|
|
56
58
|
integrity?: string;
|
|
@@ -105,15 +107,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
105
107
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
106
108
|
getSession: () => Promise<infer Res>;
|
|
107
109
|
} ? Res extends {
|
|
110
|
+
data: infer S;
|
|
111
|
+
error: null;
|
|
112
|
+
} | {
|
|
108
113
|
data: null;
|
|
109
114
|
error: {
|
|
110
115
|
message?: string | undefined;
|
|
111
116
|
status: number;
|
|
112
117
|
statusText: string;
|
|
113
118
|
};
|
|
114
|
-
} | {
|
|
115
|
-
data: infer S;
|
|
116
|
-
error: null;
|
|
117
119
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
118
120
|
};
|
|
119
121
|
$ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
|
|
@@ -4,13 +4,15 @@ 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.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
9
|
-
import { f as BASE_ERROR_CODES } 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.4fWbQEA_.js';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.js';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CTHn60Kj.js';
|
|
10
10
|
import 'better-call';
|
|
11
|
-
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.D1VhCXSa.js';
|
|
13
11
|
import 'kysely';
|
|
12
|
+
import 'zod/v4';
|
|
13
|
+
import '../../shared/better-auth.BTGXn6Wu.js';
|
|
14
|
+
import 'zod/v4/core';
|
|
15
|
+
import 'zod';
|
|
14
16
|
import 'better-sqlite3';
|
|
15
17
|
import 'bun:sqlite';
|
|
16
18
|
|
|
@@ -22,15 +24,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
22
24
|
data: InferClientAPI<Option> extends {
|
|
23
25
|
getSession: () => Promise<infer Res>;
|
|
24
26
|
} ? Res extends {
|
|
27
|
+
data: infer S;
|
|
28
|
+
error: null;
|
|
29
|
+
} | {
|
|
25
30
|
data: null;
|
|
26
31
|
error: {
|
|
27
32
|
message?: string | undefined;
|
|
28
33
|
status: number;
|
|
29
34
|
statusText: string;
|
|
30
35
|
};
|
|
31
|
-
} | {
|
|
32
|
-
data: infer S;
|
|
33
|
-
error: null;
|
|
34
36
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
35
37
|
error: BetterFetchError | null;
|
|
36
38
|
isPending: boolean;
|
|
@@ -44,13 +46,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
44
46
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
45
47
|
};
|
|
46
48
|
})[];
|
|
49
|
+
redirect?: RequestRedirect;
|
|
47
50
|
method: string;
|
|
48
51
|
headers?: (HeadersInit & (HeadersInit | {
|
|
49
52
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
50
53
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
51
54
|
authorization: "Bearer" | "Basic";
|
|
52
55
|
})) | undefined;
|
|
53
|
-
redirect?: RequestRedirect;
|
|
54
56
|
cache?: RequestCache;
|
|
55
57
|
credentials?: RequestCredentials;
|
|
56
58
|
integrity?: string;
|
|
@@ -105,15 +107,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
105
107
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
106
108
|
getSession: () => Promise<infer Res>;
|
|
107
109
|
} ? Res extends {
|
|
110
|
+
data: infer S;
|
|
111
|
+
error: null;
|
|
112
|
+
} | {
|
|
108
113
|
data: null;
|
|
109
114
|
error: {
|
|
110
115
|
message?: string | undefined;
|
|
111
116
|
status: number;
|
|
112
117
|
statusText: string;
|
|
113
118
|
};
|
|
114
|
-
} | {
|
|
115
|
-
data: infer S;
|
|
116
|
-
error: null;
|
|
117
119
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
118
120
|
};
|
|
119
121
|
$ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
|
|
@@ -4,13 +4,15 @@ 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.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
9
|
-
import { f as BASE_ERROR_CODES } 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.Beq6UEbm.cjs';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BalZRjl9.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
|
-
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.CZaGcPOu.cjs';
|
|
13
11
|
import 'kysely';
|
|
12
|
+
import 'zod/v4';
|
|
13
|
+
import '../../shared/better-auth.D3D9uwta.cjs';
|
|
14
|
+
import 'zod/v4/core';
|
|
15
|
+
import 'zod';
|
|
14
16
|
import 'better-sqlite3';
|
|
15
17
|
import 'bun:sqlite';
|
|
16
18
|
|
|
@@ -82,13 +84,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
82
84
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
83
85
|
};
|
|
84
86
|
})[];
|
|
87
|
+
redirect?: RequestRedirect;
|
|
85
88
|
method: string;
|
|
86
89
|
headers?: (HeadersInit & (HeadersInit | {
|
|
87
90
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
88
91
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
89
92
|
authorization: "Bearer" | "Basic";
|
|
90
93
|
})) | undefined;
|
|
91
|
-
redirect?: RequestRedirect;
|
|
92
94
|
cache?: RequestCache;
|
|
93
95
|
credentials?: RequestCredentials;
|
|
94
96
|
integrity?: string;
|
|
@@ -4,13 +4,15 @@ 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.
|
|
8
|
-
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.
|
|
9
|
-
import { f as BASE_ERROR_CODES } 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.fpvODASA.mjs';
|
|
8
|
+
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BbVHEJaq.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
|
-
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.BGqNvLSj.mjs';
|
|
13
11
|
import 'kysely';
|
|
12
|
+
import 'zod/v4';
|
|
13
|
+
import '../../shared/better-auth.nM381a9n.mjs';
|
|
14
|
+
import 'zod/v4/core';
|
|
15
|
+
import 'zod';
|
|
14
16
|
import 'better-sqlite3';
|
|
15
17
|
import 'bun:sqlite';
|
|
16
18
|
|
|
@@ -82,13 +84,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
82
84
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
83
85
|
};
|
|
84
86
|
})[];
|
|
87
|
+
redirect?: RequestRedirect;
|
|
85
88
|
method: string;
|
|
86
89
|
headers?: (HeadersInit & (HeadersInit | {
|
|
87
90
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
88
91
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
89
92
|
authorization: "Bearer" | "Basic";
|
|
90
93
|
})) | undefined;
|
|
91
|
-
redirect?: RequestRedirect;
|
|
92
94
|
cache?: RequestCache;
|
|
93
95
|
credentials?: RequestCredentials;
|
|
94
96
|
integrity?: string;
|