better-auth 1.3.7-beta.4 → 1.3.8-beta.1
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 +4 -3
- 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/drizzle-adapter/index.mjs +4 -3
- package/dist/adapters/index.cjs +4 -3
- 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/index.mjs +4 -3
- package/dist/adapters/kysely-adapter/index.cjs +5 -4
- 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/kysely-adapter/index.mjs +5 -4
- package/dist/adapters/memory-adapter/index.cjs +5 -4
- 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/memory-adapter/index.mjs +5 -4
- package/dist/adapters/mongodb-adapter/index.cjs +5 -4
- 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/mongodb-adapter/index.mjs +5 -4
- package/dist/adapters/prisma-adapter/index.cjs +4 -3
- 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/prisma-adapter/index.mjs +4 -3
- package/dist/adapters/test.cjs +3 -2
- package/dist/adapters/test.d.cts +2 -2
- package/dist/adapters/test.d.mts +2 -2
- package/dist/adapters/test.d.ts +2 -2
- package/dist/adapters/test.mjs +2 -1
- package/dist/api/index.cjs +6 -5
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.mjs +7 -6
- package/dist/client/index.cjs +2 -2
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.mts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.mjs +2 -2
- package/dist/client/plugins/index.d.cts +4 -4
- package/dist/client/plugins/index.d.mts +4 -4
- package/dist/client/plugins/index.d.ts +4 -4
- package/dist/client/react/index.cjs +1 -1
- 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/react/index.mjs +1 -1
- package/dist/client/solid/index.cjs +1 -1
- 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 +1 -1
- package/dist/client/svelte/index.cjs +1 -1
- 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 +1 -1
- package/dist/client/vue/index.cjs +1 -1
- 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 +1 -1
- package/dist/cookies/index.cjs +2 -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 +2 -1
- package/dist/crypto/index.cjs +4 -6
- package/dist/crypto/index.mjs +4 -6
- package/dist/db/index.cjs +7 -6
- 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/db/index.mjs +7 -6
- package/dist/index.cjs +10 -9
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +9 -8
- 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 +4 -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 +4 -3
- package/dist/oauth2/index.cjs +4 -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 +4 -3
- package/dist/plugins/admin/index.cjs +5 -4
- package/dist/plugins/admin/index.d.cts +2 -2
- package/dist/plugins/admin/index.d.mts +2 -2
- package/dist/plugins/admin/index.d.ts +2 -2
- package/dist/plugins/admin/index.mjs +5 -4
- package/dist/plugins/anonymous/index.cjs +6 -5
- 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 +4 -3
- package/dist/plugins/bearer/index.cjs +4 -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 +4 -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 +4 -3
- package/dist/plugins/custom-session/index.d.cts +2 -2
- package/dist/plugins/custom-session/index.d.mts +2 -2
- package/dist/plugins/custom-session/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.mjs +4 -3
- package/dist/plugins/email-otp/index.cjs +4 -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 +4 -3
- package/dist/plugins/generic-oauth/index.cjs +4 -3
- package/dist/plugins/generic-oauth/index.d.cts +2 -2
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/generic-oauth/index.d.ts +2 -2
- package/dist/plugins/generic-oauth/index.mjs +4 -3
- package/dist/plugins/haveibeenpwned/index.cjs +4 -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 +4 -3
- package/dist/plugins/index.cjs +9 -8
- package/dist/plugins/index.d.cts +4 -4
- package/dist/plugins/index.d.mts +4 -4
- package/dist/plugins/index.d.ts +4 -4
- package/dist/plugins/index.mjs +11 -10
- package/dist/plugins/jwt/index.cjs +17 -4
- package/dist/plugins/jwt/index.d.cts +18 -2
- package/dist/plugins/jwt/index.d.mts +18 -2
- package/dist/plugins/jwt/index.d.ts +18 -2
- package/dist/plugins/jwt/index.mjs +17 -4
- package/dist/plugins/magic-link/index.cjs +4 -3
- package/dist/plugins/magic-link/index.mjs +4 -3
- package/dist/plugins/multi-session/index.cjs +4 -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 +4 -3
- package/dist/plugins/oauth-proxy/index.cjs +4 -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 +4 -3
- package/dist/plugins/oidc-provider/index.cjs +5 -4
- package/dist/plugins/oidc-provider/index.d.cts +6 -6
- package/dist/plugins/oidc-provider/index.d.mts +6 -6
- package/dist/plugins/oidc-provider/index.d.ts +6 -6
- package/dist/plugins/oidc-provider/index.mjs +5 -4
- package/dist/plugins/one-tap/index.cjs +4 -3
- package/dist/plugins/one-tap/index.mjs +4 -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 +4 -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 +4 -3
- package/dist/plugins/organization/index.cjs +6 -5
- package/dist/plugins/organization/index.d.cts +2 -2
- package/dist/plugins/organization/index.d.mts +2 -2
- package/dist/plugins/organization/index.d.ts +2 -2
- package/dist/plugins/organization/index.mjs +6 -5
- package/dist/plugins/passkey/index.cjs +10 -9
- 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 +4 -3
- package/dist/plugins/phone-number/index.cjs +4 -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 +4 -3
- package/dist/plugins/siwe/index.cjs +4 -3
- package/dist/plugins/siwe/index.mjs +4 -3
- package/dist/plugins/sso/index.cjs +4 -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 +4 -3
- package/dist/plugins/two-factor/index.cjs +4 -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 +4 -3
- package/dist/plugins/username/index.cjs +4 -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 +4 -3
- package/dist/shared/{better-auth.FRU5fEva.d.ts → better-auth.0SyTY9U9.d.ts} +3 -3
- package/dist/shared/{better-auth.p-Uzc99w.d.mts → better-auth.6hiPn8Kd.d.mts} +1 -1
- package/dist/shared/{better-auth.Bm_lsK_X.cjs → better-auth.BCerfnoo.cjs} +1 -1
- package/dist/shared/{better-auth.AjWsFGR2.mjs → better-auth.BDBtglk1.mjs} +1 -1
- package/dist/shared/{better-auth.C90rYXah.d.mts → better-auth.BDEfedYa.d.mts} +1 -1
- package/dist/shared/{better-auth.i4FcAzeC.d.mts → better-auth.BS4wi0R-.d.mts} +3 -3
- package/dist/shared/better-auth.BUPPRXfK.mjs +7 -0
- package/dist/shared/{better-auth.CmL3zoTf.cjs → better-auth.BbDyeJdW.cjs} +8 -7
- package/dist/shared/{better-auth.CQh483f7.d.cts → better-auth.Bf5MnLaK.d.cts} +1 -1
- package/dist/shared/better-auth.Bg6iw3ig.cjs +9 -0
- package/dist/shared/{better-auth.DzBLnNed.cjs → better-auth.Bgs2SPcK.cjs} +4 -3
- package/dist/shared/{better-auth.DGpadpzN.mjs → better-auth.BtemoGGn.mjs} +2 -2
- package/dist/shared/{better-auth.Cg1dmr5y.cjs → better-auth.CCCUvENJ.cjs} +1 -1
- package/dist/shared/{better-auth.ttwhJPkY.cjs → better-auth.CFtZttAn.cjs} +2 -2
- package/dist/shared/{better-auth.BCw_RfvI.d.ts → better-auth.CLfudv58.d.ts} +1 -1
- package/dist/shared/{better-auth.C-iQKHit.cjs → better-auth.CRyLLXtn.cjs} +5 -4
- package/dist/shared/{better-auth.Dj5-80xo.mjs → better-auth.CVQe8izV.mjs} +3 -0
- package/dist/shared/{better-auth.CgHSubXi.cjs → better-auth.CVYnNkfw.cjs} +3 -0
- package/dist/shared/{better-auth.Bl4gu-Fk.d.ts → better-auth.C_0BlDB0.d.ts} +1 -1
- package/dist/shared/{better-auth.DJk1sjAs.d.cts → better-auth.CkEkCniR.d.cts} +3 -3
- package/dist/shared/{better-auth.DbKDE2me.d.cts → better-auth.CkqBZvXM.d.cts} +1 -1
- package/dist/shared/{better-auth.DrlGxSnx.cjs → better-auth.Co0UDY4N.cjs} +7 -6
- package/dist/shared/{better-auth.rlJsdl11.mjs → better-auth.CwsxfHfN.mjs} +5 -4
- package/dist/shared/{better-auth.B0iWTKws.cjs → better-auth.D4eTSyUO.cjs} +4 -4
- package/dist/shared/{better-auth.B6RdGJ7s.d.mts → better-auth.D85s0t2j.d.mts} +1 -1
- package/dist/shared/{better-auth.DBGfIDnh.mjs → better-auth.DH3YjMQH.mjs} +1 -7
- package/dist/shared/{better-auth.DRCA5tuq.mjs → better-auth.DIfzDoPN.mjs} +1 -1
- package/dist/shared/{better-auth.BbL1R1Sz.mjs → better-auth.DMus0Wrm.mjs} +3 -2
- package/dist/shared/{better-auth.C3xCP8gd.mjs → better-auth.DX362szo.mjs} +2 -2
- package/dist/shared/{better-auth.DOu-HY-s.cjs → better-auth.Db2g2HxM.cjs} +1 -1
- package/dist/shared/{better-auth.D3mtHEZg.cjs → better-auth.DbrEw0kN.cjs} +7 -1
- package/dist/shared/{better-auth.mZH9hh8Y.mjs → better-auth.DiE4yQHn.mjs} +3 -3
- package/dist/shared/{better-auth.Cz19aYmv.d.ts → better-auth.DnUZno9_.d.ts} +1 -1
- package/dist/shared/{better-auth.Bk0IzLeq.cjs → better-auth.DrKKZc3v.cjs} +17 -12
- package/dist/shared/{better-auth.BRIhBAUU.mjs → better-auth.DrQaSEU_.mjs} +2 -2
- package/dist/shared/{better-auth.BBL-iB6G.cjs → better-auth.DrzbcRgZ.cjs} +3 -3
- package/dist/shared/{better-auth.CXhVNgXP.cjs → better-auth.GpOOav9x.cjs} +0 -7
- package/dist/shared/{better-auth.gn8iAL5-.mjs → better-auth.HYhkNVyD.mjs} +1 -1
- package/dist/shared/{better-auth.C8_73KID.d.mts → better-auth.Je5iPAGQ.d.mts} +1 -1
- package/dist/shared/{better-auth.B-6xBTSt.mjs → better-auth.MrJBhiF6.mjs} +13 -8
- package/dist/shared/{better-auth.AEdHzBYL.cjs → better-auth.NCWQv_ti.cjs} +2 -2
- package/dist/shared/{better-auth.BX7dnGA9.mjs → better-auth.PFi3XfiT.mjs} +3 -2
- package/dist/shared/{better-auth.tB5eU6EY.mjs → better-auth.PgM8qMHr.mjs} +7 -1
- package/dist/shared/{better-auth.BVaTxNzZ.cjs → better-auth.WTr4EDT7.cjs} +2 -2
- package/dist/shared/{better-auth.B0fPvhjN.d.cts → better-auth.X6YzBCDT.d.cts} +1 -1
- package/dist/shared/{better-auth.B90obJO5.d.cts → better-auth.YmpB7UaD.d.cts} +1 -1
- package/dist/shared/{better-auth.ifLlvMvk.d.ts → better-auth._D1fz1Yx.d.ts} +1 -1
- package/dist/shared/{better-auth.gBl3F_xa.mjs → better-auth.gABN3TsS.mjs} +3 -2
- package/dist/shared/{better-auth.BfcAnEQf.mjs → better-auth.p1GhhfhV.mjs} +4 -4
- package/dist/social-providers/index.cjs +4 -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 +4 -3
- package/dist/test-utils/index.cjs +13 -12
- package/dist/test-utils/index.d.cts +3 -3
- package/dist/test-utils/index.d.mts +3 -3
- package/dist/test-utils/index.d.ts +3 -3
- package/dist/test-utils/index.mjs +13 -12
- 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 +1 -1
package/dist/api/index.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { APIError, createRouter } from 'better-call';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
import { j as createAuthEndpoint, B as BASE_ERROR_CODES, t as createEmailVerificationToken, w as wildcardMatch, u as listSessions, x as updateUser, m as getSession, y as toAuthEndpoints, z as originCheckMiddleware, A as error, C as ok, D as accountInfo, E as getAccessToken, F as refreshToken, G as unlinkAccount, I as deleteUserCallback, J as listUserAccounts, K as linkSocialAccount, L as revokeOtherSessions, M as revokeSessions, N as revokeSession, O as requestPasswordResetCallback, P as requestPasswordReset, Q as forgetPasswordCallback, R as deleteUser, S as setPassword, T as changePassword, U as changeEmail, V as sendVerificationEmail, W as verifyEmail, X as resetPassword, Y as forgetPassword, Z as signInEmail, _ as signOut, $ as callbackOAuth, a0 as signInSocial } from '../shared/better-auth.
|
|
4
|
-
export { i as createAuthMiddleware, n as freshSessionMiddleware, k as getSessionFromCtx, a1 as getSessionQuerySchema, q as optionsMiddleware, o as originCheck, a2 as requestOnlySessionMiddleware, a3 as sendVerificationEmailFn, l as sessionMiddleware } from '../shared/better-auth.
|
|
3
|
+
import { j as createAuthEndpoint, B as BASE_ERROR_CODES, t as createEmailVerificationToken, w as wildcardMatch, u as listSessions, x as updateUser, m as getSession, y as toAuthEndpoints, z as originCheckMiddleware, A as error, C as ok, D as accountInfo, E as getAccessToken, F as refreshToken, G as unlinkAccount, I as deleteUserCallback, J as listUserAccounts, K as linkSocialAccount, L as revokeOtherSessions, M as revokeSessions, N as revokeSession, O as requestPasswordResetCallback, P as requestPasswordReset, Q as forgetPasswordCallback, R as deleteUser, S as setPassword, T as changePassword, U as changeEmail, V as sendVerificationEmail, W as verifyEmail, X as resetPassword, Y as forgetPassword, Z as signInEmail, _ as signOut, $ as callbackOAuth, a0 as signInSocial } from '../shared/better-auth.DMus0Wrm.mjs';
|
|
4
|
+
export { i as createAuthMiddleware, n as freshSessionMiddleware, k as getSessionFromCtx, a1 as getSessionQuerySchema, q as optionsMiddleware, o as originCheck, a2 as requestOnlySessionMiddleware, a3 as sendVerificationEmailFn, l as sessionMiddleware } from '../shared/better-auth.DMus0Wrm.mjs';
|
|
5
5
|
import * as z from 'zod/v4';
|
|
6
6
|
import { setSessionCookie } from '../cookies/index.mjs';
|
|
7
7
|
import { f as parseUserInput } from '../shared/better-auth.n2KFGwjY.mjs';
|
|
8
8
|
import { b as isDevelopment } from '../shared/better-auth.CMQ3rA-I.mjs';
|
|
9
|
-
import { a as logger } from '../shared/better-auth.
|
|
9
|
+
import { a as logger } from '../shared/better-auth.DH3YjMQH.mjs';
|
|
10
|
+
import { s as safeJSONParse } from '../shared/better-auth.PgM8qMHr.mjs';
|
|
10
11
|
import { g as getIp } from '../shared/better-auth.O2VtDkDK.mjs';
|
|
11
12
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
12
13
|
import '@better-auth/utils/hash';
|
|
@@ -25,10 +26,10 @@ import '@better-auth/utils/random';
|
|
|
25
26
|
import '@better-fetch/fetch';
|
|
26
27
|
import '../shared/better-auth.CuS_eDdK.mjs';
|
|
27
28
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
28
|
-
import '../shared/better-auth.tB5eU6EY.mjs';
|
|
29
29
|
import '@better-auth/utils/hmac';
|
|
30
30
|
import '@better-auth/utils/binary';
|
|
31
31
|
import 'jose/errors';
|
|
32
|
+
import '../shared/better-auth.BUPPRXfK.mjs';
|
|
32
33
|
import 'defu';
|
|
33
34
|
|
|
34
35
|
const signUpEmail = () => createAuthEndpoint(
|
|
@@ -378,8 +379,8 @@ function getRateLimitStorage(ctx) {
|
|
|
378
379
|
if (ctx.rateLimit.storage === "secondary-storage") {
|
|
379
380
|
return {
|
|
380
381
|
get: async (key) => {
|
|
381
|
-
const
|
|
382
|
-
return
|
|
382
|
+
const data = await ctx.options.secondaryStorage?.get(key);
|
|
383
|
+
return data ? safeJSONParse(data) : void 0;
|
|
383
384
|
},
|
|
384
385
|
set: async (key, value) => {
|
|
385
386
|
await ctx.options.secondaryStorage?.set?.(key, JSON.stringify(value));
|
package/dist/client/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const vanilla = require('../shared/better-auth.
|
|
3
|
+
const vanilla = require('../shared/better-auth.Db2g2HxM.cjs');
|
|
4
4
|
const query = require('../shared/better-auth.Ck3n8bMC.cjs');
|
|
5
|
-
require('../shared/better-auth.
|
|
5
|
+
require('../shared/better-auth.CVYnNkfw.cjs');
|
|
6
6
|
require('@better-fetch/fetch');
|
|
7
7
|
require('../shared/better-auth.DRmln2Nr.cjs');
|
|
8
8
|
require('../shared/better-auth.B6fIklBU.cjs');
|
package/dist/client/index.d.cts
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.CkEkCniR.cjs';
|
|
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, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.Bf5MnLaK.cjs';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.Bf5MnLaK.cjs';
|
|
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.CkqBZvXM.cjs';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
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.BS4wi0R-.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, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.BDEfedYa.mjs';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.BDEfedYa.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.Je5iPAGQ.mjs';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
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.0SyTY9U9.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, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.
|
|
5
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth._D1fz1Yx.js';
|
|
6
|
+
export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth._D1fz1Yx.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.DnUZno9_.js';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { c as createAuthClient } from '../shared/better-auth.
|
|
1
|
+
export { c as createAuthClient } from '../shared/better-auth.BDBtglk1.mjs';
|
|
2
2
|
export { u as useAuthQuery } from '../shared/better-auth.Buni1mmI.mjs';
|
|
3
|
-
import '../shared/better-auth.
|
|
3
|
+
import '../shared/better-auth.CVQe8izV.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';
|
|
@@ -5,7 +5,7 @@ import { atom } from 'nanostores';
|
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
7
7
|
import { a as Prettify } from '../../shared/better-auth.BDR52Rf2.cjs';
|
|
8
|
-
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
8
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.CkEkCniR.cjs';
|
|
9
9
|
import { username } from '../../plugins/username/index.cjs';
|
|
10
10
|
import { Session } from 'inspector';
|
|
11
11
|
import { Passkey, passkey } from '../../plugins/passkey/index.cjs';
|
|
@@ -18,10 +18,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.cjs';
|
|
|
18
18
|
import { jwt } from '../../plugins/jwt/index.cjs';
|
|
19
19
|
import { multiSession } from '../../plugins/multi-session/index.cjs';
|
|
20
20
|
import { emailOTP } from '../../plugins/email-otp/index.cjs';
|
|
21
|
-
import { S as Store } from '../../shared/better-auth.
|
|
21
|
+
import { S as Store } from '../../shared/better-auth.Bf5MnLaK.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.X6YzBCDT.cjs';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.cjs';
|
|
27
27
|
export * from '@simplewebauthn/server';
|
|
@@ -30,7 +30,7 @@ import 'zod/v4';
|
|
|
30
30
|
import 'better-call';
|
|
31
31
|
import '../../plugins/organization/access/index.cjs';
|
|
32
32
|
import 'kysely';
|
|
33
|
-
import '../../shared/better-auth.
|
|
33
|
+
import '../../shared/better-auth.CkqBZvXM.cjs';
|
|
34
34
|
import 'jose';
|
|
35
35
|
import 'zod/v4/core';
|
|
36
36
|
import 'zod';
|
|
@@ -5,7 +5,7 @@ import { atom } from 'nanostores';
|
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
7
7
|
import { a as Prettify } from '../../shared/better-auth.BDR52Rf2.mjs';
|
|
8
|
-
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
8
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.BS4wi0R-.mjs';
|
|
9
9
|
import { username } from '../../plugins/username/index.mjs';
|
|
10
10
|
import { Session } from 'inspector';
|
|
11
11
|
import { Passkey, passkey } from '../../plugins/passkey/index.mjs';
|
|
@@ -18,10 +18,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.mjs';
|
|
|
18
18
|
import { jwt } from '../../plugins/jwt/index.mjs';
|
|
19
19
|
import { multiSession } from '../../plugins/multi-session/index.mjs';
|
|
20
20
|
import { emailOTP } from '../../plugins/email-otp/index.mjs';
|
|
21
|
-
import { S as Store } from '../../shared/better-auth.
|
|
21
|
+
import { S as Store } from '../../shared/better-auth.BDEfedYa.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.6hiPn8Kd.mjs';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.mjs';
|
|
27
27
|
export * from '@simplewebauthn/server';
|
|
@@ -30,7 +30,7 @@ import 'zod/v4';
|
|
|
30
30
|
import 'better-call';
|
|
31
31
|
import '../../plugins/organization/access/index.mjs';
|
|
32
32
|
import 'kysely';
|
|
33
|
-
import '../../shared/better-auth.
|
|
33
|
+
import '../../shared/better-auth.Je5iPAGQ.mjs';
|
|
34
34
|
import 'jose';
|
|
35
35
|
import 'zod/v4/core';
|
|
36
36
|
import 'zod';
|
|
@@ -5,7 +5,7 @@ import { atom } from 'nanostores';
|
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
7
7
|
import { a as Prettify } from '../../shared/better-auth.BDR52Rf2.js';
|
|
8
|
-
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.
|
|
8
|
+
import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.0SyTY9U9.js';
|
|
9
9
|
import { username } from '../../plugins/username/index.js';
|
|
10
10
|
import { Session } from 'inspector';
|
|
11
11
|
import { Passkey, passkey } from '../../plugins/passkey/index.js';
|
|
@@ -18,10 +18,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.js';
|
|
|
18
18
|
import { jwt } from '../../plugins/jwt/index.js';
|
|
19
19
|
import { multiSession } from '../../plugins/multi-session/index.js';
|
|
20
20
|
import { emailOTP } from '../../plugins/email-otp/index.js';
|
|
21
|
-
import { S as Store } from '../../shared/better-auth.
|
|
21
|
+
import { S as Store } from '../../shared/better-auth._D1fz1Yx.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.CLfudv58.js';
|
|
25
25
|
import { oneTimeToken } from '../../plugins/one-time-token/index.js';
|
|
26
26
|
import { siwe } from '../../plugins/siwe/index.js';
|
|
27
27
|
export * from '@simplewebauthn/server';
|
|
@@ -30,7 +30,7 @@ import 'zod/v4';
|
|
|
30
30
|
import 'better-call';
|
|
31
31
|
import '../../plugins/organization/access/index.js';
|
|
32
32
|
import 'kysely';
|
|
33
|
-
import '../../shared/better-auth.
|
|
33
|
+
import '../../shared/better-auth.DnUZno9_.js';
|
|
34
34
|
import 'jose';
|
|
35
35
|
import 'zod/v4/core';
|
|
36
36
|
import 'zod';
|
|
@@ -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, c as InferErrorCodes } from '../../shared/better-auth.Bf5MnLaK.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.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.CkEkCniR.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.CkqBZvXM.cjs';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
|
@@ -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, c as InferErrorCodes } from '../../shared/better-auth.BDEfedYa.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.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.BS4wi0R-.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.Je5iPAGQ.mjs';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
|
@@ -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, c as InferErrorCodes } from '../../shared/better-auth._D1fz1Yx.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.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.0SyTY9U9.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.DnUZno9_.js';
|
|
15
15
|
import 'jose';
|
|
16
16
|
import 'zod/v4/core';
|
|
17
17
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
1
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.CVQe8izV.mjs';
|
|
2
2
|
import { listenKeys } from 'nanostores';
|
|
3
3
|
import { useRef, useCallback, useSyncExternalStore } from 'react';
|
|
4
4
|
import '@better-fetch/fetch';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const proxy = require('../../shared/better-auth.
|
|
3
|
+
const proxy = require('../../shared/better-auth.CVYnNkfw.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');
|
|
@@ -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.Bf5MnLaK.cjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.cjs';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CkEkCniR.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.CkqBZvXM.cjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'zod/v4/core';
|
|
15
15
|
import 'zod';
|
|
@@ -24,15 +24,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
24
24
|
data: InferClientAPI<Option> extends {
|
|
25
25
|
getSession: () => Promise<infer Res>;
|
|
26
26
|
} ? Res extends {
|
|
27
|
+
data: infer S;
|
|
28
|
+
error: null;
|
|
29
|
+
} | {
|
|
27
30
|
data: null;
|
|
28
31
|
error: {
|
|
29
32
|
message?: string | undefined;
|
|
30
33
|
status: number;
|
|
31
34
|
statusText: string;
|
|
32
35
|
};
|
|
33
|
-
} | {
|
|
34
|
-
data: infer S;
|
|
35
|
-
error: null;
|
|
36
36
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
37
37
|
isPending: boolean;
|
|
38
38
|
isRefetching: boolean;
|
|
@@ -42,15 +42,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
42
42
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
43
43
|
getSession: () => Promise<infer Res>;
|
|
44
44
|
} ? Res extends {
|
|
45
|
+
data: infer S;
|
|
46
|
+
error: null;
|
|
47
|
+
} | {
|
|
45
48
|
data: null;
|
|
46
49
|
error: {
|
|
47
50
|
message?: string | undefined;
|
|
48
51
|
status: number;
|
|
49
52
|
statusText: string;
|
|
50
53
|
};
|
|
51
|
-
} | {
|
|
52
|
-
data: infer S;
|
|
53
|
-
error: null;
|
|
54
54
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
55
55
|
};
|
|
56
56
|
$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.BDEfedYa.mjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.mjs';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BS4wi0R-.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.Je5iPAGQ.mjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'zod/v4/core';
|
|
15
15
|
import 'zod';
|
|
@@ -24,15 +24,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
24
24
|
data: InferClientAPI<Option> extends {
|
|
25
25
|
getSession: () => Promise<infer Res>;
|
|
26
26
|
} ? Res extends {
|
|
27
|
+
data: infer S;
|
|
28
|
+
error: null;
|
|
29
|
+
} | {
|
|
27
30
|
data: null;
|
|
28
31
|
error: {
|
|
29
32
|
message?: string | undefined;
|
|
30
33
|
status: number;
|
|
31
34
|
statusText: string;
|
|
32
35
|
};
|
|
33
|
-
} | {
|
|
34
|
-
data: infer S;
|
|
35
|
-
error: null;
|
|
36
36
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
37
37
|
isPending: boolean;
|
|
38
38
|
isRefetching: boolean;
|
|
@@ -42,15 +42,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
42
42
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
43
43
|
getSession: () => Promise<infer Res>;
|
|
44
44
|
} ? Res extends {
|
|
45
|
+
data: infer S;
|
|
46
|
+
error: null;
|
|
47
|
+
} | {
|
|
45
48
|
data: null;
|
|
46
49
|
error: {
|
|
47
50
|
message?: string | undefined;
|
|
48
51
|
status: number;
|
|
49
52
|
statusText: string;
|
|
50
53
|
};
|
|
51
|
-
} | {
|
|
52
|
-
data: infer S;
|
|
53
|
-
error: null;
|
|
54
54
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
55
55
|
};
|
|
56
56
|
$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._D1fz1Yx.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.js';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.0SyTY9U9.js';
|
|
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.DnUZno9_.js';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'zod/v4/core';
|
|
15
15
|
import 'zod';
|
|
@@ -24,15 +24,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
24
24
|
data: InferClientAPI<Option> extends {
|
|
25
25
|
getSession: () => Promise<infer Res>;
|
|
26
26
|
} ? Res extends {
|
|
27
|
+
data: infer S;
|
|
28
|
+
error: null;
|
|
29
|
+
} | {
|
|
27
30
|
data: null;
|
|
28
31
|
error: {
|
|
29
32
|
message?: string | undefined;
|
|
30
33
|
status: number;
|
|
31
34
|
statusText: string;
|
|
32
35
|
};
|
|
33
|
-
} | {
|
|
34
|
-
data: infer S;
|
|
35
|
-
error: null;
|
|
36
36
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
37
37
|
isPending: boolean;
|
|
38
38
|
isRefetching: boolean;
|
|
@@ -42,15 +42,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
42
42
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
43
43
|
getSession: () => Promise<infer Res>;
|
|
44
44
|
} ? Res extends {
|
|
45
|
+
data: infer S;
|
|
46
|
+
error: null;
|
|
47
|
+
} | {
|
|
45
48
|
data: null;
|
|
46
49
|
error: {
|
|
47
50
|
message?: string | undefined;
|
|
48
51
|
status: number;
|
|
49
52
|
statusText: string;
|
|
50
53
|
};
|
|
51
|
-
} | {
|
|
52
|
-
data: infer S;
|
|
53
|
-
error: null;
|
|
54
54
|
} ? S : Res extends Record<string, any> ? Res : never : never>;
|
|
55
55
|
};
|
|
56
56
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
1
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.CVQe8izV.mjs';
|
|
2
2
|
import { c as capitalizeFirstLetter } from '../../shared/better-auth.D-2CmEwz.mjs';
|
|
3
3
|
import { createStore, reconcile } from 'solid-js/store';
|
|
4
4
|
import { onCleanup } from 'solid-js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const proxy = require('../../shared/better-auth.
|
|
3
|
+
const proxy = require('../../shared/better-auth.CVYnNkfw.cjs');
|
|
4
4
|
const misc = require('../../shared/better-auth.BLDOwz3i.cjs');
|
|
5
5
|
require('@better-fetch/fetch');
|
|
6
6
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|
|
@@ -4,13 +4,13 @@ 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.Bf5MnLaK.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.cjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CkEkCniR.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.CkqBZvXM.cjs';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'zod/v4/core';
|
|
16
16
|
import 'zod';
|
|
@@ -4,13 +4,13 @@ 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.BDEfedYa.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.mjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BS4wi0R-.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.Je5iPAGQ.mjs';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'zod/v4/core';
|
|
16
16
|
import 'zod';
|
|
@@ -4,13 +4,13 @@ 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._D1fz1Yx.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.js';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.0SyTY9U9.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'kysely';
|
|
12
12
|
import 'zod/v4';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.DnUZno9_.js';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'zod/v4/core';
|
|
16
16
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.
|
|
1
|
+
import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.CVQe8izV.mjs';
|
|
2
2
|
import { c as capitalizeFirstLetter } from '../../shared/better-auth.D-2CmEwz.mjs';
|
|
3
3
|
import '@better-fetch/fetch';
|
|
4
4
|
import '../../shared/better-auth.CuS_eDdK.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const vue = require('vue');
|
|
4
|
-
const proxy = require('../../shared/better-auth.
|
|
4
|
+
const proxy = require('../../shared/better-auth.CVYnNkfw.cjs');
|
|
5
5
|
const misc = require('../../shared/better-auth.BLDOwz3i.cjs');
|
|
6
6
|
require('@better-fetch/fetch');
|
|
7
7
|
require('../../shared/better-auth.DRmln2Nr.cjs');
|