better-auth 1.3.8-beta.4 → 1.3.8-beta.5
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 +1 -1
- 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/drizzle-adapter/index.mjs +1 -1
- package/dist/adapters/index.cjs +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/index.mjs +1 -1
- package/dist/adapters/kysely-adapter/index.cjs +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/kysely-adapter/index.mjs +2 -2
- package/dist/adapters/memory-adapter/index.cjs +2 -2
- 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/memory-adapter/index.mjs +2 -2
- package/dist/adapters/mongodb-adapter/index.cjs +2 -2
- 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/mongodb-adapter/index.mjs +2 -2
- package/dist/adapters/prisma-adapter/index.cjs +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/prisma-adapter/index.mjs +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 +3 -3
- 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 +5 -5
- 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/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.d.cts +3 -3
- package/dist/client/react/index.d.mts +3 -3
- package/dist/client/react/index.d.ts +3 -3
- package/dist/client/solid/index.d.cts +3 -3
- package/dist/client/solid/index.d.mts +3 -3
- package/dist/client/solid/index.d.ts +3 -3
- package/dist/client/svelte/index.d.cts +9 -9
- package/dist/client/svelte/index.d.mts +9 -9
- package/dist/client/svelte/index.d.ts +9 -9
- package/dist/client/vue/index.d.cts +12 -12
- package/dist/client/vue/index.d.mts +12 -12
- package/dist/client/vue/index.d.ts +12 -12
- 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/crypto/index.cjs +4 -0
- package/dist/crypto/index.mjs +4 -0
- package/dist/db/index.cjs +4 -4
- 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 +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +7 -7
- package/dist/integrations/next-js.cjs +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/integrations/svelte-kit.cjs +3 -3
- 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 +3 -3
- package/dist/oauth2/index.cjs +2 -2
- 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 +2 -2
- package/dist/plugins/admin/index.cjs +3 -3
- package/dist/plugins/admin/index.d.cts +3 -3
- package/dist/plugins/admin/index.d.mts +3 -3
- package/dist/plugins/admin/index.d.ts +3 -3
- package/dist/plugins/admin/index.mjs +3 -3
- package/dist/plugins/anonymous/index.cjs +3 -3
- 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 +3 -3
- package/dist/plugins/bearer/index.cjs +2 -2
- 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 +2 -2
- 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/custom-session/index.cjs +3 -3
- 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 +3 -3
- package/dist/plugins/device-authorization/index.cjs +1 -1
- 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 +1 -1
- package/dist/plugins/email-otp/index.cjs +2 -2
- 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 +2 -2
- package/dist/plugins/generic-oauth/index.cjs +3 -3
- 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 +3 -3
- package/dist/plugins/haveibeenpwned/index.cjs +3 -3
- 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 +3 -3
- package/dist/plugins/index.cjs +7 -7
- package/dist/plugins/index.d.cts +3 -3
- package/dist/plugins/index.d.mts +3 -3
- package/dist/plugins/index.d.ts +3 -3
- package/dist/plugins/index.mjs +9 -9
- package/dist/plugins/jwt/index.cjs +2 -2
- 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 +2 -2
- package/dist/plugins/magic-link/index.cjs +2 -2
- package/dist/plugins/magic-link/index.mjs +2 -2
- package/dist/plugins/multi-session/index.cjs +3 -3
- 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 +3 -3
- package/dist/plugins/oauth-proxy/index.cjs +2 -2
- 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 +2 -2
- package/dist/plugins/oidc-provider/index.cjs +3 -3
- package/dist/plugins/oidc-provider/index.d.cts +1 -1
- package/dist/plugins/oidc-provider/index.d.mts +1 -1
- package/dist/plugins/oidc-provider/index.d.ts +1 -1
- package/dist/plugins/oidc-provider/index.mjs +3 -3
- package/dist/plugins/one-tap/index.cjs +3 -3
- package/dist/plugins/one-tap/index.mjs +3 -3
- package/dist/plugins/one-time-token/index.cjs +4 -4
- 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 +4 -4
- package/dist/plugins/open-api/index.cjs +2 -2
- 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 +2 -2
- package/dist/plugins/organization/index.cjs +4 -4
- package/dist/plugins/organization/index.d.cts +37 -5
- package/dist/plugins/organization/index.d.mts +37 -5
- package/dist/plugins/organization/index.d.ts +37 -5
- package/dist/plugins/organization/index.mjs +4 -4
- package/dist/plugins/passkey/index.cjs +3 -3
- 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 +3 -3
- package/dist/plugins/phone-number/index.cjs +3 -3
- 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 +3 -3
- package/dist/plugins/siwe/index.cjs +3 -3
- 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 +3 -3
- package/dist/plugins/sso/index.cjs +3 -3
- package/dist/plugins/sso/index.d.cts +1 -1
- package/dist/plugins/sso/index.d.mts +1 -1
- package/dist/plugins/sso/index.d.ts +1 -1
- package/dist/plugins/sso/index.mjs +3 -3
- package/dist/plugins/two-factor/index.cjs +2 -2
- 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 +2 -2
- package/dist/plugins/username/index.cjs +2 -2
- package/dist/plugins/username/index.d.cts +1 -1
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/plugins/username/index.d.ts +1 -1
- package/dist/plugins/username/index.mjs +2 -2
- package/dist/shared/{better-auth.BeA5VIAP.d.mts → better-auth.0ocXQa3x.d.mts} +1 -1
- package/dist/shared/{better-auth.CkxRAus3.d.cts → better-auth.6Fu7s4Jj.d.cts} +8 -8
- package/dist/shared/{better-auth.CYkDoFdW.d.ts → better-auth.9fbTzUjI.d.ts} +8 -8
- package/dist/shared/{better-auth.B7MQmN7r.d.cts → better-auth.B-1ESWTT.d.cts} +1 -1
- package/dist/shared/{better-auth.CpW8Jb6y.cjs → better-auth.B2msLoMo.cjs} +3 -3
- package/dist/shared/{better-auth.BfeJWAMn.mjs → better-auth.BCc3zPBF.mjs} +1 -1
- package/dist/shared/{better-auth.DmODih0G.mjs → better-auth.BE51sqlX.mjs} +3 -3
- package/dist/shared/{better-auth.BUiElJM6.cjs → better-auth.BKqT_ZVS.cjs} +3 -3
- package/dist/shared/{better-auth.Ddn-Kb43.mjs → better-auth.BVF2_YJN.mjs} +1 -1
- package/dist/shared/{better-auth.SIzsChC6.mjs → better-auth.Ba_pqY0l.mjs} +2 -2
- package/dist/shared/{better-auth.DmBU2Klq.cjs → better-auth.Bco357J8.cjs} +1 -1
- package/dist/shared/{better-auth.DBjOlY_t.d.mts → better-auth.CPub526R.d.cts} +1 -1
- package/dist/shared/{better-auth.Ceym6hBa.cjs → better-auth.CV-4ifSd.cjs} +2 -2
- package/dist/shared/{better-auth.Cv9uwNRT.d.cts → better-auth.C_sC2HVS.d.cts} +1 -1
- package/dist/shared/{better-auth.D2zPwm_k.cjs → better-auth.CbBksUvo.cjs} +4 -4
- package/dist/shared/{better-auth.DqZkb8RK.mjs → better-auth.CfB-tQyX.mjs} +7 -1
- package/dist/shared/{better-auth.DRp9PWyh.cjs → better-auth.CiuRzSQH.cjs} +1 -1
- package/dist/shared/{better-auth.Duh5FRN2.mjs → better-auth.CpaD1RO9.mjs} +1 -1
- package/dist/shared/{better-auth.BQZK-wJu.cjs → better-auth.CwxQpTGf.cjs} +1 -1
- package/dist/shared/{better-auth.CLdWb3SL.mjs → better-auth.CxFDzRIT.mjs} +1 -1
- package/dist/shared/{better-auth.BHgyyrFr.mjs → better-auth.DAX7uGE1.mjs} +3 -3
- package/dist/shared/{better-auth.BNczdx42.mjs → better-auth.DDozCDMS.mjs} +33 -8
- package/dist/shared/{better-auth.BT8cUF7T.mjs → better-auth.DGJgCfAm.mjs} +2 -2
- package/dist/shared/{better-auth.DqkDf_wI.d.cts → better-auth.DJkn-F_t.d.mts} +1 -1
- package/dist/shared/{better-auth.CHQjJhgG.d.mts → better-auth.DYU6O80J.d.mts} +8 -8
- package/dist/shared/{better-auth.CAew6LWO.mjs → better-auth.DayjxkqD.mjs} +1 -1
- package/dist/shared/{better-auth.CHS_bFaK.mjs → better-auth.DgX9nQ3e.mjs} +4 -4
- package/dist/shared/{better-auth.CfjjR3nO.d.ts → better-auth.Dq9LQaVG.d.ts} +1 -1
- package/dist/shared/{better-auth.xvxdjoSR.cjs → better-auth.L_XZAIeN.cjs} +33 -8
- package/dist/shared/{better-auth.DCqgE_iR.d.ts → better-auth.UBkgjjZk.d.ts} +1 -1
- package/dist/shared/{better-auth.CGAZXf66.cjs → better-auth.XbRtJVmM.cjs} +1 -1
- package/dist/shared/{better-auth.CG1BaUDq.d.ts → better-auth.XtTSqBkR.d.ts} +1 -1
- package/dist/shared/{better-auth.Cc3_crZ-.cjs → better-auth.ZhaALnFz.cjs} +7 -1
- package/dist/shared/{better-auth.BgBYBYNw.d.mts → better-auth.evNMgBq8.d.mts} +1 -1
- package/dist/shared/{better-auth.CI84ZLNV.mjs → better-auth.w5Mg3-u0.mjs} +2 -2
- package/dist/shared/{better-auth.G4r7NeaH.cjs → better-auth.yHdubbkw.cjs} +2 -2
- package/dist/shared/{better-auth.DlH62fwB.cjs → better-auth.z3V3mA_O.cjs} +2 -2
- package/dist/shared/{better-auth.BI9sTLIb.cjs → better-auth.zQKOFY7X.cjs} +1 -1
- package/dist/social-providers/index.cjs +2 -2
- package/dist/social-providers/index.mjs +2 -2
- package/dist/test-utils/index.cjs +9 -9
- package/dist/test-utils/index.d.cts +2 -2
- package/dist/test-utils/index.d.mts +2 -2
- package/dist/test-utils/index.d.ts +2 -2
- package/dist/test-utils/index.mjs +9 -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 +2 -2
|
@@ -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.B-1ESWTT.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 { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.6Fu7s4Jj.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
@@ -71,13 +71,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
71
71
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
72
72
|
};
|
|
73
73
|
})[];
|
|
74
|
-
redirect?: RequestRedirect | undefined;
|
|
75
74
|
method: string;
|
|
76
75
|
headers?: (HeadersInit & (HeadersInit | {
|
|
77
76
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
78
77
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
79
78
|
authorization: "Bearer" | "Basic";
|
|
80
79
|
})) | undefined;
|
|
80
|
+
redirect?: RequestRedirect | undefined;
|
|
81
81
|
cache?: RequestCache | undefined;
|
|
82
82
|
credentials?: RequestCredentials;
|
|
83
83
|
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.0ocXQa3x.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 { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DYU6O80J.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
@@ -71,13 +71,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
71
71
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
72
72
|
};
|
|
73
73
|
})[];
|
|
74
|
-
redirect?: RequestRedirect | undefined;
|
|
75
74
|
method: string;
|
|
76
75
|
headers?: (HeadersInit & (HeadersInit | {
|
|
77
76
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
78
77
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
79
78
|
authorization: "Bearer" | "Basic";
|
|
80
79
|
})) | undefined;
|
|
80
|
+
redirect?: RequestRedirect | undefined;
|
|
81
81
|
cache?: RequestCache | undefined;
|
|
82
82
|
credentials?: RequestCredentials;
|
|
83
83
|
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.Dq9LQaVG.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 { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.9fbTzUjI.js';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
@@ -71,13 +71,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
71
71
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
72
72
|
};
|
|
73
73
|
})[];
|
|
74
|
-
redirect?: RequestRedirect | undefined;
|
|
75
74
|
method: string;
|
|
76
75
|
headers?: (HeadersInit & (HeadersInit | {
|
|
77
76
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
78
77
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
79
78
|
authorization: "Bearer" | "Basic";
|
|
80
79
|
})) | undefined;
|
|
80
|
+
redirect?: RequestRedirect | undefined;
|
|
81
81
|
cache?: RequestCache | undefined;
|
|
82
82
|
credentials?: RequestCredentials;
|
|
83
83
|
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.B-1ESWTT.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.6Fu7s4Jj.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
@@ -26,15 +26,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
26
26
|
data: InferClientAPI<Option> extends {
|
|
27
27
|
getSession: () => Promise<infer Res>;
|
|
28
28
|
} ? Res extends {
|
|
29
|
-
data: infer S;
|
|
30
|
-
error: null;
|
|
31
|
-
} | {
|
|
32
29
|
data: null;
|
|
33
30
|
error: {
|
|
34
31
|
message?: string | undefined;
|
|
35
32
|
status: number;
|
|
36
33
|
statusText: string;
|
|
37
34
|
};
|
|
35
|
+
} | {
|
|
36
|
+
data: infer S;
|
|
37
|
+
error: null;
|
|
38
38
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
39
39
|
error: BetterFetchError | null;
|
|
40
40
|
isPending: boolean;
|
|
@@ -57,13 +57,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
57
57
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
58
58
|
};
|
|
59
59
|
})[];
|
|
60
|
-
redirect?: RequestRedirect | undefined;
|
|
61
60
|
method: string;
|
|
62
61
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
62
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
63
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
65
64
|
authorization: "Bearer" | "Basic";
|
|
66
65
|
})) | undefined;
|
|
66
|
+
redirect?: RequestRedirect | undefined;
|
|
67
67
|
cache?: RequestCache | undefined;
|
|
68
68
|
credentials?: RequestCredentials;
|
|
69
69
|
integrity?: string | undefined;
|
|
@@ -114,15 +114,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
114
114
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
115
115
|
getSession: () => Promise<infer Res>;
|
|
116
116
|
} ? Res extends {
|
|
117
|
-
data: infer S;
|
|
118
|
-
error: null;
|
|
119
|
-
} | {
|
|
120
117
|
data: null;
|
|
121
118
|
error: {
|
|
122
119
|
message?: string | undefined;
|
|
123
120
|
status: number;
|
|
124
121
|
statusText: string;
|
|
125
122
|
};
|
|
123
|
+
} | {
|
|
124
|
+
data: infer S;
|
|
125
|
+
error: null;
|
|
126
126
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
127
127
|
};
|
|
128
128
|
$ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
|
|
@@ -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.0ocXQa3x.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DYU6O80J.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
@@ -26,15 +26,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
26
26
|
data: InferClientAPI<Option> extends {
|
|
27
27
|
getSession: () => Promise<infer Res>;
|
|
28
28
|
} ? Res extends {
|
|
29
|
-
data: infer S;
|
|
30
|
-
error: null;
|
|
31
|
-
} | {
|
|
32
29
|
data: null;
|
|
33
30
|
error: {
|
|
34
31
|
message?: string | undefined;
|
|
35
32
|
status: number;
|
|
36
33
|
statusText: string;
|
|
37
34
|
};
|
|
35
|
+
} | {
|
|
36
|
+
data: infer S;
|
|
37
|
+
error: null;
|
|
38
38
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
39
39
|
error: BetterFetchError | null;
|
|
40
40
|
isPending: boolean;
|
|
@@ -57,13 +57,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
57
57
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
58
58
|
};
|
|
59
59
|
})[];
|
|
60
|
-
redirect?: RequestRedirect | undefined;
|
|
61
60
|
method: string;
|
|
62
61
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
62
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
63
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
65
64
|
authorization: "Bearer" | "Basic";
|
|
66
65
|
})) | undefined;
|
|
66
|
+
redirect?: RequestRedirect | undefined;
|
|
67
67
|
cache?: RequestCache | undefined;
|
|
68
68
|
credentials?: RequestCredentials;
|
|
69
69
|
integrity?: string | undefined;
|
|
@@ -114,15 +114,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
114
114
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
115
115
|
getSession: () => Promise<infer Res>;
|
|
116
116
|
} ? Res extends {
|
|
117
|
-
data: infer S;
|
|
118
|
-
error: null;
|
|
119
|
-
} | {
|
|
120
117
|
data: null;
|
|
121
118
|
error: {
|
|
122
119
|
message?: string | undefined;
|
|
123
120
|
status: number;
|
|
124
121
|
statusText: string;
|
|
125
122
|
};
|
|
123
|
+
} | {
|
|
124
|
+
data: infer S;
|
|
125
|
+
error: null;
|
|
126
126
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
127
127
|
};
|
|
128
128
|
$ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
|
|
@@ -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.Dq9LQaVG.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.9fbTzUjI.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
@@ -26,15 +26,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
26
26
|
data: InferClientAPI<Option> extends {
|
|
27
27
|
getSession: () => Promise<infer Res>;
|
|
28
28
|
} ? Res extends {
|
|
29
|
-
data: infer S;
|
|
30
|
-
error: null;
|
|
31
|
-
} | {
|
|
32
29
|
data: null;
|
|
33
30
|
error: {
|
|
34
31
|
message?: string | undefined;
|
|
35
32
|
status: number;
|
|
36
33
|
statusText: string;
|
|
37
34
|
};
|
|
35
|
+
} | {
|
|
36
|
+
data: infer S;
|
|
37
|
+
error: null;
|
|
38
38
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
39
39
|
error: BetterFetchError | null;
|
|
40
40
|
isPending: boolean;
|
|
@@ -57,13 +57,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
57
57
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
58
58
|
};
|
|
59
59
|
})[];
|
|
60
|
-
redirect?: RequestRedirect | undefined;
|
|
61
60
|
method: string;
|
|
62
61
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
62
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
63
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
65
64
|
authorization: "Bearer" | "Basic";
|
|
66
65
|
})) | undefined;
|
|
66
|
+
redirect?: RequestRedirect | undefined;
|
|
67
67
|
cache?: RequestCache | undefined;
|
|
68
68
|
credentials?: RequestCredentials;
|
|
69
69
|
integrity?: string | undefined;
|
|
@@ -114,15 +114,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
114
114
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
115
115
|
getSession: () => Promise<infer Res>;
|
|
116
116
|
} ? Res extends {
|
|
117
|
-
data: infer S;
|
|
118
|
-
error: null;
|
|
119
|
-
} | {
|
|
120
117
|
data: null;
|
|
121
118
|
error: {
|
|
122
119
|
message?: string | undefined;
|
|
123
120
|
status: number;
|
|
124
121
|
statusText: string;
|
|
125
122
|
};
|
|
123
|
+
} | {
|
|
124
|
+
data: infer S;
|
|
125
|
+
error: null;
|
|
126
126
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
127
127
|
};
|
|
128
128
|
$ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
|
|
@@ -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.B-1ESWTT.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.6Fu7s4Jj.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
@@ -27,15 +27,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
27
27
|
data: InferClientAPI<Option> extends {
|
|
28
28
|
getSession: () => Promise<infer Res>;
|
|
29
29
|
} ? Res extends {
|
|
30
|
+
data: infer S;
|
|
31
|
+
error: null;
|
|
32
|
+
} | {
|
|
30
33
|
data: null;
|
|
31
34
|
error: {
|
|
32
35
|
message?: string | undefined;
|
|
33
36
|
status: number;
|
|
34
37
|
statusText: string;
|
|
35
38
|
};
|
|
36
|
-
} | {
|
|
37
|
-
data: infer S;
|
|
38
|
-
error: null;
|
|
39
39
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
40
40
|
isPending: boolean;
|
|
41
41
|
isRefetching: boolean;
|
|
@@ -45,15 +45,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
45
45
|
data: Ref<InferClientAPI<Option> extends {
|
|
46
46
|
getSession: () => Promise<infer Res>;
|
|
47
47
|
} ? Res extends {
|
|
48
|
+
data: infer S;
|
|
49
|
+
error: null;
|
|
50
|
+
} | {
|
|
48
51
|
data: null;
|
|
49
52
|
error: {
|
|
50
53
|
message?: string | undefined;
|
|
51
54
|
status: number;
|
|
52
55
|
statusText: string;
|
|
53
56
|
};
|
|
54
|
-
} | {
|
|
55
|
-
data: infer S;
|
|
56
|
-
error: null;
|
|
57
57
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
58
58
|
isPending: false;
|
|
59
59
|
error: Ref<{
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
+
data: infer S;
|
|
71
|
+
error: null;
|
|
72
|
+
} | {
|
|
70
73
|
data: null;
|
|
71
74
|
error: {
|
|
72
75
|
message?: string | undefined;
|
|
73
76
|
status: number;
|
|
74
77
|
statusText: string;
|
|
75
78
|
};
|
|
76
|
-
} | {
|
|
77
|
-
data: infer S;
|
|
78
|
-
error: null;
|
|
79
79
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
80
80
|
};
|
|
81
81
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -95,13 +95,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
95
95
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
96
96
|
};
|
|
97
97
|
})[];
|
|
98
|
-
redirect?: RequestRedirect | undefined;
|
|
99
98
|
method: string;
|
|
100
99
|
headers?: (HeadersInit & (HeadersInit | {
|
|
101
100
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
102
101
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
103
102
|
authorization: "Bearer" | "Basic";
|
|
104
103
|
})) | undefined;
|
|
104
|
+
redirect?: RequestRedirect | undefined;
|
|
105
105
|
cache?: RequestCache | undefined;
|
|
106
106
|
credentials?: RequestCredentials;
|
|
107
107
|
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.0ocXQa3x.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DYU6O80J.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
@@ -27,15 +27,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
27
27
|
data: InferClientAPI<Option> extends {
|
|
28
28
|
getSession: () => Promise<infer Res>;
|
|
29
29
|
} ? Res extends {
|
|
30
|
+
data: infer S;
|
|
31
|
+
error: null;
|
|
32
|
+
} | {
|
|
30
33
|
data: null;
|
|
31
34
|
error: {
|
|
32
35
|
message?: string | undefined;
|
|
33
36
|
status: number;
|
|
34
37
|
statusText: string;
|
|
35
38
|
};
|
|
36
|
-
} | {
|
|
37
|
-
data: infer S;
|
|
38
|
-
error: null;
|
|
39
39
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
40
40
|
isPending: boolean;
|
|
41
41
|
isRefetching: boolean;
|
|
@@ -45,15 +45,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
45
45
|
data: Ref<InferClientAPI<Option> extends {
|
|
46
46
|
getSession: () => Promise<infer Res>;
|
|
47
47
|
} ? Res extends {
|
|
48
|
+
data: infer S;
|
|
49
|
+
error: null;
|
|
50
|
+
} | {
|
|
48
51
|
data: null;
|
|
49
52
|
error: {
|
|
50
53
|
message?: string | undefined;
|
|
51
54
|
status: number;
|
|
52
55
|
statusText: string;
|
|
53
56
|
};
|
|
54
|
-
} | {
|
|
55
|
-
data: infer S;
|
|
56
|
-
error: null;
|
|
57
57
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
58
58
|
isPending: false;
|
|
59
59
|
error: Ref<{
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
+
data: infer S;
|
|
71
|
+
error: null;
|
|
72
|
+
} | {
|
|
70
73
|
data: null;
|
|
71
74
|
error: {
|
|
72
75
|
message?: string | undefined;
|
|
73
76
|
status: number;
|
|
74
77
|
statusText: string;
|
|
75
78
|
};
|
|
76
|
-
} | {
|
|
77
|
-
data: infer S;
|
|
78
|
-
error: null;
|
|
79
79
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
80
80
|
};
|
|
81
81
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -95,13 +95,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
95
95
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
96
96
|
};
|
|
97
97
|
})[];
|
|
98
|
-
redirect?: RequestRedirect | undefined;
|
|
99
98
|
method: string;
|
|
100
99
|
headers?: (HeadersInit & (HeadersInit | {
|
|
101
100
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
102
101
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
103
102
|
authorization: "Bearer" | "Basic";
|
|
104
103
|
})) | undefined;
|
|
104
|
+
redirect?: RequestRedirect | undefined;
|
|
105
105
|
cache?: RequestCache | undefined;
|
|
106
106
|
credentials?: RequestCredentials;
|
|
107
107
|
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.Dq9LQaVG.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.9fbTzUjI.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
@@ -27,15 +27,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
27
27
|
data: InferClientAPI<Option> extends {
|
|
28
28
|
getSession: () => Promise<infer Res>;
|
|
29
29
|
} ? Res extends {
|
|
30
|
+
data: infer S;
|
|
31
|
+
error: null;
|
|
32
|
+
} | {
|
|
30
33
|
data: null;
|
|
31
34
|
error: {
|
|
32
35
|
message?: string | undefined;
|
|
33
36
|
status: number;
|
|
34
37
|
statusText: string;
|
|
35
38
|
};
|
|
36
|
-
} | {
|
|
37
|
-
data: infer S;
|
|
38
|
-
error: null;
|
|
39
39
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
40
40
|
isPending: boolean;
|
|
41
41
|
isRefetching: boolean;
|
|
@@ -45,15 +45,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
45
45
|
data: Ref<InferClientAPI<Option> extends {
|
|
46
46
|
getSession: () => Promise<infer Res>;
|
|
47
47
|
} ? Res extends {
|
|
48
|
+
data: infer S;
|
|
49
|
+
error: null;
|
|
50
|
+
} | {
|
|
48
51
|
data: null;
|
|
49
52
|
error: {
|
|
50
53
|
message?: string | undefined;
|
|
51
54
|
status: number;
|
|
52
55
|
statusText: string;
|
|
53
56
|
};
|
|
54
|
-
} | {
|
|
55
|
-
data: infer S;
|
|
56
|
-
error: null;
|
|
57
57
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
58
58
|
isPending: false;
|
|
59
59
|
error: Ref<{
|
|
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
67
67
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
68
68
|
getSession: () => Promise<infer Res>;
|
|
69
69
|
} ? Res extends {
|
|
70
|
+
data: infer S;
|
|
71
|
+
error: null;
|
|
72
|
+
} | {
|
|
70
73
|
data: null;
|
|
71
74
|
error: {
|
|
72
75
|
message?: string | undefined;
|
|
73
76
|
status: number;
|
|
74
77
|
statusText: string;
|
|
75
78
|
};
|
|
76
|
-
} | {
|
|
77
|
-
data: infer S;
|
|
78
|
-
error: null;
|
|
79
79
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
80
80
|
};
|
|
81
81
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -95,13 +95,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
95
95
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
96
96
|
};
|
|
97
97
|
})[];
|
|
98
|
-
redirect?: RequestRedirect | undefined;
|
|
99
98
|
method: string;
|
|
100
99
|
headers?: (HeadersInit & (HeadersInit | {
|
|
101
100
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
102
101
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
103
102
|
authorization: "Bearer" | "Basic";
|
|
104
103
|
})) | undefined;
|
|
104
|
+
redirect?: RequestRedirect | undefined;
|
|
105
105
|
cache?: RequestCache | undefined;
|
|
106
106
|
credentials?: RequestCredentials;
|
|
107
107
|
integrity?: string | undefined;
|
package/dist/cookies/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.6Fu7s4Jj.cjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod/v4';
|
|
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 { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.DYU6O80J.mjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod/v4';
|
|
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 { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.9fbTzUjI.js';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../shared/better-auth.DTtXpZYr.js';
|
package/dist/crypto/index.cjs
CHANGED
|
@@ -10,6 +10,7 @@ const scrypt = require('@noble/hashes/scrypt');
|
|
|
10
10
|
const utils = require('@better-auth/utils');
|
|
11
11
|
const hex = require('@better-auth/utils/hex');
|
|
12
12
|
const utils$1 = require('@noble/hashes/utils');
|
|
13
|
+
const index = require('../shared/better-auth.ANpbi45u.cjs');
|
|
13
14
|
const random = require('../shared/better-auth.CYeOI8C-.cjs');
|
|
14
15
|
require('@better-auth/utils/random');
|
|
15
16
|
|
|
@@ -66,6 +67,9 @@ const verifyPassword = async ({
|
|
|
66
67
|
password
|
|
67
68
|
}) => {
|
|
68
69
|
const [salt, key] = hash.split(":");
|
|
70
|
+
if (!salt || !key) {
|
|
71
|
+
throw new index.BetterAuthError("Invalid password hash");
|
|
72
|
+
}
|
|
69
73
|
const targetKey = await generateKey(password, salt);
|
|
70
74
|
return constantTimeEqual(targetKey, utils$1.hexToBytes(key));
|
|
71
75
|
};
|
package/dist/crypto/index.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import { scryptAsync } from '@noble/hashes/scrypt';
|
|
|
8
8
|
import { getRandomValues } from '@better-auth/utils';
|
|
9
9
|
import { hex } from '@better-auth/utils/hex';
|
|
10
10
|
import { hexToBytes } from '@noble/hashes/utils';
|
|
11
|
+
import { B as BetterAuthError } from '../shared/better-auth.DdzSJf-n.mjs';
|
|
11
12
|
export { g as generateRandomString } from '../shared/better-auth.B4Qoxdgc.mjs';
|
|
12
13
|
import '@better-auth/utils/random';
|
|
13
14
|
|
|
@@ -64,6 +65,9 @@ const verifyPassword = async ({
|
|
|
64
65
|
password
|
|
65
66
|
}) => {
|
|
66
67
|
const [salt, key] = hash.split(":");
|
|
68
|
+
if (!salt || !key) {
|
|
69
|
+
throw new BetterAuthError("Invalid password hash");
|
|
70
|
+
}
|
|
67
71
|
const targetKey = await generateKey(password, salt);
|
|
68
72
|
return constantTimeEqual(targetKey, hexToBytes(key));
|
|
69
73
|
};
|
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.B2msLoMo.cjs');
|
|
4
4
|
const getTables = require('../shared/better-auth.Bt_3DcBl.cjs');
|
|
5
5
|
const toZod = require('../shared/better-auth.BT1jd5k2.cjs');
|
|
6
6
|
const schema = require('../shared/better-auth.BIMq4RPW.cjs');
|
|
@@ -25,10 +25,10 @@ require('@better-auth/utils/hex');
|
|
|
25
25
|
require('@noble/hashes/utils');
|
|
26
26
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
27
27
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
28
|
-
require('../shared/better-auth.
|
|
28
|
+
require('../shared/better-auth.zQKOFY7X.cjs');
|
|
29
29
|
require('kysely');
|
|
30
|
-
require('../shared/better-auth.
|
|
31
|
-
require('../shared/better-auth.
|
|
30
|
+
require('../shared/better-auth.ZhaALnFz.cjs');
|
|
31
|
+
require('../shared/better-auth.CwxQpTGf.cjs');
|
|
32
32
|
|
|
33
33
|
const createFieldAttribute = (type, config) => {
|
|
34
34
|
return {
|
package/dist/db/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, am as accountSchema, ac as createFieldAttribute, a9 as createInternalAdapter, ar as getAllFields, al as getAuthTables, aA as mergeSchema, ay as parseAccountInput, at as parseAccountOutput, ax as parseAdditionalUserInput, av as parseInputData, aq as parseOutputData, az as parseSessionInput, au as parseSessionOutput, aw as parseUserInput, as as parseUserOutput, ao as sessionSchema, an as userSchema, ap as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.6Fu7s4Jj.cjs';
|
|
2
|
+
export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, am as accountSchema, ac as createFieldAttribute, a9 as createInternalAdapter, ar as getAllFields, al as getAuthTables, aA as mergeSchema, ay as parseAccountInput, at as parseAccountOutput, ax as parseAdditionalUserInput, av as parseInputData, aq as parseOutputData, az as parseSessionInput, au as parseSessionOutput, aw as parseUserInput, as as parseUserOutput, ao as sessionSchema, an as userSchema, ap as verificationSchema } from '../shared/better-auth.6Fu7s4Jj.cjs';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
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, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, am as accountSchema, ac as createFieldAttribute, a9 as createInternalAdapter, ar as getAllFields, al as getAuthTables, aA as mergeSchema, ay as parseAccountInput, at as parseAccountOutput, ax as parseAdditionalUserInput, av as parseInputData, aq as parseOutputData, az as parseSessionInput, au as parseSessionOutput, aw as parseUserInput, as as parseUserOutput, ao as sessionSchema, an as userSchema, ap as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.DYU6O80J.mjs';
|
|
2
|
+
export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, am as accountSchema, ac as createFieldAttribute, a9 as createInternalAdapter, ar as getAllFields, al as getAuthTables, aA as mergeSchema, ay as parseAccountInput, at as parseAccountOutput, ax as parseAdditionalUserInput, av as parseInputData, aq as parseOutputData, az as parseSessionInput, au as parseSessionOutput, aw as parseUserInput, as as parseUserOutput, ao as sessionSchema, an as userSchema, ap as verificationSchema } from '../shared/better-auth.DYU6O80J.mjs';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|