better-auth 1.3.8-beta.6 → 1.3.8-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle-adapter/index.d.cts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -2
- package/dist/adapters/index.d.cts +3 -3
- package/dist/adapters/index.d.mts +3 -3
- package/dist/adapters/index.d.ts +3 -3
- package/dist/adapters/kysely-adapter/index.d.cts +2 -2
- package/dist/adapters/kysely-adapter/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.d.ts +2 -2
- package/dist/adapters/memory-adapter/index.d.cts +2 -2
- package/dist/adapters/memory-adapter/index.d.mts +2 -2
- package/dist/adapters/memory-adapter/index.d.ts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
- package/dist/adapters/prisma-adapter/index.d.cts +2 -2
- package/dist/adapters/prisma-adapter/index.d.mts +2 -2
- package/dist/adapters/prisma-adapter/index.d.ts +2 -2
- package/dist/adapters/test.d.cts +27 -27
- package/dist/adapters/test.d.mts +27 -27
- package/dist/adapters/test.d.ts +27 -27
- package/dist/api/index.cjs +3 -3
- package/dist/api/index.d.cts +3 -3
- package/dist/api/index.d.mts +3 -3
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.mjs +5 -5
- package/dist/client/index.cjs +3 -3
- 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/index.mjs +3 -3
- package/dist/client/plugins/index.cjs +1 -1
- package/dist/client/plugins/index.d.cts +19 -11
- package/dist/client/plugins/index.d.mts +19 -11
- package/dist/client/plugins/index.d.ts +19 -11
- package/dist/client/plugins/index.mjs +1 -1
- package/dist/client/react/index.cjs +2 -2
- package/dist/client/react/index.d.cts +6 -4
- package/dist/client/react/index.d.mts +6 -4
- package/dist/client/react/index.d.ts +6 -4
- package/dist/client/react/index.mjs +2 -2
- package/dist/client/solid/index.cjs +2 -2
- package/dist/client/solid/index.d.cts +9 -9
- package/dist/client/solid/index.d.mts +9 -9
- package/dist/client/solid/index.d.ts +9 -9
- package/dist/client/solid/index.mjs +2 -2
- package/dist/client/svelte/index.cjs +2 -2
- package/dist/client/svelte/index.d.cts +3 -3
- package/dist/client/svelte/index.d.mts +3 -3
- package/dist/client/svelte/index.d.ts +3 -3
- package/dist/client/svelte/index.mjs +2 -2
- package/dist/client/vue/index.cjs +2 -2
- 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/client/vue/index.mjs +2 -2
- package/dist/cookies/index.cjs +1 -1
- package/dist/cookies/index.d.cts +2 -2
- package/dist/cookies/index.d.mts +2 -2
- package/dist/cookies/index.d.ts +2 -2
- package/dist/cookies/index.mjs +1 -1
- package/dist/db/index.d.cts +3 -3
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.d.ts +3 -3
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +4 -4
- package/dist/integrations/next-js.cjs +5 -4
- package/dist/integrations/next-js.d.cts +2 -2
- package/dist/integrations/next-js.d.mts +2 -2
- package/dist/integrations/next-js.d.ts +2 -2
- package/dist/integrations/next-js.mjs +5 -4
- package/dist/integrations/node.d.cts +2 -2
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/node.d.ts +2 -2
- package/dist/integrations/react-start.cjs +5 -4
- package/dist/integrations/react-start.d.cts +2 -2
- package/dist/integrations/react-start.d.mts +2 -2
- package/dist/integrations/react-start.d.ts +2 -2
- package/dist/integrations/react-start.mjs +5 -4
- package/dist/integrations/svelte-kit.cjs +3 -3
- package/dist/integrations/svelte-kit.d.cts +2 -2
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/svelte-kit.d.ts +2 -2
- package/dist/integrations/svelte-kit.mjs +3 -3
- package/dist/oauth2/index.cjs +3 -3
- package/dist/oauth2/index.d.cts +4 -4
- package/dist/oauth2/index.d.mts +4 -4
- package/dist/oauth2/index.d.ts +4 -4
- package/dist/oauth2/index.mjs +3 -3
- package/dist/plugins/admin/index.cjs +4 -4
- package/dist/plugins/admin/index.d.cts +4 -4
- package/dist/plugins/admin/index.d.mts +4 -4
- package/dist/plugins/admin/index.d.ts +4 -4
- package/dist/plugins/admin/index.mjs +4 -4
- package/dist/plugins/anonymous/index.cjs +3 -3
- package/dist/plugins/anonymous/index.d.cts +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.d.ts +2 -2
- package/dist/plugins/anonymous/index.mjs +3 -3
- package/dist/plugins/bearer/index.cjs +3 -3
- package/dist/plugins/bearer/index.d.cts +2 -2
- package/dist/plugins/bearer/index.d.mts +2 -2
- package/dist/plugins/bearer/index.d.ts +2 -2
- package/dist/plugins/bearer/index.mjs +3 -3
- package/dist/plugins/captcha/index.d.cts +2 -2
- package/dist/plugins/captcha/index.d.mts +2 -2
- package/dist/plugins/captcha/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.cjs +20 -4
- package/dist/plugins/custom-session/index.d.cts +17 -3
- package/dist/plugins/custom-session/index.d.mts +17 -3
- package/dist/plugins/custom-session/index.d.ts +17 -3
- package/dist/plugins/custom-session/index.mjs +20 -4
- package/dist/plugins/device-authorization/index.cjs +9 -108
- package/dist/plugins/device-authorization/index.d.cts +5 -3
- package/dist/plugins/device-authorization/index.d.mts +5 -3
- package/dist/plugins/device-authorization/index.d.ts +5 -3
- package/dist/plugins/device-authorization/index.mjs +5 -104
- package/dist/plugins/email-otp/index.cjs +3 -3
- package/dist/plugins/email-otp/index.d.cts +2 -2
- package/dist/plugins/email-otp/index.d.mts +2 -2
- package/dist/plugins/email-otp/index.d.ts +2 -2
- package/dist/plugins/email-otp/index.mjs +3 -3
- package/dist/plugins/generic-oauth/index.cjs +3 -3
- package/dist/plugins/generic-oauth/index.d.cts +3 -3
- package/dist/plugins/generic-oauth/index.d.mts +3 -3
- package/dist/plugins/generic-oauth/index.d.ts +3 -3
- package/dist/plugins/generic-oauth/index.mjs +3 -3
- package/dist/plugins/haveibeenpwned/index.cjs +3 -3
- package/dist/plugins/haveibeenpwned/index.d.cts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.ts +2 -2
- package/dist/plugins/haveibeenpwned/index.mjs +3 -3
- package/dist/plugins/index.cjs +9 -9
- package/dist/plugins/index.d.cts +30 -5
- package/dist/plugins/index.d.mts +30 -5
- package/dist/plugins/index.d.ts +30 -5
- package/dist/plugins/index.mjs +11 -11
- package/dist/plugins/jwt/index.cjs +6 -6
- package/dist/plugins/jwt/index.d.cts +2 -2
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.d.ts +2 -2
- package/dist/plugins/jwt/index.mjs +7 -7
- package/dist/plugins/magic-link/index.cjs +3 -3
- package/dist/plugins/magic-link/index.mjs +3 -3
- package/dist/plugins/multi-session/index.cjs +3 -3
- package/dist/plugins/multi-session/index.d.cts +2 -2
- package/dist/plugins/multi-session/index.d.mts +2 -2
- package/dist/plugins/multi-session/index.d.ts +2 -2
- package/dist/plugins/multi-session/index.mjs +3 -3
- package/dist/plugins/oauth-proxy/index.cjs +3 -3
- package/dist/plugins/oauth-proxy/index.d.cts +2 -2
- package/dist/plugins/oauth-proxy/index.d.mts +2 -2
- package/dist/plugins/oauth-proxy/index.d.ts +2 -2
- package/dist/plugins/oauth-proxy/index.mjs +3 -3
- package/dist/plugins/oidc-provider/index.cjs +5 -5
- package/dist/plugins/oidc-provider/index.d.cts +56 -6
- package/dist/plugins/oidc-provider/index.d.mts +56 -6
- package/dist/plugins/oidc-provider/index.d.ts +56 -6
- package/dist/plugins/oidc-provider/index.mjs +5 -5
- 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 +6 -5
- package/dist/plugins/one-time-token/index.d.cts +2 -2
- package/dist/plugins/one-time-token/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.d.ts +2 -2
- package/dist/plugins/one-time-token/index.mjs +6 -5
- package/dist/plugins/open-api/index.cjs +3 -3
- package/dist/plugins/open-api/index.d.cts +2 -2
- package/dist/plugins/open-api/index.d.mts +2 -2
- package/dist/plugins/open-api/index.d.ts +2 -2
- package/dist/plugins/open-api/index.mjs +3 -3
- package/dist/plugins/organization/index.cjs +5 -5
- package/dist/plugins/organization/index.d.cts +6 -6
- package/dist/plugins/organization/index.d.mts +6 -6
- package/dist/plugins/organization/index.d.ts +6 -6
- package/dist/plugins/organization/index.mjs +5 -5
- package/dist/plugins/passkey/index.cjs +3 -3
- package/dist/plugins/passkey/index.d.cts +2 -2
- package/dist/plugins/passkey/index.d.mts +2 -2
- package/dist/plugins/passkey/index.d.ts +2 -2
- 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 +2 -2
- package/dist/plugins/phone-number/index.d.mts +2 -2
- package/dist/plugins/phone-number/index.d.ts +2 -2
- package/dist/plugins/phone-number/index.mjs +3 -3
- package/dist/plugins/siwe/index.cjs +3 -3
- package/dist/plugins/siwe/index.d.cts +2 -2
- package/dist/plugins/siwe/index.d.mts +2 -2
- package/dist/plugins/siwe/index.d.ts +2 -2
- package/dist/plugins/siwe/index.mjs +3 -3
- package/dist/plugins/sso/index.cjs +3 -3
- package/dist/plugins/sso/index.d.cts +4 -4
- package/dist/plugins/sso/index.d.mts +4 -4
- package/dist/plugins/sso/index.d.ts +4 -4
- package/dist/plugins/sso/index.mjs +3 -3
- package/dist/plugins/two-factor/index.cjs +3 -3
- package/dist/plugins/two-factor/index.d.cts +2 -2
- package/dist/plugins/two-factor/index.d.mts +2 -2
- package/dist/plugins/two-factor/index.d.ts +2 -2
- package/dist/plugins/two-factor/index.mjs +3 -3
- package/dist/plugins/username/index.cjs +3 -3
- package/dist/plugins/username/index.d.cts +2 -2
- package/dist/plugins/username/index.d.mts +2 -2
- package/dist/plugins/username/index.d.ts +2 -2
- package/dist/plugins/username/index.mjs +3 -3
- package/dist/shared/{better-auth.CtToz4qL.cjs → better-auth.B4s085TW.cjs} +1 -1
- package/dist/shared/{better-auth.CGejYPX3.d.mts → better-auth.B5XPvU4V.d.mts} +1 -1
- package/dist/shared/{better-auth.D_zuKEZs.d.ts → better-auth.BCH1iVsI.d.ts} +55 -55
- package/dist/shared/{better-auth.CmdI9lHT.cjs → better-auth.BDe8YvTr.cjs} +1 -1
- package/dist/shared/{better-auth.BVPwsVUn.d.cts → better-auth.BF-28VnX.d.mts} +1 -1
- package/dist/shared/{better-auth.BttC_x9D.mjs → better-auth.BF0OhhL0.mjs} +57 -1
- package/dist/shared/{better-auth.BsHw2sS5.d.ts → better-auth.BLYxY3m3.d.ts} +6 -2
- package/dist/shared/{better-auth.DQINKBiT.d.cts → better-auth.BVRe9oUF.d.cts} +479 -6
- package/dist/shared/{better-auth.CWKgK_p2.d.cts → better-auth.BXZFHeKS.d.cts} +55 -55
- package/dist/shared/{better-auth.CV-4ifSd.cjs → better-auth.BYiXvdJQ.cjs} +2 -2
- package/dist/shared/{better-auth.CbBksUvo.cjs → better-auth.BZ1rl9jb.cjs} +3 -3
- package/dist/shared/{better-auth.DVsI0DHa.mjs → better-auth.BcTT5K5S.mjs} +1 -1
- package/dist/shared/{better-auth.B6V3vOfp.d.cts → better-auth.BgjEx6dy.d.cts} +6 -2
- package/dist/shared/{better-auth.z3V3mA_O.cjs → better-auth.BhdSraHG.cjs} +3 -3
- package/dist/shared/{better-auth.B1puuIwv.d.mts → better-auth.BpZ2qzWn.d.mts} +55 -55
- package/dist/shared/{better-auth.AeIHgLBF.cjs → better-auth.BvYLXwvp.cjs} +58 -2
- package/dist/shared/{better-auth.DDozCDMS.mjs → better-auth.CApDACtr.mjs} +7 -9
- package/dist/shared/{better-auth.Ba_pqY0l.mjs → better-auth.CG9DHk60.mjs} +2 -2
- package/dist/shared/{better-auth.Bco357J8.cjs → better-auth.CLv80Pwz.cjs} +1 -1
- package/dist/shared/{better-auth.C7BLzxG2.d.mts → better-auth.Ca_NjiGd.d.cts} +1 -1
- package/dist/shared/{better-auth.Ck3n8bMC.cjs → better-auth.CgIMrxKr.cjs} +7 -3
- package/dist/shared/{better-auth.BKqT_ZVS.cjs → better-auth.Cm_V_J8I.cjs} +10 -28
- package/dist/shared/{better-auth.DI5tnNZs.d.ts → better-auth.CnJoIxG_.d.ts} +479 -6
- package/dist/shared/{better-auth.BwsH8S4P.d.mts → better-auth.Ctgkdy7x.d.mts} +6 -2
- package/dist/shared/{better-auth.yHdubbkw.cjs → better-auth.CxKBteqV.cjs} +34 -9
- package/dist/shared/{better-auth.l2-e84v_.cjs → better-auth.D5q0JUiv.cjs} +93 -164
- package/dist/shared/{better-auth.BflsQmOZ.d.cts → better-auth.D7tWjP25.d.cts} +1 -1
- package/dist/shared/{better-auth.DxG__zXA.d.ts → better-auth.DNf2m_JT.d.ts} +1 -1
- package/dist/shared/{better-auth.BCc3zPBF.mjs → better-auth.DV5EHeYG.mjs} +1 -1
- package/dist/shared/{better-auth.w5Mg3-u0.mjs → better-auth.DX9TcqCt.mjs} +3 -3
- package/dist/shared/{better-auth.DGJgCfAm.mjs → better-auth.DqbGTNEt.mjs} +34 -9
- package/dist/shared/{better-auth.CGGao4aY.mjs → better-auth.DygnLQW5.mjs} +1 -1
- package/dist/shared/{better-auth.DgX9nQ3e.mjs → better-auth.K0z8EJFS.mjs} +3 -3
- package/dist/shared/{better-auth.DF-MUmVw.mjs → better-auth.UfVWArIB.mjs} +93 -164
- package/dist/shared/{better-auth.BVF2_YJN.mjs → better-auth._2xnM2S3.mjs} +351 -24
- package/dist/shared/{better-auth.QB8jx8j0.d.mts → better-auth.efEqxJ3k.d.mts} +479 -6
- package/dist/shared/{better-auth.CiuRzSQH.cjs → better-auth.g2ow3cc2.cjs} +354 -23
- package/dist/shared/{better-auth.Buni1mmI.mjs → better-auth.kTs0zHGZ.mjs} +7 -3
- package/dist/shared/{better-auth.Bp6xdiY8.d.ts → better-auth.lTCLLcGt.d.ts} +1 -1
- package/dist/shared/{better-auth.L_XZAIeN.cjs → better-auth.srwANuMX.cjs} +7 -9
- package/dist/shared/{better-auth.DAX7uGE1.mjs → better-auth.vI-5STVo.mjs} +10 -28
- package/dist/social-providers/index.cjs +7 -3
- package/dist/social-providers/index.d.cts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/social-providers/index.d.ts +1 -1
- package/dist/social-providers/index.mjs +3 -3
- package/dist/test-utils/index.cjs +9 -8
- package/dist/test-utils/index.d.cts +94 -94
- package/dist/test-utils/index.d.mts +94 -94
- package/dist/test-utils/index.d.ts +94 -94
- package/dist/test-utils/index.mjs +9 -8
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +2 -1
package/dist/client/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.BpZ2qzWn.mjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener,
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, S as SessionQueryParams } from '../shared/better-auth.Ctgkdy7x.mjs';
|
|
6
|
+
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.Ctgkdy7x.mjs';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
@@ -11,7 +11,7 @@ import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-au
|
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'better-call';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../shared/better-auth.
|
|
14
|
+
import '../shared/better-auth.efEqxJ3k.mjs';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
|
@@ -137,7 +137,9 @@ declare const useAuthQuery: <T>(initializedAtom: PreinitializedWritableAtom<any>
|
|
|
137
137
|
error: null | BetterFetchError;
|
|
138
138
|
isPending: boolean;
|
|
139
139
|
isRefetching: boolean;
|
|
140
|
-
refetch: (
|
|
140
|
+
refetch: (queryParams?: {
|
|
141
|
+
query?: SessionQueryParams;
|
|
142
|
+
}) => void;
|
|
141
143
|
}> & object;
|
|
142
144
|
|
|
143
145
|
declare const InferPlugin: <T extends BetterAuthPlugin>() => {
|
|
@@ -148,4 +150,4 @@ declare function InferAuth<O extends {
|
|
|
148
150
|
options: BetterAuthOptions;
|
|
149
151
|
}>(): O["options"];
|
|
150
152
|
|
|
151
|
-
export { BetterAuthClientPlugin, ClientOptions, InferActions, InferAuth, InferClientAPI, InferErrorCodes, InferPlugin, IsSignal, createAuthClient, useAuthQuery };
|
|
153
|
+
export { BetterAuthClientPlugin, ClientOptions, InferActions, InferAuth, InferClientAPI, InferErrorCodes, InferPlugin, IsSignal, SessionQueryParams, createAuthClient, useAuthQuery };
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.
|
|
1
|
+
import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.BCH1iVsI.js';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
5
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.
|
|
6
|
-
export { A as AtomListener,
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes, S as SessionQueryParams } from '../shared/better-auth.BLYxY3m3.js';
|
|
6
|
+
export { A as AtomListener, i as InferAdditionalFromClient, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, e as Store } from '../shared/better-auth.BLYxY3m3.js';
|
|
7
7
|
import * as nanostores from 'nanostores';
|
|
8
8
|
import { Atom, PreinitializedWritableAtom } from 'nanostores';
|
|
9
9
|
export * from 'nanostores';
|
|
@@ -11,7 +11,7 @@ import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-au
|
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'better-call';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../shared/better-auth.
|
|
14
|
+
import '../shared/better-auth.CnJoIxG_.js';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
|
@@ -137,7 +137,9 @@ declare const useAuthQuery: <T>(initializedAtom: PreinitializedWritableAtom<any>
|
|
|
137
137
|
error: null | BetterFetchError;
|
|
138
138
|
isPending: boolean;
|
|
139
139
|
isRefetching: boolean;
|
|
140
|
-
refetch: (
|
|
140
|
+
refetch: (queryParams?: {
|
|
141
|
+
query?: SessionQueryParams;
|
|
142
|
+
}) => void;
|
|
141
143
|
}> & object;
|
|
142
144
|
|
|
143
145
|
declare const InferPlugin: <T extends BetterAuthPlugin>() => {
|
|
@@ -148,4 +150,4 @@ declare function InferAuth<O extends {
|
|
|
148
150
|
options: BetterAuthOptions;
|
|
149
151
|
}>(): O["options"];
|
|
150
152
|
|
|
151
|
-
export { BetterAuthClientPlugin, ClientOptions, InferActions, InferAuth, InferClientAPI, InferErrorCodes, InferPlugin, IsSignal, createAuthClient, useAuthQuery };
|
|
153
|
+
export { BetterAuthClientPlugin, ClientOptions, InferActions, InferAuth, InferClientAPI, InferErrorCodes, InferPlugin, IsSignal, SessionQueryParams, createAuthClient, useAuthQuery };
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { c as createAuthClient } from '../shared/better-auth.
|
|
2
|
-
export { u as useAuthQuery } from '../shared/better-auth.
|
|
3
|
-
import '../shared/better-auth.
|
|
1
|
+
export { c as createAuthClient } from '../shared/better-auth.BcTT5K5S.mjs';
|
|
2
|
+
export { u as useAuthQuery } from '../shared/better-auth.kTs0zHGZ.mjs';
|
|
3
|
+
import '../shared/better-auth.DygnLQW5.mjs';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
5
5
|
import '../shared/better-auth.CuS_eDdK.mjs';
|
|
6
6
|
import '../shared/better-auth.CMQ3rA-I.mjs';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const nanostores = require('nanostores');
|
|
4
4
|
require('@better-fetch/fetch');
|
|
5
5
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
6
|
-
const query = require('../../shared/better-auth.
|
|
6
|
+
const query = require('../../shared/better-auth.CgIMrxKr.cjs');
|
|
7
7
|
const plugins_organization_access_index = require('../../plugins/organization/access/index.cjs');
|
|
8
8
|
const hasPermission = require('../../shared/better-auth.D7N9YNr5.cjs');
|
|
9
9
|
const browser = require('@simplewebauthn/browser');
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { organization, InferMember, InferInvitation, Team, Organization, Member, Invitation, OrganizationOptions, TeamMember } from '../../plugins/organization/index.cjs';
|
|
2
2
|
import { AccessControl, Role, Statements } from '../../plugins/access/index.cjs';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.BXZFHeKS.cjs';
|
|
4
|
+
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.cjs';
|
|
5
|
+
import { S as SessionQueryParams, e as Store } from '../../shared/better-auth.BgjEx6dy.cjs';
|
|
5
6
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
7
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
8
|
+
import * as nanostores from 'nanostores';
|
|
9
|
+
import { atom } from 'nanostores';
|
|
9
10
|
import { username } from '../../plugins/username/index.cjs';
|
|
10
11
|
import { Session } from 'inspector';
|
|
11
12
|
import { Passkey, passkey } from '../../plugins/passkey/index.cjs';
|
|
@@ -18,10 +19,9 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.cjs';
|
|
|
18
19
|
import { jwt } from '../../plugins/jwt/index.cjs';
|
|
19
20
|
import { multiSession } from '../../plugins/multi-session/index.cjs';
|
|
20
21
|
import { emailOTP } from '../../plugins/email-otp/index.cjs';
|
|
21
|
-
import { S as Store } from '../../shared/better-auth.B6V3vOfp.cjs';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.cjs';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.cjs';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.D7tWjP25.cjs';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.cjs';
|
|
27
27
|
export { deviceAuthorizationClient } from '../../plugins/device-authorization/index.cjs';
|
|
@@ -31,7 +31,7 @@ import 'zod/v4';
|
|
|
31
31
|
import 'better-call';
|
|
32
32
|
import '../../plugins/organization/access/index.cjs';
|
|
33
33
|
import 'kysely';
|
|
34
|
-
import '../../shared/better-auth.
|
|
34
|
+
import '../../shared/better-auth.BVRe9oUF.cjs';
|
|
35
35
|
import 'jose';
|
|
36
36
|
import 'zod/v4/core';
|
|
37
37
|
import 'zod';
|
|
@@ -195,7 +195,9 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
195
195
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
196
196
|
isPending: boolean;
|
|
197
197
|
isRefetching: boolean;
|
|
198
|
-
refetch: (
|
|
198
|
+
refetch: (queryParams?: {
|
|
199
|
+
query?: SessionQueryParams;
|
|
200
|
+
} | undefined) => void;
|
|
199
201
|
}> & object;
|
|
200
202
|
listOrganizations: nanostores.PreinitializedWritableAtom<{
|
|
201
203
|
data: {
|
|
@@ -209,7 +211,9 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
209
211
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
210
212
|
isPending: boolean;
|
|
211
213
|
isRefetching: boolean;
|
|
212
|
-
refetch: (
|
|
214
|
+
refetch: (queryParams?: {
|
|
215
|
+
query?: SessionQueryParams;
|
|
216
|
+
} | undefined) => void;
|
|
213
217
|
}> & object;
|
|
214
218
|
activeMember: nanostores.PreinitializedWritableAtom<{
|
|
215
219
|
data: {
|
|
@@ -222,7 +226,9 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
222
226
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
223
227
|
isPending: boolean;
|
|
224
228
|
isRefetching: boolean;
|
|
225
|
-
refetch: (
|
|
229
|
+
refetch: (queryParams?: {
|
|
230
|
+
query?: SessionQueryParams;
|
|
231
|
+
} | undefined) => void;
|
|
226
232
|
}> & object;
|
|
227
233
|
};
|
|
228
234
|
pathMethods: {
|
|
@@ -466,7 +472,9 @@ declare const passkeyClient: () => {
|
|
|
466
472
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
467
473
|
isPending: boolean;
|
|
468
474
|
isRefetching: boolean;
|
|
469
|
-
refetch: (
|
|
475
|
+
refetch: (queryParams?: {
|
|
476
|
+
query?: SessionQueryParams;
|
|
477
|
+
} | undefined) => void;
|
|
470
478
|
}> & object;
|
|
471
479
|
$listPasskeys: nanostores.PreinitializedWritableAtom<any> & object;
|
|
472
480
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { organization, InferMember, InferInvitation, Team, Organization, Member, Invitation, OrganizationOptions, TeamMember } from '../../plugins/organization/index.mjs';
|
|
2
2
|
import { AccessControl, Role, Statements } from '../../plugins/access/index.mjs';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.BpZ2qzWn.mjs';
|
|
4
|
+
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.mjs';
|
|
5
|
+
import { S as SessionQueryParams, e as Store } from '../../shared/better-auth.Ctgkdy7x.mjs';
|
|
5
6
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
7
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
8
|
+
import * as nanostores from 'nanostores';
|
|
9
|
+
import { atom } from 'nanostores';
|
|
9
10
|
import { username } from '../../plugins/username/index.mjs';
|
|
10
11
|
import { Session } from 'inspector';
|
|
11
12
|
import { Passkey, passkey } from '../../plugins/passkey/index.mjs';
|
|
@@ -18,10 +19,9 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.mjs';
|
|
|
18
19
|
import { jwt } from '../../plugins/jwt/index.mjs';
|
|
19
20
|
import { multiSession } from '../../plugins/multi-session/index.mjs';
|
|
20
21
|
import { emailOTP } from '../../plugins/email-otp/index.mjs';
|
|
21
|
-
import { S as Store } from '../../shared/better-auth.BwsH8S4P.mjs';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.mjs';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.mjs';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.B5XPvU4V.mjs';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.mjs';
|
|
27
27
|
export { deviceAuthorizationClient } from '../../plugins/device-authorization/index.mjs';
|
|
@@ -31,7 +31,7 @@ import 'zod/v4';
|
|
|
31
31
|
import 'better-call';
|
|
32
32
|
import '../../plugins/organization/access/index.mjs';
|
|
33
33
|
import 'kysely';
|
|
34
|
-
import '../../shared/better-auth.
|
|
34
|
+
import '../../shared/better-auth.efEqxJ3k.mjs';
|
|
35
35
|
import 'jose';
|
|
36
36
|
import 'zod/v4/core';
|
|
37
37
|
import 'zod';
|
|
@@ -195,7 +195,9 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
195
195
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
196
196
|
isPending: boolean;
|
|
197
197
|
isRefetching: boolean;
|
|
198
|
-
refetch: (
|
|
198
|
+
refetch: (queryParams?: {
|
|
199
|
+
query?: SessionQueryParams;
|
|
200
|
+
} | undefined) => void;
|
|
199
201
|
}> & object;
|
|
200
202
|
listOrganizations: nanostores.PreinitializedWritableAtom<{
|
|
201
203
|
data: {
|
|
@@ -209,7 +211,9 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
209
211
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
210
212
|
isPending: boolean;
|
|
211
213
|
isRefetching: boolean;
|
|
212
|
-
refetch: (
|
|
214
|
+
refetch: (queryParams?: {
|
|
215
|
+
query?: SessionQueryParams;
|
|
216
|
+
} | undefined) => void;
|
|
213
217
|
}> & object;
|
|
214
218
|
activeMember: nanostores.PreinitializedWritableAtom<{
|
|
215
219
|
data: {
|
|
@@ -222,7 +226,9 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
222
226
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
223
227
|
isPending: boolean;
|
|
224
228
|
isRefetching: boolean;
|
|
225
|
-
refetch: (
|
|
229
|
+
refetch: (queryParams?: {
|
|
230
|
+
query?: SessionQueryParams;
|
|
231
|
+
} | undefined) => void;
|
|
226
232
|
}> & object;
|
|
227
233
|
};
|
|
228
234
|
pathMethods: {
|
|
@@ -466,7 +472,9 @@ declare const passkeyClient: () => {
|
|
|
466
472
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
467
473
|
isPending: boolean;
|
|
468
474
|
isRefetching: boolean;
|
|
469
|
-
refetch: (
|
|
475
|
+
refetch: (queryParams?: {
|
|
476
|
+
query?: SessionQueryParams;
|
|
477
|
+
} | undefined) => void;
|
|
470
478
|
}> & object;
|
|
471
479
|
$listPasskeys: nanostores.PreinitializedWritableAtom<any> & object;
|
|
472
480
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { organization, InferMember, InferInvitation, Team, Organization, Member, Invitation, OrganizationOptions, TeamMember } from '../../plugins/organization/index.js';
|
|
2
2
|
import { AccessControl, Role, Statements } from '../../plugins/access/index.js';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.BCH1iVsI.js';
|
|
4
|
+
import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.js';
|
|
5
|
+
import { S as SessionQueryParams, e as Store } from '../../shared/better-auth.BLYxY3m3.js';
|
|
5
6
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
7
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
8
|
+
import * as nanostores from 'nanostores';
|
|
9
|
+
import { atom } from 'nanostores';
|
|
9
10
|
import { username } from '../../plugins/username/index.js';
|
|
10
11
|
import { Session } from 'inspector';
|
|
11
12
|
import { Passkey, passkey } from '../../plugins/passkey/index.js';
|
|
@@ -18,10 +19,9 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.js';
|
|
|
18
19
|
import { jwt } from '../../plugins/jwt/index.js';
|
|
19
20
|
import { multiSession } from '../../plugins/multi-session/index.js';
|
|
20
21
|
import { emailOTP } from '../../plugins/email-otp/index.js';
|
|
21
|
-
import { S as Store } from '../../shared/better-auth.BsHw2sS5.js';
|
|
22
22
|
import { sso } from '../../plugins/sso/index.js';
|
|
23
23
|
import { oidcProvider } from '../../plugins/oidc-provider/index.js';
|
|
24
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
24
|
+
import { a as apiKey } from '../../shared/better-auth.lTCLLcGt.js';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.js';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.js';
|
|
27
27
|
export { deviceAuthorizationClient } from '../../plugins/device-authorization/index.js';
|
|
@@ -31,7 +31,7 @@ import 'zod/v4';
|
|
|
31
31
|
import 'better-call';
|
|
32
32
|
import '../../plugins/organization/access/index.js';
|
|
33
33
|
import 'kysely';
|
|
34
|
-
import '../../shared/better-auth.
|
|
34
|
+
import '../../shared/better-auth.CnJoIxG_.js';
|
|
35
35
|
import 'jose';
|
|
36
36
|
import 'zod/v4/core';
|
|
37
37
|
import 'zod';
|
|
@@ -195,7 +195,9 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
195
195
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
196
196
|
isPending: boolean;
|
|
197
197
|
isRefetching: boolean;
|
|
198
|
-
refetch: (
|
|
198
|
+
refetch: (queryParams?: {
|
|
199
|
+
query?: SessionQueryParams;
|
|
200
|
+
} | undefined) => void;
|
|
199
201
|
}> & object;
|
|
200
202
|
listOrganizations: nanostores.PreinitializedWritableAtom<{
|
|
201
203
|
data: {
|
|
@@ -209,7 +211,9 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
209
211
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
210
212
|
isPending: boolean;
|
|
211
213
|
isRefetching: boolean;
|
|
212
|
-
refetch: (
|
|
214
|
+
refetch: (queryParams?: {
|
|
215
|
+
query?: SessionQueryParams;
|
|
216
|
+
} | undefined) => void;
|
|
213
217
|
}> & object;
|
|
214
218
|
activeMember: nanostores.PreinitializedWritableAtom<{
|
|
215
219
|
data: {
|
|
@@ -222,7 +226,9 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
222
226
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
223
227
|
isPending: boolean;
|
|
224
228
|
isRefetching: boolean;
|
|
225
|
-
refetch: (
|
|
229
|
+
refetch: (queryParams?: {
|
|
230
|
+
query?: SessionQueryParams;
|
|
231
|
+
} | undefined) => void;
|
|
226
232
|
}> & object;
|
|
227
233
|
};
|
|
228
234
|
pathMethods: {
|
|
@@ -466,7 +472,9 @@ declare const passkeyClient: () => {
|
|
|
466
472
|
error: null | _better_fetch_fetch.BetterFetchError;
|
|
467
473
|
isPending: boolean;
|
|
468
474
|
isRefetching: boolean;
|
|
469
|
-
refetch: (
|
|
475
|
+
refetch: (queryParams?: {
|
|
476
|
+
query?: SessionQueryParams;
|
|
477
|
+
} | undefined) => void;
|
|
470
478
|
}> & object;
|
|
471
479
|
$listPasskeys: nanostores.PreinitializedWritableAtom<any> & object;
|
|
472
480
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { atom } from 'nanostores';
|
|
2
2
|
import '@better-fetch/fetch';
|
|
3
3
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
4
|
-
import { u as useAuthQuery } from '../../shared/better-auth.
|
|
4
|
+
import { u as useAuthQuery } from '../../shared/better-auth.kTs0zHGZ.mjs';
|
|
5
5
|
import { ownerAc, memberAc, adminAc } from '../../plugins/organization/access/index.mjs';
|
|
6
6
|
import { h as hasPermission } from '../../shared/better-auth.Dt0CvI2z.mjs';
|
|
7
7
|
import { startRegistration, WebAuthnError, startAuthentication } from '@simplewebauthn/browser';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const proxy = require('../../shared/better-auth.
|
|
3
|
+
const proxy = require('../../shared/better-auth.B4s085TW.cjs');
|
|
4
4
|
const nanostores = require('nanostores');
|
|
5
5
|
const react = require('react');
|
|
6
6
|
require('@better-fetch/fetch');
|
|
7
7
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
8
8
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
9
9
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
10
|
-
require('../../shared/better-auth.
|
|
10
|
+
require('../../shared/better-auth.CgIMrxKr.cjs');
|
|
11
11
|
require('../../shared/better-auth.DhsGZ30Q.cjs');
|
|
12
12
|
|
|
13
13
|
function useStore(store, options = {}) {
|
|
@@ -4,14 +4,14 @@ 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, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.BgjEx6dy.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.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.BXZFHeKS.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../../shared/better-auth.
|
|
14
|
+
import '../../shared/better-auth.BVRe9oUF.cjs';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
|
@@ -81,7 +81,9 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
81
81
|
} ? S : Res : never;
|
|
82
82
|
isPending: boolean;
|
|
83
83
|
error: BetterFetchError | null;
|
|
84
|
-
refetch: (
|
|
84
|
+
refetch: (queryParams?: {
|
|
85
|
+
query?: SessionQueryParams;
|
|
86
|
+
}) => void;
|
|
85
87
|
};
|
|
86
88
|
$Infer: {
|
|
87
89
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
@@ -4,14 +4,14 @@ 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, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.Ctgkdy7x.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.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.BpZ2qzWn.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../../shared/better-auth.
|
|
14
|
+
import '../../shared/better-auth.efEqxJ3k.mjs';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
|
@@ -81,7 +81,9 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
81
81
|
} ? S : Res : never;
|
|
82
82
|
isPending: boolean;
|
|
83
83
|
error: BetterFetchError | null;
|
|
84
|
-
refetch: (
|
|
84
|
+
refetch: (queryParams?: {
|
|
85
|
+
query?: SessionQueryParams;
|
|
86
|
+
}) => void;
|
|
85
87
|
};
|
|
86
88
|
$Infer: {
|
|
87
89
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
@@ -4,14 +4,14 @@ 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, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.BLYxY3m3.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.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.BCH1iVsI.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'kysely';
|
|
13
13
|
import 'zod/v4';
|
|
14
|
-
import '../../shared/better-auth.
|
|
14
|
+
import '../../shared/better-auth.CnJoIxG_.js';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
|
@@ -81,7 +81,9 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
81
81
|
} ? S : Res : never;
|
|
82
82
|
isPending: boolean;
|
|
83
83
|
error: BetterFetchError | null;
|
|
84
|
-
refetch: (
|
|
84
|
+
refetch: (queryParams?: {
|
|
85
|
+
query?: SessionQueryParams;
|
|
86
|
+
}) => void;
|
|
85
87
|
};
|
|
86
88
|
$Infer: {
|
|
87
89
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
1
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.DygnLQW5.mjs';
|
|
2
2
|
import { listenKeys } from 'nanostores';
|
|
3
3
|
import { useRef, useCallback, useSyncExternalStore } from 'react';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
5
5
|
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
6
6
|
import '../../shared/better-auth.CMQ3rA-I.mjs';
|
|
7
7
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
8
|
-
import '../../shared/better-auth.
|
|
8
|
+
import '../../shared/better-auth.kTs0zHGZ.mjs';
|
|
9
9
|
import '../../shared/better-auth.ffWeg50w.mjs';
|
|
10
10
|
|
|
11
11
|
function useStore(store, options = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const proxy = require('../../shared/better-auth.
|
|
3
|
+
const proxy = require('../../shared/better-auth.B4s085TW.cjs');
|
|
4
4
|
const misc = require('../../shared/better-auth.BLDOwz3i.cjs');
|
|
5
5
|
const store = require('solid-js/store');
|
|
6
6
|
const solidJs = require('solid-js');
|
|
@@ -9,7 +9,7 @@ require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
|
9
9
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
10
10
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
11
11
|
require('nanostores');
|
|
12
|
-
require('../../shared/better-auth.
|
|
12
|
+
require('../../shared/better-auth.CgIMrxKr.cjs');
|
|
13
13
|
require('../../shared/better-auth.DhsGZ30Q.cjs');
|
|
14
14
|
|
|
15
15
|
function useStore(store$1) {
|
|
@@ -1,15 +1,15 @@
|
|
|
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.BgjEx6dy.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.BXZFHeKS.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import 'zod/v4';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.BVRe9oUF.cjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'zod/v4/core';
|
|
15
15
|
import 'zod';
|
|
@@ -25,15 +25,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
25
25
|
data: InferClientAPI<Option> extends {
|
|
26
26
|
getSession: () => Promise<infer Res>;
|
|
27
27
|
} ? Res extends {
|
|
28
|
-
data: infer S;
|
|
29
|
-
error: null;
|
|
30
|
-
} | {
|
|
31
28
|
data: null;
|
|
32
29
|
error: {
|
|
33
30
|
message?: string | undefined;
|
|
34
31
|
status: number;
|
|
35
32
|
statusText: string;
|
|
36
33
|
};
|
|
34
|
+
} | {
|
|
35
|
+
data: infer S;
|
|
36
|
+
error: null;
|
|
37
37
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
38
38
|
isPending: boolean;
|
|
39
39
|
isRefetching: boolean;
|
|
@@ -43,15 +43,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
43
43
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
44
44
|
getSession: () => Promise<infer Res>;
|
|
45
45
|
} ? Res extends {
|
|
46
|
-
data: infer S;
|
|
47
|
-
error: null;
|
|
48
|
-
} | {
|
|
49
46
|
data: null;
|
|
50
47
|
error: {
|
|
51
48
|
message?: string | undefined;
|
|
52
49
|
status: number;
|
|
53
50
|
statusText: string;
|
|
54
51
|
};
|
|
52
|
+
} | {
|
|
53
|
+
data: infer S;
|
|
54
|
+
error: null;
|
|
55
55
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
56
56
|
};
|
|
57
57
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -1,15 +1,15 @@
|
|
|
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.Ctgkdy7x.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.BpZ2qzWn.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import 'zod/v4';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.efEqxJ3k.mjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'zod/v4/core';
|
|
15
15
|
import 'zod';
|
|
@@ -25,15 +25,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
25
25
|
data: InferClientAPI<Option> extends {
|
|
26
26
|
getSession: () => Promise<infer Res>;
|
|
27
27
|
} ? Res extends {
|
|
28
|
-
data: infer S;
|
|
29
|
-
error: null;
|
|
30
|
-
} | {
|
|
31
28
|
data: null;
|
|
32
29
|
error: {
|
|
33
30
|
message?: string | undefined;
|
|
34
31
|
status: number;
|
|
35
32
|
statusText: string;
|
|
36
33
|
};
|
|
34
|
+
} | {
|
|
35
|
+
data: infer S;
|
|
36
|
+
error: null;
|
|
37
37
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
38
38
|
isPending: boolean;
|
|
39
39
|
isRefetching: boolean;
|
|
@@ -43,15 +43,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
43
43
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
44
44
|
getSession: () => Promise<infer Res>;
|
|
45
45
|
} ? Res extends {
|
|
46
|
-
data: infer S;
|
|
47
|
-
error: null;
|
|
48
|
-
} | {
|
|
49
46
|
data: null;
|
|
50
47
|
error: {
|
|
51
48
|
message?: string | undefined;
|
|
52
49
|
status: number;
|
|
53
50
|
statusText: string;
|
|
54
51
|
};
|
|
52
|
+
} | {
|
|
53
|
+
data: infer S;
|
|
54
|
+
error: null;
|
|
55
55
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
56
56
|
};
|
|
57
57
|
$fetch: _better_fetch_fetch.BetterFetch<{
|