better-auth 1.4.1-beta.1 → 1.4.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.
Files changed (137) hide show
  1. package/dist/adapters/index.d.mts +1 -1
  2. package/dist/{admin-DjEmkgJR.mjs → admin-BWblrERx.mjs} +4 -4
  3. package/dist/{anonymous-BWPvpB8l.mjs → anonymous-B03YuGJE.mjs} +4 -4
  4. package/dist/api/index.d.mts +1 -1
  5. package/dist/api/index.mjs +5 -5
  6. package/dist/{api-Ch2M0RnX.mjs → api-CE_W4rUg.mjs} +5 -4
  7. package/dist/auth/minimal.d.mts +1 -1
  8. package/dist/auth/minimal.mjs +6 -6
  9. package/dist/{auth-DFHPggAv.mjs → auth-COq2wuZq.mjs} +2 -2
  10. package/dist/{base-aAzBva0a.mjs → base-C0S84LB0.mjs} +3 -3
  11. package/dist/{bearer-DgAHF1M0.mjs → bearer-C42aRZlK.mjs} +1 -1
  12. package/dist/client/index.d.mts +17 -17
  13. package/dist/client/index.mjs +2 -2
  14. package/dist/client/lynx/index.d.mts +1 -1
  15. package/dist/client/lynx/index.mjs +1 -1
  16. package/dist/client/plugins/index.d.mts +24 -24
  17. package/dist/client/plugins/index.mjs +2 -2
  18. package/dist/client/react/index.d.mts +15 -15
  19. package/dist/client/react/index.mjs +1 -1
  20. package/dist/client/solid/index.d.mts +1 -1
  21. package/dist/client/solid/index.mjs +1 -1
  22. package/dist/client/svelte/index.d.mts +17 -17
  23. package/dist/client/svelte/index.mjs +1 -1
  24. package/dist/client/vue/index.d.mts +17 -17
  25. package/dist/client/vue/index.mjs +1 -1
  26. package/dist/{client-BikTMh-g.mjs → client-D6y29bCu.mjs} +1 -1
  27. package/dist/cookies/index.d.mts +2 -2
  28. package/dist/cookies/index.mjs +2 -2
  29. package/dist/{cookies-B7DF9RAb.mjs → cookies-m6bKaTlj.mjs} +1 -1
  30. package/dist/{custom-session-VbLOSn2X.mjs → custom-session-D7ueXXp_.mjs} +1 -1
  31. package/dist/db/index.d.mts +1 -1
  32. package/dist/db/index.mjs +2 -2
  33. package/dist/{device-authorization-UDaSmEHv.mjs → device-authorization-Dr11VVmd.mjs} +3 -3
  34. package/dist/{email-otp-Iw2Grar7.mjs → email-otp-fvjP9Km7.mjs} +4 -4
  35. package/dist/{generic-oauth-C_9CdfjG.mjs → generic-oauth-qo6urBZS.mjs} +3 -3
  36. package/dist/{get-migration-Dhy7uvKz.mjs → get-migration-C2PG4G2s.mjs} +1 -1
  37. package/dist/{haveibeenpwned-PK1YORE5.mjs → haveibeenpwned-1NCWtMXr.mjs} +1 -1
  38. package/dist/{index-C99AUcIp.d.mts → index-1ni_0_8A.d.mts} +8 -8
  39. package/dist/{index-Ba-wkloE.d.mts → index-74T5_IsI.d.mts} +3 -3
  40. package/dist/{index-TYcQHQiI.d.mts → index-BGHbvBl4.d.mts} +9 -9
  41. package/dist/{index-DMFE48z6.d.mts → index-BGVqvXfP.d.mts} +3 -3
  42. package/dist/{index-76BuE6AW.d.mts → index-BLJzuqKN.d.mts} +3 -3
  43. package/dist/{index-B87hBqA3.d.mts → index-BLP8lbCx.d.mts} +308 -308
  44. package/dist/{index-DIlZ1_TP.d.mts → index-BzgT8cQd.d.mts} +150 -147
  45. package/dist/{index-lkDn6QLK.d.mts → index-C7v0AYqh.d.mts} +13 -13
  46. package/dist/{index-CgMG51Ai.d.mts → index-CVhQCf8K.d.mts} +5 -5
  47. package/dist/{index-DK1Wdij3.d.mts → index-CXkIWFzZ.d.mts} +2 -2
  48. package/dist/{index-DrBv0dmW.d.mts → index-CfImj7fH.d.mts} +10 -10
  49. package/dist/{index-T_UlwoWp.d.mts → index-ClMi8Sht.d.mts} +3 -3
  50. package/dist/{index-C5MPTktk.d.mts → index-DJHJraoc.d.mts} +1 -1
  51. package/dist/{index-B5SdHrOG.d.mts → index-DNvaBD-J.d.mts} +5 -5
  52. package/dist/{index-DfRDIg8M.d.mts → index-DVrXtIqH.d.mts} +6 -6
  53. package/dist/{index-DHeN2Npx.d.mts → index-DflwMIEg.d.mts} +8 -8
  54. package/dist/{index-DJx5kki5.d.mts → index-NYwYi8xD.d.mts} +6 -6
  55. package/dist/{index-B3ta3gmq.d.mts → index-PViBvM0U.d.mts} +2 -2
  56. package/dist/{index-f6tnl0Hu.d.mts → index-cYOD8ePR.d.mts} +9 -9
  57. package/dist/{index-B3Wpc3sL.d.mts → index-eghn_0Yh.d.mts} +6 -6
  58. package/dist/{index-BY4yRG16.d.mts → index-hjj802-A.d.mts} +4 -4
  59. package/dist/{index-3FZ4iw2d.d.mts → index-kmJy6lr-.d.mts} +21 -21
  60. package/dist/index.d.mts +1 -1
  61. package/dist/index.mjs +7 -7
  62. package/dist/integrations/next-js.d.mts +4 -4
  63. package/dist/integrations/next-js.mjs +2 -2
  64. package/dist/integrations/node.d.mts +1 -1
  65. package/dist/integrations/svelte-kit.d.mts +3 -3
  66. package/dist/integrations/svelte-kit.mjs +2 -2
  67. package/dist/integrations/tanstack-start.d.mts +4 -4
  68. package/dist/integrations/tanstack-start.mjs +2 -2
  69. package/dist/{jwt-Bm36D5Qd.mjs → jwt-COIliG0M.mjs} +3 -3
  70. package/dist/{magic-link-DFRO08H_.mjs → magic-link-U7vFkXXA.mjs} +2 -2
  71. package/dist/{multi-session-BIkeFJx_.mjs → multi-session-C9LCNQiw.mjs} +3 -3
  72. package/dist/{oauth-proxy-u2rUqHab.mjs → oauth-proxy-CZ_6azrG.mjs} +2 -2
  73. package/dist/oauth2/index.d.mts +1 -1
  74. package/dist/oauth2/index.mjs +5 -5
  75. package/dist/{oidc-provider-CZqkEqo1.mjs → oidc-provider-DiyW2arC.mjs} +5 -5
  76. package/dist/{one-tap-DgoVIrws.mjs → one-tap-Djbp5wgR.mjs} +2 -2
  77. package/dist/{open-api-WrHxGDgm.mjs → open-api-BDqC0qwL.mjs} +1 -1
  78. package/dist/{organization-CQ9jVt0l.mjs → organization-CL4Xa8Vi.mjs} +5 -5
  79. package/dist/{phone-number-DNyWv5XD.mjs → phone-number-BnV6uyZR.mjs} +3 -3
  80. package/dist/plugins/admin/access/index.d.mts +21 -21
  81. package/dist/plugins/admin/index.d.mts +21 -21
  82. package/dist/plugins/admin/index.mjs +6 -6
  83. package/dist/plugins/anonymous/index.d.mts +2 -2
  84. package/dist/plugins/anonymous/index.mjs +6 -6
  85. package/dist/plugins/bearer/index.d.mts +1 -1
  86. package/dist/plugins/bearer/index.mjs +3 -3
  87. package/dist/plugins/captcha/index.d.mts +1 -1
  88. package/dist/plugins/custom-session/index.d.mts +2 -2
  89. package/dist/plugins/custom-session/index.mjs +6 -6
  90. package/dist/plugins/device-authorization/index.d.mts +1 -1
  91. package/dist/plugins/device-authorization/index.mjs +5 -5
  92. package/dist/plugins/email-otp/index.d.mts +1 -1
  93. package/dist/plugins/email-otp/index.mjs +6 -6
  94. package/dist/plugins/generic-oauth/index.d.mts +2 -2
  95. package/dist/plugins/generic-oauth/index.mjs +6 -6
  96. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  97. package/dist/plugins/haveibeenpwned/index.mjs +6 -6
  98. package/dist/plugins/index.d.mts +21 -21
  99. package/dist/plugins/index.mjs +26 -26
  100. package/dist/plugins/jwt/index.d.mts +2 -2
  101. package/dist/plugins/jwt/index.mjs +6 -6
  102. package/dist/plugins/magic-link/index.d.mts +1 -1
  103. package/dist/plugins/magic-link/index.mjs +6 -6
  104. package/dist/plugins/multi-session/index.d.mts +1 -1
  105. package/dist/plugins/multi-session/index.mjs +6 -6
  106. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  107. package/dist/plugins/oauth-proxy/index.mjs +6 -6
  108. package/dist/plugins/oidc-provider/index.d.mts +21 -21
  109. package/dist/plugins/oidc-provider/index.mjs +7 -7
  110. package/dist/plugins/one-tap/index.d.mts +1 -1
  111. package/dist/plugins/one-tap/index.mjs +6 -6
  112. package/dist/plugins/one-time-token/index.d.mts +2 -2
  113. package/dist/plugins/one-time-token/index.mjs +26 -26
  114. package/dist/plugins/open-api/index.d.mts +1 -1
  115. package/dist/plugins/open-api/index.mjs +6 -6
  116. package/dist/plugins/organization/access/index.d.mts +21 -21
  117. package/dist/plugins/organization/index.d.mts +21 -21
  118. package/dist/plugins/organization/index.mjs +6 -6
  119. package/dist/plugins/phone-number/index.d.mts +2 -2
  120. package/dist/plugins/phone-number/index.mjs +6 -6
  121. package/dist/plugins/siwe/index.d.mts +2 -2
  122. package/dist/plugins/siwe/index.mjs +6 -6
  123. package/dist/plugins/two-factor/index.d.mts +2 -2
  124. package/dist/plugins/two-factor/index.mjs +6 -6
  125. package/dist/plugins/username/index.d.mts +1 -1
  126. package/dist/plugins/username/index.mjs +6 -6
  127. package/dist/{plugins-C-RtY44T.mjs → plugins-CBWTGEDd.mjs} +5 -5
  128. package/dist/{proxy-BMMJa46T.mjs → proxy-DZR0bcsP.mjs} +3 -0
  129. package/dist/{schema-Bf7Oa87Q.mjs → schema-CSB7dlK0.mjs} +4 -0
  130. package/dist/{session-BbD-cxNG.mjs → session-BO-S7wVw.mjs} +2 -2
  131. package/dist/{siwe-De9e8Scb.mjs → siwe-DhIExJIr.mjs} +3 -3
  132. package/dist/test-utils/index.d.mts +1050 -1044
  133. package/dist/test-utils/index.mjs +30 -30
  134. package/dist/{two-factor-C-p5aDpF.mjs → two-factor-awmDvK8-.mjs} +3 -3
  135. package/dist/types/index.d.mts +1 -1
  136. package/dist/{username-BWTKRXQy.mjs → username-Drs37y_f.mjs} +3 -3
  137. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { Bt as Where$1, Pt as AdapterSchemaCreation, zt as TransactionAdapter } from "../index-DIlZ1_TP.mjs";
1
+ import { Bt as Where$1, Pt as AdapterSchemaCreation, zt as TransactionAdapter } from "../index-BzgT8cQd.mjs";
2
2
  import "../types-CRiHq5rJ.mjs";
3
3
  import { u as Prettify } from "../helper-DU33OcfW.mjs";
4
4
  import "../plugins-ClXJF1tD.mjs";
@@ -1,7 +1,7 @@
1
- import { l as parseUserOutput, t as mergeSchema, u as getDate } from "./schema-Bf7Oa87Q.mjs";
2
- import { t as APIError } from "./api-Ch2M0RnX.mjs";
3
- import { c as setSessionCookie, n as deleteSessionCookie } from "./cookies-B7DF9RAb.mjs";
4
- import { r as getSessionFromCtx } from "./session-BbD-cxNG.mjs";
1
+ import { l as parseUserOutput, t as mergeSchema, u as getDate } from "./schema-CSB7dlK0.mjs";
2
+ import { t as APIError } from "./api-CE_W4rUg.mjs";
3
+ import { c as setSessionCookie, n as deleteSessionCookie } from "./cookies-m6bKaTlj.mjs";
4
+ import { r as getSessionFromCtx } from "./session-BO-S7wVw.mjs";
5
5
  import { t as hasPermission } from "./has-permission-DN8I_Icv.mjs";
6
6
  import { t as getEndpointResponse } from "./plugin-helper-CA_Vvnl9.mjs";
7
7
  import { BASE_ERROR_CODES } from "@better-auth/core/error";
@@ -1,8 +1,8 @@
1
1
  import { t as generateId } from "./utils-DBbaShi0.mjs";
2
- import { t as mergeSchema } from "./schema-Bf7Oa87Q.mjs";
3
- import { t as APIError } from "./api-Ch2M0RnX.mjs";
4
- import { c as setSessionCookie, l as parseSetCookieHeader } from "./cookies-B7DF9RAb.mjs";
5
- import { r as getSessionFromCtx } from "./session-BbD-cxNG.mjs";
2
+ import { t as mergeSchema } from "./schema-CSB7dlK0.mjs";
3
+ import { t as APIError } from "./api-CE_W4rUg.mjs";
4
+ import { c as setSessionCookie, l as parseSetCookieHeader } from "./cookies-m6bKaTlj.mjs";
5
+ import { r as getSessionFromCtx } from "./session-BO-S7wVw.mjs";
6
6
  import { defineErrorCodes } from "@better-auth/core/utils";
7
7
  import * as z from "zod";
8
8
  import { createAuthEndpoint, createAuthMiddleware } from "@better-auth/core/api";
@@ -1,4 +1,4 @@
1
- import { $ as createEmailVerificationToken, A as deleteUser, B as getSessionFromCtx, C as createAuthEndpoint, D as router, E as optionsMiddleware, F as signOut, G as revokeSessions, H as requestOnlySessionMiddleware, I as signInEmail, J as requestPasswordReset, K as sensitiveSessionMiddleware, L as signInSocial, M as setPassword, N as updateUser, O as changeEmail, P as signUpEmail, Q as error, R as freshSessionMiddleware, S as checkEndpointConflicts, T as getEndpoints, U as revokeOtherSessions, V as listSessions, W as revokeSession, X as resetPassword, Y as requestPasswordResetCallback, Z as ok, at as getAccessToken, b as AuthEndpoint, ct as refreshToken, dt as originCheckMiddleware, et as sendVerificationEmail, ft as getOAuthState, it as accountInfo, j as deleteUserCallback, k as changePassword, lt as unlinkAccount, nt as verifyEmail, ot as linkSocialAccount, pt as getIp, q as sessionMiddleware, rt as callbackOAuth, st as listUserAccounts, tt as sendVerificationEmailFn, ut as originCheck, w as createAuthMiddleware, x as AuthMiddleware, y as APIError, z as getSession } from "../index-DIlZ1_TP.mjs";
1
+ import { $ as createEmailVerificationToken, A as deleteUser, B as getSessionFromCtx, C as createAuthEndpoint, D as router, E as optionsMiddleware, F as signOut, G as revokeSessions, H as requestOnlySessionMiddleware, I as signInEmail, J as requestPasswordReset, K as sensitiveSessionMiddleware, L as signInSocial, M as setPassword, N as updateUser, O as changeEmail, P as signUpEmail, Q as error, R as freshSessionMiddleware, S as checkEndpointConflicts, T as getEndpoints, U as revokeOtherSessions, V as listSessions, W as revokeSession, X as resetPassword, Y as requestPasswordResetCallback, Z as ok, at as getAccessToken, b as AuthEndpoint, ct as refreshToken, dt as originCheckMiddleware, et as sendVerificationEmail, ft as getOAuthState, it as accountInfo, j as deleteUserCallback, k as changePassword, lt as unlinkAccount, nt as verifyEmail, ot as linkSocialAccount, pt as getIp, q as sessionMiddleware, rt as callbackOAuth, st as listUserAccounts, tt as sendVerificationEmailFn, ut as originCheck, w as createAuthMiddleware, x as AuthMiddleware, y as APIError, z as getSession } from "../index-BzgT8cQd.mjs";
2
2
  import "../types-CRiHq5rJ.mjs";
3
3
  import "../helper-DU33OcfW.mjs";
4
4
  import "../plugins-ClXJF1tD.mjs";
@@ -1,16 +1,16 @@
1
1
  import "../dialect-BvcuosDD.mjs";
2
2
  import "../get-model-name-D4DUV7S2.mjs";
3
- import "../get-migration-Dhy7uvKz.mjs";
3
+ import "../get-migration-C2PG4G2s.mjs";
4
4
  import { a as getOAuthState } from "../utils-DBbaShi0.mjs";
5
5
  import "../crypto-BQxYXGGX.mjs";
6
6
  import "../jwt-DzuIBp7t.mjs";
7
7
  import "../misc-D8A8FGv2.mjs";
8
- import "../schema-Bf7Oa87Q.mjs";
8
+ import "../schema-CSB7dlK0.mjs";
9
9
  import { t as getIp } from "../get-request-ip-RYTz2Uba.mjs";
10
10
  import "../json-_HMgPUVh.mjs";
11
11
  import "../url-C4fqRUH1.mjs";
12
- import { A as getAccessToken, C as createEmailVerificationToken, D as callbackOAuth, E as verifyEmail, L as originCheck, M as listUserAccounts, N as refreshToken, P as unlinkAccount, R as originCheckMiddleware, S as error, T as sendVerificationEmailFn, _ as signInSocial, a as getEndpoints, b as resetPassword, c as changeEmail, d as deleteUserCallback, f as setPassword, g as signInEmail, h as signOut, i as createAuthMiddleware, j as linkSocialAccount, k as accountInfo, l as changePassword, m as signUpEmail, n as checkEndpointConflicts, o as optionsMiddleware, p as updateUser, r as createAuthEndpoint, s as router, t as APIError, u as deleteUser, v as requestPasswordReset, w as sendVerificationEmail, x as ok, y as requestPasswordResetCallback } from "../api-Ch2M0RnX.mjs";
13
- import "../cookies-B7DF9RAb.mjs";
14
- import { a as requestOnlySessionMiddleware, c as revokeSessions, i as listSessions, l as sensitiveSessionMiddleware, n as getSession, o as revokeOtherSessions, r as getSessionFromCtx, s as revokeSession, t as freshSessionMiddleware, u as sessionMiddleware } from "../session-BbD-cxNG.mjs";
12
+ import { A as getAccessToken, C as createEmailVerificationToken, D as callbackOAuth, E as verifyEmail, L as originCheck, M as listUserAccounts, N as refreshToken, P as unlinkAccount, R as originCheckMiddleware, S as error, T as sendVerificationEmailFn, _ as signInSocial, a as getEndpoints, b as resetPassword, c as changeEmail, d as deleteUserCallback, f as setPassword, g as signInEmail, h as signOut, i as createAuthMiddleware, j as linkSocialAccount, k as accountInfo, l as changePassword, m as signUpEmail, n as checkEndpointConflicts, o as optionsMiddleware, p as updateUser, r as createAuthEndpoint, s as router, t as APIError, u as deleteUser, v as requestPasswordReset, w as sendVerificationEmail, x as ok, y as requestPasswordResetCallback } from "../api-CE_W4rUg.mjs";
13
+ import "../cookies-m6bKaTlj.mjs";
14
+ import { a as requestOnlySessionMiddleware, c as revokeSessions, i as listSessions, l as sensitiveSessionMiddleware, n as getSession, o as revokeOtherSessions, r as getSessionFromCtx, s as revokeSession, t as freshSessionMiddleware, u as sessionMiddleware } from "../session-BO-S7wVw.mjs";
15
15
 
16
16
  export { APIError, accountInfo, callbackOAuth, changeEmail, changePassword, checkEndpointConflicts, createAuthEndpoint, createAuthMiddleware, createEmailVerificationToken, deleteUser, deleteUserCallback, error, freshSessionMiddleware, getAccessToken, getEndpoints, getIp, getOAuthState, getSession, getSessionFromCtx, linkSocialAccount, listSessions, listUserAccounts, ok, optionsMiddleware, originCheck, originCheckMiddleware, refreshToken, requestOnlySessionMiddleware, requestPasswordReset, requestPasswordResetCallback, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, sendVerificationEmailFn, sensitiveSessionMiddleware, sessionMiddleware, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail };
@@ -1,12 +1,12 @@
1
1
  import { i as parseState, n as HIDE_METADATA, r as generateState, t as generateId } from "./utils-DBbaShi0.mjs";
2
2
  import { n as symmetricEncrypt, r as generateRandomString, t as symmetricDecrypt } from "./crypto-BQxYXGGX.mjs";
3
3
  import { t as signJWT } from "./jwt-DzuIBp7t.mjs";
4
- import { c as parseUserInput, u as getDate } from "./schema-Bf7Oa87Q.mjs";
4
+ import { c as parseUserInput, u as getDate } from "./schema-CSB7dlK0.mjs";
5
5
  import { t as getIp } from "./get-request-ip-RYTz2Uba.mjs";
6
6
  import { t as safeJSONParse } from "./json-_HMgPUVh.mjs";
7
7
  import { i as getProtocol, n as getHost, r as getOrigin } from "./url-C4fqRUH1.mjs";
8
- import { c as setSessionCookie, n as deleteSessionCookie } from "./cookies-B7DF9RAb.mjs";
9
- import { c as revokeSessions, i as listSessions, l as sensitiveSessionMiddleware, n as getSession, o as revokeOtherSessions, r as getSessionFromCtx, s as revokeSession, t as freshSessionMiddleware, u as sessionMiddleware } from "./session-BbD-cxNG.mjs";
8
+ import { c as setSessionCookie, n as deleteSessionCookie } from "./cookies-m6bKaTlj.mjs";
9
+ import { c as revokeSessions, i as listSessions, l as sensitiveSessionMiddleware, n as getSession, o as revokeOtherSessions, r as getSessionFromCtx, s as revokeSession, t as freshSessionMiddleware, u as sessionMiddleware } from "./session-BO-S7wVw.mjs";
10
10
  import { hasRequestState, runWithEndpointContext, runWithRequestState, runWithTransaction } from "@better-auth/core/context";
11
11
  import { isDevelopment, isProduction, logger, shouldPublishLog } from "@better-auth/core/env";
12
12
  import { BASE_ERROR_CODES } from "@better-auth/core/error";
@@ -1821,12 +1821,13 @@ function redirectCallback(ctx, callbackURL, query) {
1821
1821
  }
1822
1822
  const requestPasswordReset = createAuthEndpoint("/request-password-reset", {
1823
1823
  method: "POST",
1824
+ operationId: "forgetPassword",
1824
1825
  body: z.object({
1825
1826
  email: z.email().meta({ description: "The email address of the user to send a password reset email to" }),
1826
1827
  redirectTo: z.string().meta({ description: "The URL to redirect the user to reset their password. If the token isn't valid or expired, it'll be redirected with a query parameter `?error=INVALID_TOKEN`. If the token is valid, it'll be redirected with a query parameter `?token=VALID_TOKEN" }).optional()
1827
1828
  }),
1828
1829
  metadata: { openapi: {
1829
- operationId: "requestPasswordReset",
1830
+ operationId: "forgetPassword",
1830
1831
  description: "Send a password reset email to the user",
1831
1832
  responses: { "200": {
1832
1833
  description: "Success",
@@ -1,4 +1,4 @@
1
- import { o as Auth } from "../index-DIlZ1_TP.mjs";
1
+ import { o as Auth } from "../index-BzgT8cQd.mjs";
2
2
  import "../types-CRiHq5rJ.mjs";
3
3
  import "../helper-DU33OcfW.mjs";
4
4
  import "../plugins-ClXJF1tD.mjs";
@@ -1,18 +1,18 @@
1
1
  import "../dialect-BvcuosDD.mjs";
2
2
  import "../get-model-name-D4DUV7S2.mjs";
3
- import { d as getBaseAdapter } from "../get-migration-Dhy7uvKz.mjs";
3
+ import { d as getBaseAdapter } from "../get-migration-C2PG4G2s.mjs";
4
4
  import "../utils-DBbaShi0.mjs";
5
5
  import "../crypto-BQxYXGGX.mjs";
6
6
  import "../jwt-DzuIBp7t.mjs";
7
7
  import "../misc-D8A8FGv2.mjs";
8
- import "../schema-Bf7Oa87Q.mjs";
8
+ import "../schema-CSB7dlK0.mjs";
9
9
  import "../get-request-ip-RYTz2Uba.mjs";
10
10
  import "../json-_HMgPUVh.mjs";
11
11
  import "../url-C4fqRUH1.mjs";
12
- import "../api-Ch2M0RnX.mjs";
13
- import "../cookies-B7DF9RAb.mjs";
14
- import "../session-BbD-cxNG.mjs";
15
- import { n as createAuthContext, t as createBetterAuth } from "../base-aAzBva0a.mjs";
12
+ import "../api-CE_W4rUg.mjs";
13
+ import "../cookies-m6bKaTlj.mjs";
14
+ import "../session-BO-S7wVw.mjs";
15
+ import { n as createAuthContext, t as createBetterAuth } from "../base-C0S84LB0.mjs";
16
16
  import "../password-DBH2q5D6.mjs";
17
17
  import { BetterAuthError } from "@better-auth/core/error";
18
18
 
@@ -1,6 +1,6 @@
1
1
  import { n as getKyselyDatabaseType } from "./dialect-BvcuosDD.mjs";
2
- import { t as getMigrations, u as getAdapter } from "./get-migration-Dhy7uvKz.mjs";
3
- import { n as createAuthContext, t as createBetterAuth } from "./base-aAzBva0a.mjs";
2
+ import { t as getMigrations, u as getAdapter } from "./get-migration-C2PG4G2s.mjs";
3
+ import { n as createAuthContext, t as createBetterAuth } from "./base-C0S84LB0.mjs";
4
4
  import { BetterAuthError } from "@better-auth/core/error";
5
5
 
6
6
  //#region src/context/init.ts
@@ -1,10 +1,10 @@
1
1
  import { a as getAuthTables } from "./get-model-name-D4DUV7S2.mjs";
2
- import { a as createInternalAdapter } from "./get-migration-Dhy7uvKz.mjs";
2
+ import { a as createInternalAdapter } from "./get-migration-C2PG4G2s.mjs";
3
3
  import { t as generateId } from "./utils-DBbaShi0.mjs";
4
4
  import { a as verifyPassword, i as hashPassword } from "./crypto-BQxYXGGX.mjs";
5
5
  import { r as getOrigin, t as getBaseURL } from "./url-C4fqRUH1.mjs";
6
- import { a as getEndpoints, n as checkEndpointConflicts, s as router } from "./api-Ch2M0RnX.mjs";
7
- import { i as getCookies, t as createCookieGetter } from "./cookies-B7DF9RAb.mjs";
6
+ import { a as getEndpoints, n as checkEndpointConflicts, s as router } from "./api-CE_W4rUg.mjs";
7
+ import { i as getCookies, t as createCookieGetter } from "./cookies-m6bKaTlj.mjs";
8
8
  import { t as checkPassword } from "./password-DBH2q5D6.mjs";
9
9
  import { runWithAdapter } from "@better-auth/core/context";
10
10
  import { createLogger, env, isProduction, isTest } from "@better-auth/core/env";
@@ -1,4 +1,4 @@
1
- import { l as parseSetCookieHeader } from "./cookies-B7DF9RAb.mjs";
1
+ import { l as parseSetCookieHeader } from "./cookies-m6bKaTlj.mjs";
2
2
  import { serializeSignedCookie } from "better-call";
3
3
  import { createAuthMiddleware } from "@better-auth/core/api";
4
4
  import { createHMAC } from "@better-auth/utils/hmac";
@@ -1,13 +1,13 @@
1
- import { $t as InferUserFromClient, Gt as ClientOptions, Ht as BetterAuthClientOptions, Jt as InferAdditionalFromClient, Kt as ClientStore, Qt as InferSessionFromClient, Ut as BetterAuthClientPlugin, Vt as AtomListener, Wt as ClientAtomListener, Xt as InferErrorCodes, Yt as InferClientAPI, Zt as InferPluginsFromClient, en as IsSignal, nn as Store, qt as InferActions, tn as SessionQueryParams } from "../index-DIlZ1_TP.mjs";
1
+ import { $t as InferUserFromClient, Gt as ClientOptions, Ht as BetterAuthClientOptions, Jt as InferAdditionalFromClient, Kt as ClientStore, Qt as InferSessionFromClient, Ut as BetterAuthClientPlugin, Vt as AtomListener, Wt as ClientAtomListener, Xt as InferErrorCodes, Yt as InferClientAPI, Zt as InferPluginsFromClient, en as IsSignal, nn as Store, qt as InferActions, tn as SessionQueryParams } from "../index-BzgT8cQd.mjs";
2
2
  import "../types-CRiHq5rJ.mjs";
3
3
  import { d as PrettifyDeep, h as UnionToIntersection } from "../helper-DU33OcfW.mjs";
4
4
  import "../plugins-ClXJF1tD.mjs";
5
5
  import { a as Role, c as Subset, i as AccessControl, n as createAccessControl, o as Statements, r as role, s as SubArray, t as AuthorizeResponse } from "../index-B45xbAn7.mjs";
6
6
  import { BetterAuthClientOptions as BetterAuthClientOptions$1, BetterAuthClientPlugin as BetterAuthClientPlugin$1, BetterAuthOptions, BetterAuthPlugin, ClientFetchOption } from "@better-auth/core";
7
7
  import { BASE_ERROR_CODES } from "@better-auth/core/error";
8
- import * as nanostores3 from "nanostores";
8
+ import * as nanostores5 from "nanostores";
9
9
  import { Atom, PreinitializedWritableAtom, WritableAtom } from "nanostores";
10
- import * as _better_fetch_fetch84 from "@better-fetch/fetch";
10
+ import * as _better_fetch_fetch101 from "@better-fetch/fetch";
11
11
  import { BetterFetch, BetterFetchError } from "@better-fetch/fetch";
12
12
  export * from "@better-auth/core/db";
13
13
  export * from "nanostores";
@@ -103,27 +103,27 @@ declare function createAuthClient<Option extends BetterAuthClientOptions$1>(opti
103
103
  error: BetterFetchError | null;
104
104
  isPending: boolean;
105
105
  }>;
106
- $fetch: _better_fetch_fetch84.BetterFetch<{
107
- plugins: (_better_fetch_fetch84.BetterFetchPlugin | {
106
+ $fetch: _better_fetch_fetch101.BetterFetch<{
107
+ plugins: (_better_fetch_fetch101.BetterFetchPlugin | {
108
108
  id: string;
109
109
  name: string;
110
110
  hooks: {
111
- onSuccess(context: _better_fetch_fetch84.SuccessContext<any>): void;
111
+ onSuccess(context: _better_fetch_fetch101.SuccessContext<any>): void;
112
112
  };
113
113
  } | {
114
114
  id: string;
115
115
  name: string;
116
116
  hooks: {
117
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch84.RequestContext<T>): void;
117
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch101.RequestContext<T>): void;
118
118
  };
119
119
  } | {
120
120
  id: string;
121
121
  name: string;
122
122
  hooks: {
123
- onSuccess: ((context: _better_fetch_fetch84.SuccessContext<any>) => Promise<void> | void) | undefined;
124
- onError: ((context: _better_fetch_fetch84.ErrorContext) => Promise<void> | void) | undefined;
125
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch84.RequestContext<T>) => Promise<_better_fetch_fetch84.RequestContext | void> | _better_fetch_fetch84.RequestContext | void) | undefined;
126
- onResponse: ((context: _better_fetch_fetch84.ResponseContext) => Promise<Response | void | _better_fetch_fetch84.ResponseContext> | Response | _better_fetch_fetch84.ResponseContext | void) | undefined;
123
+ onSuccess: ((context: _better_fetch_fetch101.SuccessContext<any>) => Promise<void> | void) | undefined;
124
+ onError: ((context: _better_fetch_fetch101.ErrorContext) => Promise<void> | void) | undefined;
125
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch101.RequestContext<T>) => Promise<_better_fetch_fetch101.RequestContext | void> | _better_fetch_fetch101.RequestContext | void) | undefined;
126
+ onResponse: ((context: _better_fetch_fetch101.ResponseContext) => Promise<Response | void | _better_fetch_fetch101.ResponseContext> | Response | _better_fetch_fetch101.ResponseContext | void) | undefined;
127
127
  };
128
128
  })[];
129
129
  cache?: RequestCache | undefined;
@@ -143,12 +143,12 @@ declare function createAuthClient<Option extends BetterAuthClientOptions$1>(opti
143
143
  referrerPolicy?: ReferrerPolicy | undefined;
144
144
  signal?: (AbortSignal | null) | undefined;
145
145
  window?: null | undefined;
146
- onRetry?: ((response: _better_fetch_fetch84.ResponseContext) => Promise<void> | void) | undefined;
146
+ onRetry?: ((response: _better_fetch_fetch101.ResponseContext) => Promise<void> | void) | undefined;
147
147
  hookOptions?: {
148
148
  cloneResponse?: boolean;
149
149
  } | undefined;
150
150
  timeout?: number | undefined;
151
- customFetchImpl: _better_fetch_fetch84.FetchEsque;
151
+ customFetchImpl: _better_fetch_fetch101.FetchEsque;
152
152
  baseURL: string;
153
153
  throw?: boolean | undefined;
154
154
  auth?: ({
@@ -168,17 +168,17 @@ declare function createAuthClient<Option extends BetterAuthClientOptions$1>(opti
168
168
  params?: any;
169
169
  duplex?: "full" | "half" | undefined;
170
170
  jsonParser: (text: string) => Promise<any> | any;
171
- retry?: _better_fetch_fetch84.RetryOptions | undefined;
171
+ retry?: _better_fetch_fetch101.RetryOptions | undefined;
172
172
  retryAttempt?: number | undefined;
173
- output?: (_better_fetch_fetch84.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
174
- errorSchema?: _better_fetch_fetch84.StandardSchemaV1 | undefined;
173
+ output?: (_better_fetch_fetch101.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
174
+ errorSchema?: _better_fetch_fetch101.StandardSchemaV1 | undefined;
175
175
  disableValidation?: boolean | undefined;
176
176
  disableSignal?: boolean | undefined;
177
177
  }, unknown, unknown, {}>;
178
178
  $store: {
179
179
  notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
180
180
  listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
181
- atoms: Record<string, nanostores3.WritableAtom<any>>;
181
+ atoms: Record<string, nanostores5.WritableAtom<any>>;
182
182
  };
183
183
  $Infer: {
184
184
  Session: NonNullable<InferClientAPI<Option> extends {
@@ -1,7 +1,7 @@
1
1
  import "../misc-D8A8FGv2.mjs";
2
2
  import "../url-C4fqRUH1.mjs";
3
- import { a as kOnlineManager, c as kBroadcastChannel, i as useAuthQuery, o as kFocusManager, r as createSessionRefreshManager, s as getGlobalBroadcastChannel } from "../proxy-BMMJa46T.mjs";
3
+ import { a as kOnlineManager, c as kBroadcastChannel, i as useAuthQuery, o as kFocusManager, r as createSessionRefreshManager, s as getGlobalBroadcastChannel } from "../proxy-DZR0bcsP.mjs";
4
4
  import "../parser-kwbb5q_C.mjs";
5
- import { n as InferPlugin, r as createAuthClient, t as InferAuth } from "../client-BikTMh-g.mjs";
5
+ import { n as InferPlugin, r as createAuthClient, t as InferAuth } from "../client-D6y29bCu.mjs";
6
6
 
7
7
  export { InferAuth, InferPlugin, createAuthClient, createSessionRefreshManager, getGlobalBroadcastChannel, kBroadcastChannel, kFocusManager, kOnlineManager, useAuthQuery };
@@ -1,4 +1,4 @@
1
- import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions, tn as SessionQueryParams } from "../../index-DIlZ1_TP.mjs";
1
+ import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions, tn as SessionQueryParams } from "../../index-BzgT8cQd.mjs";
2
2
  import "../../types-CRiHq5rJ.mjs";
3
3
  import { d as PrettifyDeep, h as UnionToIntersection } from "../../helper-DU33OcfW.mjs";
4
4
  import "../../plugins-ClXJF1tD.mjs";
@@ -1,5 +1,5 @@
1
1
  import "../../url-C4fqRUH1.mjs";
2
- import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-BMMJa46T.mjs";
2
+ import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-DZR0bcsP.mjs";
3
3
  import "../../parser-kwbb5q_C.mjs";
4
4
  import { listenKeys } from "nanostores";
5
5
  import { useCallback, useRef, useSyncExternalStore } from "@lynx-js/react";
@@ -1,29 +1,29 @@
1
- import { i as BetterAuthPlugin$1, r as BetterAuthOptions$1, tn as SessionQueryParams, wn as InferAdditionalFieldsFromPluginOptions } from "../../index-DIlZ1_TP.mjs";
1
+ import { i as BetterAuthPlugin$1, r as BetterAuthOptions$1, tn as SessionQueryParams, wn as InferAdditionalFieldsFromPluginOptions } from "../../index-BzgT8cQd.mjs";
2
2
  import "../../types-CRiHq5rJ.mjs";
3
3
  import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, f as Primitive, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../../helper-DU33OcfW.mjs";
4
4
  import "../../plugins-ClXJF1tD.mjs";
5
5
  import { a as Role, i as AccessControl, o as Statements } from "../../index-B45xbAn7.mjs";
6
- import { B as OrganizationOptions, C as Organization, D as Team, T as OrganizationRole, _ as InferTeam, c as OrganizationPlugin, f as InferInvitation, ht as admin, k as TeamMember, m as InferOrganization, p as InferMember, pt as apiKey, tt as oidcProvider, v as Invitation, x as Member } from "../../index-B87hBqA3.mjs";
7
- import { t as anonymous } from "../../index-DJx5kki5.mjs";
8
- import "../../index-Ba-wkloE.mjs";
9
- import "../../index-B3ta3gmq.mjs";
10
- import "../../index-DfRDIg8M.mjs";
11
- import { n as deviceAuthorization } from "../../index-B3Wpc3sL.mjs";
12
- import { n as emailOTP } from "../../index-lkDn6QLK.mjs";
13
- import { r as genericOAuth } from "../../index-DHeN2Npx.mjs";
14
- import "../../index-T_UlwoWp.mjs";
15
- import { t as jwt } from "../../index-C99AUcIp.mjs";
16
- import { n as magicLink } from "../../index-BY4yRG16.mjs";
17
- import { t as multiSession } from "../../index-f6tnl0Hu.mjs";
18
- import "../../index-B5SdHrOG.mjs";
19
- import "../../index-DK1Wdij3.mjs";
20
- import { t as oneTimeToken } from "../../index-CgMG51Ai.mjs";
21
- import "../../index-DMFE48z6.mjs";
22
- import { t as phoneNumber } from "../../index-DrBv0dmW.mjs";
23
- import { n as siwe } from "../../index-76BuE6AW.mjs";
24
- import { n as twoFactorClient } from "../../index-3FZ4iw2d.mjs";
25
- import { n as username } from "../../index-TYcQHQiI.mjs";
26
- import * as _better_auth_core28 from "@better-auth/core";
6
+ import { B as OrganizationOptions, C as Organization, D as Team, T as OrganizationRole, _ as InferTeam, c as OrganizationPlugin, f as InferInvitation, ht as admin, k as TeamMember, m as InferOrganization, p as InferMember, pt as apiKey, tt as oidcProvider, v as Invitation, x as Member } from "../../index-BLP8lbCx.mjs";
7
+ import { t as anonymous } from "../../index-NYwYi8xD.mjs";
8
+ import "../../index-74T5_IsI.mjs";
9
+ import "../../index-PViBvM0U.mjs";
10
+ import "../../index-DVrXtIqH.mjs";
11
+ import { n as deviceAuthorization } from "../../index-eghn_0Yh.mjs";
12
+ import { n as emailOTP } from "../../index-C7v0AYqh.mjs";
13
+ import { r as genericOAuth } from "../../index-DflwMIEg.mjs";
14
+ import "../../index-ClMi8Sht.mjs";
15
+ import { t as jwt } from "../../index-1ni_0_8A.mjs";
16
+ import { n as magicLink } from "../../index-hjj802-A.mjs";
17
+ import { t as multiSession } from "../../index-cYOD8ePR.mjs";
18
+ import "../../index-DNvaBD-J.mjs";
19
+ import "../../index-CXkIWFzZ.mjs";
20
+ import { t as oneTimeToken } from "../../index-CVhQCf8K.mjs";
21
+ import "../../index-BGVqvXfP.mjs";
22
+ import { t as phoneNumber } from "../../index-CfImj7fH.mjs";
23
+ import { n as siwe } from "../../index-BLJzuqKN.mjs";
24
+ import { n as twoFactorClient } from "../../index-kmJy6lr-.mjs";
25
+ import { n as username } from "../../index-BGHbvBl4.mjs";
26
+ import * as _better_auth_core23 from "@better-auth/core";
27
27
  import { BetterAuthOptions, ClientFetchOption } from "@better-auth/core";
28
28
  import { DBFieldAttribute } from "@better-auth/core/db";
29
29
  import * as nanostores6 from "nanostores";
@@ -387,7 +387,7 @@ interface GoogleOneTapActionOptions extends Omit<GoogleOneTapOptions, "clientId"
387
387
  }
388
388
  declare const oneTapClient: (options: GoogleOneTapOptions) => {
389
389
  id: "one-tap";
390
- getActions: ($fetch: _better_fetch_fetch118.BetterFetch, _: _better_auth_core28.ClientStore) => {
390
+ getActions: ($fetch: _better_fetch_fetch118.BetterFetch, _: _better_auth_core23.ClientStore) => {
391
391
  oneTap: (opts?: GoogleOneTapActionOptions | undefined, fetchOptions?: ClientFetchOption | undefined) => Promise<void>;
392
392
  };
393
393
  getAtoms($fetch: _better_fetch_fetch118.BetterFetch): {};
@@ -489,7 +489,7 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
489
489
  } ? true : false;
490
490
  };
491
491
  }>;
492
- getActions: ($fetch: _better_fetch_fetch118.BetterFetch, _$store: _better_auth_core28.ClientStore, co: _better_auth_core28.BetterAuthClientOptions | undefined) => {
492
+ getActions: ($fetch: _better_fetch_fetch118.BetterFetch, _$store: _better_auth_core23.ClientStore, co: _better_auth_core23.BetterAuthClientOptions | undefined) => {
493
493
  $Infer: {
494
494
  ActiveOrganization: CO["teams"] extends {
495
495
  enabled: true;
@@ -1,8 +1,8 @@
1
1
  import "../../misc-D8A8FGv2.mjs";
2
2
  import "../../url-C4fqRUH1.mjs";
3
- import { i as useAuthQuery } from "../../proxy-BMMJa46T.mjs";
3
+ import { i as useAuthQuery } from "../../proxy-DZR0bcsP.mjs";
4
4
  import "../../parser-kwbb5q_C.mjs";
5
- import "../../client-BikTMh-g.mjs";
5
+ import "../../client-D6y29bCu.mjs";
6
6
  import "../../access-DXuPG0DH.mjs";
7
7
  import { a as userAc, t as adminAc$1 } from "../../access-Bue6UE97.mjs";
8
8
  import { t as hasPermission } from "../../has-permission-DN8I_Icv.mjs";
@@ -1,4 +1,4 @@
1
- import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions, tn as SessionQueryParams } from "../../index-DIlZ1_TP.mjs";
1
+ import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions, tn as SessionQueryParams } from "../../index-BzgT8cQd.mjs";
2
2
  import "../../types-CRiHq5rJ.mjs";
3
3
  import { d as PrettifyDeep, h as UnionToIntersection } from "../../helper-DU33OcfW.mjs";
4
4
  import "../../plugins-ClXJF1tD.mjs";
@@ -6,7 +6,7 @@ import { BetterAuthClientOptions, BetterAuthClientPlugin } from "@better-auth/co
6
6
  import { BASE_ERROR_CODES } from "@better-auth/core/error";
7
7
  import * as nanostores0 from "nanostores";
8
8
  import { Store, StoreValue } from "nanostores";
9
- import * as _better_fetch_fetch0 from "@better-fetch/fetch";
9
+ import * as _better_fetch_fetch16 from "@better-fetch/fetch";
10
10
  import { BetterFetchError } from "@better-fetch/fetch";
11
11
  import { DependencyList } from "react";
12
12
  export * from "nanostores";
@@ -96,27 +96,27 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
96
96
  error: null;
97
97
  } ? S : Res : never>;
98
98
  };
99
- $fetch: _better_fetch_fetch0.BetterFetch<{
100
- plugins: (_better_fetch_fetch0.BetterFetchPlugin | {
99
+ $fetch: _better_fetch_fetch16.BetterFetch<{
100
+ plugins: (_better_fetch_fetch16.BetterFetchPlugin | {
101
101
  id: string;
102
102
  name: string;
103
103
  hooks: {
104
- onSuccess(context: _better_fetch_fetch0.SuccessContext<any>): void;
104
+ onSuccess(context: _better_fetch_fetch16.SuccessContext<any>): void;
105
105
  };
106
106
  } | {
107
107
  id: string;
108
108
  name: string;
109
109
  hooks: {
110
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>): void;
110
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch16.RequestContext<T>): void;
111
111
  };
112
112
  } | {
113
113
  id: string;
114
114
  name: string;
115
115
  hooks: {
116
- onSuccess: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
117
- onError: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
118
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
119
- onResponse: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
116
+ onSuccess: ((context: _better_fetch_fetch16.SuccessContext<any>) => Promise<void> | void) | undefined;
117
+ onError: ((context: _better_fetch_fetch16.ErrorContext) => Promise<void> | void) | undefined;
118
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch16.RequestContext<T>) => Promise<_better_fetch_fetch16.RequestContext | void> | _better_fetch_fetch16.RequestContext | void) | undefined;
119
+ onResponse: ((context: _better_fetch_fetch16.ResponseContext) => Promise<Response | void | _better_fetch_fetch16.ResponseContext> | Response | _better_fetch_fetch16.ResponseContext | void) | undefined;
120
120
  };
121
121
  })[];
122
122
  cache?: RequestCache | undefined;
@@ -136,12 +136,12 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
136
136
  referrerPolicy?: ReferrerPolicy | undefined;
137
137
  signal?: (AbortSignal | null) | undefined;
138
138
  window?: null | undefined;
139
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
139
+ onRetry?: ((response: _better_fetch_fetch16.ResponseContext) => Promise<void> | void) | undefined;
140
140
  hookOptions?: {
141
141
  cloneResponse?: boolean;
142
142
  } | undefined;
143
143
  timeout?: number | undefined;
144
- customFetchImpl: _better_fetch_fetch0.FetchEsque;
144
+ customFetchImpl: _better_fetch_fetch16.FetchEsque;
145
145
  baseURL: string;
146
146
  throw?: boolean | undefined;
147
147
  auth?: ({
@@ -161,10 +161,10 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
161
161
  params?: any;
162
162
  duplex?: "full" | "half" | undefined;
163
163
  jsonParser: (text: string) => Promise<any> | any;
164
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
164
+ retry?: _better_fetch_fetch16.RetryOptions | undefined;
165
165
  retryAttempt?: number | undefined;
166
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
167
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
166
+ output?: (_better_fetch_fetch16.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
167
+ errorSchema?: _better_fetch_fetch16.StandardSchemaV1 | undefined;
168
168
  disableValidation?: boolean | undefined;
169
169
  disableSignal?: boolean | undefined;
170
170
  }, unknown, unknown, {}>;
@@ -1,5 +1,5 @@
1
1
  import "../../url-C4fqRUH1.mjs";
2
- import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-BMMJa46T.mjs";
2
+ import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-DZR0bcsP.mjs";
3
3
  import "../../parser-kwbb5q_C.mjs";
4
4
  import { listenKeys } from "nanostores";
5
5
  import { useCallback, useRef, useSyncExternalStore } from "react";
@@ -1,4 +1,4 @@
1
- import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions } from "../../index-DIlZ1_TP.mjs";
1
+ import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions } from "../../index-BzgT8cQd.mjs";
2
2
  import "../../types-CRiHq5rJ.mjs";
3
3
  import { d as PrettifyDeep, h as UnionToIntersection } from "../../helper-DU33OcfW.mjs";
4
4
  import "../../plugins-ClXJF1tD.mjs";
@@ -1,6 +1,6 @@
1
1
  import { t as capitalizeFirstLetter } from "../../misc-D8A8FGv2.mjs";
2
2
  import "../../url-C4fqRUH1.mjs";
3
- import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-BMMJa46T.mjs";
3
+ import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-DZR0bcsP.mjs";
4
4
  import "../../parser-kwbb5q_C.mjs";
5
5
  import { onCleanup } from "solid-js";
6
6
  import { createStore, reconcile } from "solid-js/store";
@@ -1,12 +1,12 @@
1
- import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions } from "../../index-DIlZ1_TP.mjs";
1
+ import { Xt as InferErrorCodes, Yt as InferClientAPI, en as IsSignal, qt as InferActions } from "../../index-BzgT8cQd.mjs";
2
2
  import "../../types-CRiHq5rJ.mjs";
3
3
  import { d as PrettifyDeep, h as UnionToIntersection } from "../../helper-DU33OcfW.mjs";
4
4
  import "../../plugins-ClXJF1tD.mjs";
5
5
  import { BetterAuthClientOptions, BetterAuthClientPlugin } from "@better-auth/core";
6
6
  import { BASE_ERROR_CODES } from "@better-auth/core/error";
7
- import * as nanostores1 from "nanostores";
7
+ import * as nanostores0 from "nanostores";
8
8
  import { Atom } from "nanostores";
9
- import * as _better_fetch_fetch33 from "@better-fetch/fetch";
9
+ import * as _better_fetch_fetch0 from "@better-fetch/fetch";
10
10
  import { BetterFetchError } from "@better-fetch/fetch";
11
11
  export * from "nanostores";
12
12
  export * from "@better-fetch/fetch";
@@ -34,27 +34,27 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
34
34
  isPending: boolean;
35
35
  isRefetching: boolean;
36
36
  }>;
37
- $fetch: _better_fetch_fetch33.BetterFetch<{
38
- plugins: (_better_fetch_fetch33.BetterFetchPlugin | {
37
+ $fetch: _better_fetch_fetch0.BetterFetch<{
38
+ plugins: (_better_fetch_fetch0.BetterFetchPlugin | {
39
39
  id: string;
40
40
  name: string;
41
41
  hooks: {
42
- onSuccess(context: _better_fetch_fetch33.SuccessContext<any>): void;
42
+ onSuccess(context: _better_fetch_fetch0.SuccessContext<any>): void;
43
43
  };
44
44
  } | {
45
45
  id: string;
46
46
  name: string;
47
47
  hooks: {
48
- onRequest<T extends Record<string, any>>(context: _better_fetch_fetch33.RequestContext<T>): void;
48
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>): void;
49
49
  };
50
50
  } | {
51
51
  id: string;
52
52
  name: string;
53
53
  hooks: {
54
- onSuccess: ((context: _better_fetch_fetch33.SuccessContext<any>) => Promise<void> | void) | undefined;
55
- onError: ((context: _better_fetch_fetch33.ErrorContext) => Promise<void> | void) | undefined;
56
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch33.RequestContext<T>) => Promise<_better_fetch_fetch33.RequestContext | void> | _better_fetch_fetch33.RequestContext | void) | undefined;
57
- onResponse: ((context: _better_fetch_fetch33.ResponseContext) => Promise<Response | void | _better_fetch_fetch33.ResponseContext> | Response | _better_fetch_fetch33.ResponseContext | void) | undefined;
54
+ onSuccess: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
55
+ onError: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
56
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
57
+ onResponse: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
58
58
  };
59
59
  })[];
60
60
  cache?: RequestCache | undefined;
@@ -74,12 +74,12 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
74
74
  referrerPolicy?: ReferrerPolicy | undefined;
75
75
  signal?: (AbortSignal | null) | undefined;
76
76
  window?: null | undefined;
77
- onRetry?: ((response: _better_fetch_fetch33.ResponseContext) => Promise<void> | void) | undefined;
77
+ onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
78
78
  hookOptions?: {
79
79
  cloneResponse?: boolean;
80
80
  } | undefined;
81
81
  timeout?: number | undefined;
82
- customFetchImpl: _better_fetch_fetch33.FetchEsque;
82
+ customFetchImpl: _better_fetch_fetch0.FetchEsque;
83
83
  baseURL: string;
84
84
  throw?: boolean | undefined;
85
85
  auth?: ({
@@ -99,17 +99,17 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
99
99
  params?: any;
100
100
  duplex?: "full" | "half" | undefined;
101
101
  jsonParser: (text: string) => Promise<any> | any;
102
- retry?: _better_fetch_fetch33.RetryOptions | undefined;
102
+ retry?: _better_fetch_fetch0.RetryOptions | undefined;
103
103
  retryAttempt?: number | undefined;
104
- output?: (_better_fetch_fetch33.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
105
- errorSchema?: _better_fetch_fetch33.StandardSchemaV1 | undefined;
104
+ output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
105
+ errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
106
106
  disableValidation?: boolean | undefined;
107
107
  disableSignal?: boolean | undefined;
108
108
  }, unknown, unknown, {}>;
109
109
  $store: {
110
110
  notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
111
111
  listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
112
- atoms: Record<string, nanostores1.WritableAtom<any>>;
112
+ atoms: Record<string, nanostores0.WritableAtom<any>>;
113
113
  };
114
114
  $Infer: {
115
115
  Session: NonNullable<InferClientAPI<Option> extends {
@@ -1,6 +1,6 @@
1
1
  import { t as capitalizeFirstLetter } from "../../misc-D8A8FGv2.mjs";
2
2
  import "../../url-C4fqRUH1.mjs";
3
- import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-BMMJa46T.mjs";
3
+ import { n as getClientConfig, t as createDynamicPathProxy } from "../../proxy-DZR0bcsP.mjs";
4
4
  import "../../parser-kwbb5q_C.mjs";
5
5
 
6
6
  //#region src/client/svelte/index.ts