better-auth 1.3.8-beta.4 → 1.3.8-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/dist/adapters/drizzle-adapter/index.cjs +1 -1
  2. package/dist/adapters/drizzle-adapter/index.d.cts +1 -1
  3. package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
  4. package/dist/adapters/drizzle-adapter/index.d.ts +1 -1
  5. package/dist/adapters/drizzle-adapter/index.mjs +1 -1
  6. package/dist/adapters/index.cjs +1 -1
  7. package/dist/adapters/index.d.cts +2 -2
  8. package/dist/adapters/index.d.mts +2 -2
  9. package/dist/adapters/index.d.ts +2 -2
  10. package/dist/adapters/index.mjs +1 -1
  11. package/dist/adapters/kysely-adapter/index.cjs +2 -2
  12. package/dist/adapters/kysely-adapter/index.d.cts +1 -1
  13. package/dist/adapters/kysely-adapter/index.d.mts +1 -1
  14. package/dist/adapters/kysely-adapter/index.d.ts +1 -1
  15. package/dist/adapters/kysely-adapter/index.mjs +2 -2
  16. package/dist/adapters/memory-adapter/index.cjs +2 -2
  17. package/dist/adapters/memory-adapter/index.d.cts +1 -1
  18. package/dist/adapters/memory-adapter/index.d.mts +1 -1
  19. package/dist/adapters/memory-adapter/index.d.ts +1 -1
  20. package/dist/adapters/memory-adapter/index.mjs +2 -2
  21. package/dist/adapters/mongodb-adapter/index.cjs +2 -2
  22. package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
  23. package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
  24. package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
  25. package/dist/adapters/mongodb-adapter/index.mjs +2 -2
  26. package/dist/adapters/prisma-adapter/index.cjs +1 -1
  27. package/dist/adapters/prisma-adapter/index.d.cts +1 -1
  28. package/dist/adapters/prisma-adapter/index.d.mts +1 -1
  29. package/dist/adapters/prisma-adapter/index.d.ts +1 -1
  30. package/dist/adapters/prisma-adapter/index.mjs +1 -1
  31. package/dist/adapters/test.d.cts +1 -1
  32. package/dist/adapters/test.d.mts +1 -1
  33. package/dist/adapters/test.d.ts +1 -1
  34. package/dist/api/index.cjs +3 -3
  35. package/dist/api/index.d.cts +1 -1
  36. package/dist/api/index.d.mts +1 -1
  37. package/dist/api/index.d.ts +1 -1
  38. package/dist/api/index.mjs +5 -5
  39. package/dist/client/index.d.cts +3 -3
  40. package/dist/client/index.d.mts +3 -3
  41. package/dist/client/index.d.ts +3 -3
  42. package/dist/client/plugins/index.d.cts +3 -3
  43. package/dist/client/plugins/index.d.mts +3 -3
  44. package/dist/client/plugins/index.d.ts +3 -3
  45. package/dist/client/react/index.d.cts +3 -3
  46. package/dist/client/react/index.d.mts +3 -3
  47. package/dist/client/react/index.d.ts +3 -3
  48. package/dist/client/solid/index.d.cts +3 -3
  49. package/dist/client/solid/index.d.mts +3 -3
  50. package/dist/client/solid/index.d.ts +3 -3
  51. package/dist/client/svelte/index.d.cts +9 -9
  52. package/dist/client/svelte/index.d.mts +9 -9
  53. package/dist/client/svelte/index.d.ts +9 -9
  54. package/dist/client/vue/index.d.cts +12 -12
  55. package/dist/client/vue/index.d.mts +12 -12
  56. package/dist/client/vue/index.d.ts +12 -12
  57. package/dist/cookies/index.d.cts +1 -1
  58. package/dist/cookies/index.d.mts +1 -1
  59. package/dist/cookies/index.d.ts +1 -1
  60. package/dist/crypto/index.cjs +4 -0
  61. package/dist/crypto/index.mjs +4 -0
  62. package/dist/db/index.cjs +4 -4
  63. package/dist/db/index.d.cts +2 -2
  64. package/dist/db/index.d.mts +2 -2
  65. package/dist/db/index.d.ts +2 -2
  66. package/dist/db/index.mjs +4 -4
  67. package/dist/index.cjs +7 -7
  68. package/dist/index.d.cts +4 -4
  69. package/dist/index.d.mts +4 -4
  70. package/dist/index.d.ts +4 -4
  71. package/dist/index.mjs +7 -7
  72. package/dist/integrations/next-js.cjs +3 -3
  73. package/dist/integrations/next-js.d.cts +1 -1
  74. package/dist/integrations/next-js.d.mts +1 -1
  75. package/dist/integrations/next-js.d.ts +1 -1
  76. package/dist/integrations/next-js.mjs +3 -3
  77. package/dist/integrations/node.d.cts +1 -1
  78. package/dist/integrations/node.d.mts +1 -1
  79. package/dist/integrations/node.d.ts +1 -1
  80. package/dist/integrations/react-start.cjs +3 -3
  81. package/dist/integrations/react-start.d.cts +1 -1
  82. package/dist/integrations/react-start.d.mts +1 -1
  83. package/dist/integrations/react-start.d.ts +1 -1
  84. package/dist/integrations/react-start.mjs +3 -3
  85. package/dist/integrations/svelte-kit.cjs +3 -3
  86. package/dist/integrations/svelte-kit.d.cts +1 -1
  87. package/dist/integrations/svelte-kit.d.mts +1 -1
  88. package/dist/integrations/svelte-kit.d.ts +1 -1
  89. package/dist/integrations/svelte-kit.mjs +3 -3
  90. package/dist/oauth2/index.cjs +2 -2
  91. package/dist/oauth2/index.d.cts +2 -2
  92. package/dist/oauth2/index.d.mts +2 -2
  93. package/dist/oauth2/index.d.ts +2 -2
  94. package/dist/oauth2/index.mjs +2 -2
  95. package/dist/plugins/admin/index.cjs +3 -3
  96. package/dist/plugins/admin/index.d.cts +3 -3
  97. package/dist/plugins/admin/index.d.mts +3 -3
  98. package/dist/plugins/admin/index.d.ts +3 -3
  99. package/dist/plugins/admin/index.mjs +3 -3
  100. package/dist/plugins/anonymous/index.cjs +3 -3
  101. package/dist/plugins/anonymous/index.d.cts +1 -1
  102. package/dist/plugins/anonymous/index.d.mts +1 -1
  103. package/dist/plugins/anonymous/index.d.ts +1 -1
  104. package/dist/plugins/anonymous/index.mjs +3 -3
  105. package/dist/plugins/bearer/index.cjs +2 -2
  106. package/dist/plugins/bearer/index.d.cts +1 -1
  107. package/dist/plugins/bearer/index.d.mts +1 -1
  108. package/dist/plugins/bearer/index.d.ts +1 -1
  109. package/dist/plugins/bearer/index.mjs +2 -2
  110. package/dist/plugins/captcha/index.d.cts +1 -1
  111. package/dist/plugins/captcha/index.d.mts +1 -1
  112. package/dist/plugins/captcha/index.d.ts +1 -1
  113. package/dist/plugins/custom-session/index.cjs +3 -3
  114. package/dist/plugins/custom-session/index.d.cts +1 -1
  115. package/dist/plugins/custom-session/index.d.mts +1 -1
  116. package/dist/plugins/custom-session/index.d.ts +1 -1
  117. package/dist/plugins/custom-session/index.mjs +3 -3
  118. package/dist/plugins/device-authorization/index.cjs +1 -1
  119. package/dist/plugins/device-authorization/index.d.cts +1 -1
  120. package/dist/plugins/device-authorization/index.d.mts +1 -1
  121. package/dist/plugins/device-authorization/index.d.ts +1 -1
  122. package/dist/plugins/device-authorization/index.mjs +1 -1
  123. package/dist/plugins/email-otp/index.cjs +2 -2
  124. package/dist/plugins/email-otp/index.d.cts +1 -1
  125. package/dist/plugins/email-otp/index.d.mts +1 -1
  126. package/dist/plugins/email-otp/index.d.ts +1 -1
  127. package/dist/plugins/email-otp/index.mjs +2 -2
  128. package/dist/plugins/generic-oauth/index.cjs +3 -3
  129. package/dist/plugins/generic-oauth/index.d.cts +1 -1
  130. package/dist/plugins/generic-oauth/index.d.mts +1 -1
  131. package/dist/plugins/generic-oauth/index.d.ts +1 -1
  132. package/dist/plugins/generic-oauth/index.mjs +3 -3
  133. package/dist/plugins/haveibeenpwned/index.cjs +3 -3
  134. package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
  135. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  136. package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
  137. package/dist/plugins/haveibeenpwned/index.mjs +3 -3
  138. package/dist/plugins/index.cjs +7 -7
  139. package/dist/plugins/index.d.cts +3 -3
  140. package/dist/plugins/index.d.mts +3 -3
  141. package/dist/plugins/index.d.ts +3 -3
  142. package/dist/plugins/index.mjs +9 -9
  143. package/dist/plugins/jwt/index.cjs +2 -2
  144. package/dist/plugins/jwt/index.d.cts +1 -1
  145. package/dist/plugins/jwt/index.d.mts +1 -1
  146. package/dist/plugins/jwt/index.d.ts +1 -1
  147. package/dist/plugins/jwt/index.mjs +2 -2
  148. package/dist/plugins/magic-link/index.cjs +2 -2
  149. package/dist/plugins/magic-link/index.mjs +2 -2
  150. package/dist/plugins/multi-session/index.cjs +3 -3
  151. package/dist/plugins/multi-session/index.d.cts +1 -1
  152. package/dist/plugins/multi-session/index.d.mts +1 -1
  153. package/dist/plugins/multi-session/index.d.ts +1 -1
  154. package/dist/plugins/multi-session/index.mjs +3 -3
  155. package/dist/plugins/oauth-proxy/index.cjs +2 -2
  156. package/dist/plugins/oauth-proxy/index.d.cts +1 -1
  157. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  158. package/dist/plugins/oauth-proxy/index.d.ts +1 -1
  159. package/dist/plugins/oauth-proxy/index.mjs +2 -2
  160. package/dist/plugins/oidc-provider/index.cjs +3 -3
  161. package/dist/plugins/oidc-provider/index.d.cts +1 -1
  162. package/dist/plugins/oidc-provider/index.d.mts +1 -1
  163. package/dist/plugins/oidc-provider/index.d.ts +1 -1
  164. package/dist/plugins/oidc-provider/index.mjs +3 -3
  165. package/dist/plugins/one-tap/index.cjs +3 -3
  166. package/dist/plugins/one-tap/index.mjs +3 -3
  167. package/dist/plugins/one-time-token/index.cjs +4 -4
  168. package/dist/plugins/one-time-token/index.d.cts +1 -1
  169. package/dist/plugins/one-time-token/index.d.mts +1 -1
  170. package/dist/plugins/one-time-token/index.d.ts +1 -1
  171. package/dist/plugins/one-time-token/index.mjs +4 -4
  172. package/dist/plugins/open-api/index.cjs +2 -2
  173. package/dist/plugins/open-api/index.d.cts +1 -1
  174. package/dist/plugins/open-api/index.d.mts +1 -1
  175. package/dist/plugins/open-api/index.d.ts +1 -1
  176. package/dist/plugins/open-api/index.mjs +2 -2
  177. package/dist/plugins/organization/index.cjs +4 -4
  178. package/dist/plugins/organization/index.d.cts +37 -5
  179. package/dist/plugins/organization/index.d.mts +37 -5
  180. package/dist/plugins/organization/index.d.ts +37 -5
  181. package/dist/plugins/organization/index.mjs +4 -4
  182. package/dist/plugins/passkey/index.cjs +3 -3
  183. package/dist/plugins/passkey/index.d.cts +1 -1
  184. package/dist/plugins/passkey/index.d.mts +1 -1
  185. package/dist/plugins/passkey/index.d.ts +1 -1
  186. package/dist/plugins/passkey/index.mjs +3 -3
  187. package/dist/plugins/phone-number/index.cjs +3 -3
  188. package/dist/plugins/phone-number/index.d.cts +1 -1
  189. package/dist/plugins/phone-number/index.d.mts +1 -1
  190. package/dist/plugins/phone-number/index.d.ts +1 -1
  191. package/dist/plugins/phone-number/index.mjs +3 -3
  192. package/dist/plugins/siwe/index.cjs +3 -3
  193. package/dist/plugins/siwe/index.d.cts +1 -1
  194. package/dist/plugins/siwe/index.d.mts +1 -1
  195. package/dist/plugins/siwe/index.d.ts +1 -1
  196. package/dist/plugins/siwe/index.mjs +3 -3
  197. package/dist/plugins/sso/index.cjs +3 -3
  198. package/dist/plugins/sso/index.d.cts +1 -1
  199. package/dist/plugins/sso/index.d.mts +1 -1
  200. package/dist/plugins/sso/index.d.ts +1 -1
  201. package/dist/plugins/sso/index.mjs +3 -3
  202. package/dist/plugins/two-factor/index.cjs +2 -2
  203. package/dist/plugins/two-factor/index.d.cts +1 -1
  204. package/dist/plugins/two-factor/index.d.mts +1 -1
  205. package/dist/plugins/two-factor/index.d.ts +1 -1
  206. package/dist/plugins/two-factor/index.mjs +2 -2
  207. package/dist/plugins/username/index.cjs +2 -2
  208. package/dist/plugins/username/index.d.cts +1 -1
  209. package/dist/plugins/username/index.d.mts +1 -1
  210. package/dist/plugins/username/index.d.ts +1 -1
  211. package/dist/plugins/username/index.mjs +2 -2
  212. package/dist/shared/{better-auth.BeA5VIAP.d.mts → better-auth.0ocXQa3x.d.mts} +1 -1
  213. package/dist/shared/{better-auth.CkxRAus3.d.cts → better-auth.6Fu7s4Jj.d.cts} +8 -8
  214. package/dist/shared/{better-auth.CYkDoFdW.d.ts → better-auth.9fbTzUjI.d.ts} +8 -8
  215. package/dist/shared/{better-auth.B7MQmN7r.d.cts → better-auth.B-1ESWTT.d.cts} +1 -1
  216. package/dist/shared/{better-auth.CpW8Jb6y.cjs → better-auth.B2msLoMo.cjs} +3 -3
  217. package/dist/shared/{better-auth.BfeJWAMn.mjs → better-auth.BCc3zPBF.mjs} +1 -1
  218. package/dist/shared/{better-auth.DmODih0G.mjs → better-auth.BE51sqlX.mjs} +3 -3
  219. package/dist/shared/{better-auth.BUiElJM6.cjs → better-auth.BKqT_ZVS.cjs} +3 -3
  220. package/dist/shared/{better-auth.Ddn-Kb43.mjs → better-auth.BVF2_YJN.mjs} +1 -1
  221. package/dist/shared/{better-auth.SIzsChC6.mjs → better-auth.Ba_pqY0l.mjs} +2 -2
  222. package/dist/shared/{better-auth.DmBU2Klq.cjs → better-auth.Bco357J8.cjs} +1 -1
  223. package/dist/shared/{better-auth.DBjOlY_t.d.mts → better-auth.CPub526R.d.cts} +1 -1
  224. package/dist/shared/{better-auth.Ceym6hBa.cjs → better-auth.CV-4ifSd.cjs} +2 -2
  225. package/dist/shared/{better-auth.Cv9uwNRT.d.cts → better-auth.C_sC2HVS.d.cts} +1 -1
  226. package/dist/shared/{better-auth.D2zPwm_k.cjs → better-auth.CbBksUvo.cjs} +4 -4
  227. package/dist/shared/{better-auth.DqZkb8RK.mjs → better-auth.CfB-tQyX.mjs} +7 -1
  228. package/dist/shared/{better-auth.DRp9PWyh.cjs → better-auth.CiuRzSQH.cjs} +1 -1
  229. package/dist/shared/{better-auth.Duh5FRN2.mjs → better-auth.CpaD1RO9.mjs} +1 -1
  230. package/dist/shared/{better-auth.BQZK-wJu.cjs → better-auth.CwxQpTGf.cjs} +1 -1
  231. package/dist/shared/{better-auth.CLdWb3SL.mjs → better-auth.CxFDzRIT.mjs} +1 -1
  232. package/dist/shared/{better-auth.BHgyyrFr.mjs → better-auth.DAX7uGE1.mjs} +3 -3
  233. package/dist/shared/{better-auth.BNczdx42.mjs → better-auth.DDozCDMS.mjs} +33 -8
  234. package/dist/shared/{better-auth.BT8cUF7T.mjs → better-auth.DGJgCfAm.mjs} +2 -2
  235. package/dist/shared/{better-auth.DqkDf_wI.d.cts → better-auth.DJkn-F_t.d.mts} +1 -1
  236. package/dist/shared/{better-auth.CHQjJhgG.d.mts → better-auth.DYU6O80J.d.mts} +8 -8
  237. package/dist/shared/{better-auth.CAew6LWO.mjs → better-auth.DayjxkqD.mjs} +1 -1
  238. package/dist/shared/{better-auth.CHS_bFaK.mjs → better-auth.DgX9nQ3e.mjs} +4 -4
  239. package/dist/shared/{better-auth.CfjjR3nO.d.ts → better-auth.Dq9LQaVG.d.ts} +1 -1
  240. package/dist/shared/{better-auth.xvxdjoSR.cjs → better-auth.L_XZAIeN.cjs} +33 -8
  241. package/dist/shared/{better-auth.DCqgE_iR.d.ts → better-auth.UBkgjjZk.d.ts} +1 -1
  242. package/dist/shared/{better-auth.CGAZXf66.cjs → better-auth.XbRtJVmM.cjs} +1 -1
  243. package/dist/shared/{better-auth.CG1BaUDq.d.ts → better-auth.XtTSqBkR.d.ts} +1 -1
  244. package/dist/shared/{better-auth.Cc3_crZ-.cjs → better-auth.ZhaALnFz.cjs} +7 -1
  245. package/dist/shared/{better-auth.BgBYBYNw.d.mts → better-auth.evNMgBq8.d.mts} +1 -1
  246. package/dist/shared/{better-auth.CI84ZLNV.mjs → better-auth.w5Mg3-u0.mjs} +2 -2
  247. package/dist/shared/{better-auth.G4r7NeaH.cjs → better-auth.yHdubbkw.cjs} +2 -2
  248. package/dist/shared/{better-auth.DlH62fwB.cjs → better-auth.z3V3mA_O.cjs} +2 -2
  249. package/dist/shared/{better-auth.BI9sTLIb.cjs → better-auth.zQKOFY7X.cjs} +1 -1
  250. package/dist/social-providers/index.cjs +2 -2
  251. package/dist/social-providers/index.mjs +2 -2
  252. package/dist/test-utils/index.cjs +9 -9
  253. package/dist/test-utils/index.d.cts +2 -2
  254. package/dist/test-utils/index.d.mts +2 -2
  255. package/dist/test-utils/index.d.ts +2 -2
  256. package/dist/test-utils/index.mjs +9 -9
  257. package/dist/types/index.d.cts +2 -2
  258. package/dist/types/index.d.mts +2 -2
  259. package/dist/types/index.d.ts +2 -2
  260. package/package.json +2 -2
@@ -1,10 +1,10 @@
1
1
  import * as _better_fetch_fetch from '@better-fetch/fetch';
2
2
  import { BetterFetchError } from '@better-fetch/fetch';
3
3
  export * from '@better-fetch/fetch';
4
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.B7MQmN7r.cjs';
4
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.B-1ESWTT.cjs';
5
5
  import { Accessor } from 'solid-js';
6
6
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
7
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CkxRAus3.cjs';
7
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.6Fu7s4Jj.cjs';
8
8
  export * from 'nanostores';
9
9
  import 'better-call';
10
10
  import 'kysely';
@@ -71,13 +71,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
71
71
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
72
72
  };
73
73
  })[];
74
- redirect?: RequestRedirect | undefined;
75
74
  method: string;
76
75
  headers?: (HeadersInit & (HeadersInit | {
77
76
  accept: "application/json" | "text/plain" | "application/octet-stream";
78
77
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
79
78
  authorization: "Bearer" | "Basic";
80
79
  })) | undefined;
80
+ redirect?: RequestRedirect | undefined;
81
81
  cache?: RequestCache | undefined;
82
82
  credentials?: RequestCredentials;
83
83
  integrity?: string | undefined;
@@ -1,10 +1,10 @@
1
1
  import * as _better_fetch_fetch from '@better-fetch/fetch';
2
2
  import { BetterFetchError } from '@better-fetch/fetch';
3
3
  export * from '@better-fetch/fetch';
4
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BeA5VIAP.mjs';
4
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.0ocXQa3x.mjs';
5
5
  import { Accessor } from 'solid-js';
6
6
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
7
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CHQjJhgG.mjs';
7
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DYU6O80J.mjs';
8
8
  export * from 'nanostores';
9
9
  import 'better-call';
10
10
  import 'kysely';
@@ -71,13 +71,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
71
71
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
72
72
  };
73
73
  })[];
74
- redirect?: RequestRedirect | undefined;
75
74
  method: string;
76
75
  headers?: (HeadersInit & (HeadersInit | {
77
76
  accept: "application/json" | "text/plain" | "application/octet-stream";
78
77
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
79
78
  authorization: "Bearer" | "Basic";
80
79
  })) | undefined;
80
+ redirect?: RequestRedirect | undefined;
81
81
  cache?: RequestCache | undefined;
82
82
  credentials?: RequestCredentials;
83
83
  integrity?: string | undefined;
@@ -1,10 +1,10 @@
1
1
  import * as _better_fetch_fetch from '@better-fetch/fetch';
2
2
  import { BetterFetchError } from '@better-fetch/fetch';
3
3
  export * from '@better-fetch/fetch';
4
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.CfjjR3nO.js';
4
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.Dq9LQaVG.js';
5
5
  import { Accessor } from 'solid-js';
6
6
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
7
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CYkDoFdW.js';
7
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.9fbTzUjI.js';
8
8
  export * from 'nanostores';
9
9
  import 'better-call';
10
10
  import 'kysely';
@@ -71,13 +71,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
71
71
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
72
72
  };
73
73
  })[];
74
- redirect?: RequestRedirect | undefined;
75
74
  method: string;
76
75
  headers?: (HeadersInit & (HeadersInit | {
77
76
  accept: "application/json" | "text/plain" | "application/octet-stream";
78
77
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
79
78
  authorization: "Bearer" | "Basic";
80
79
  })) | undefined;
80
+ redirect?: RequestRedirect | undefined;
81
81
  cache?: RequestCache | undefined;
82
82
  credentials?: RequestCredentials;
83
83
  integrity?: string | undefined;
@@ -4,9 +4,9 @@ export * from 'nanostores';
4
4
  import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.B7MQmN7r.cjs';
7
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.B-1ESWTT.cjs';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CkxRAus3.cjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.6Fu7s4Jj.cjs';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
@@ -26,15 +26,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
26
26
  data: InferClientAPI<Option> extends {
27
27
  getSession: () => Promise<infer Res>;
28
28
  } ? Res extends {
29
- data: infer S;
30
- error: null;
31
- } | {
32
29
  data: null;
33
30
  error: {
34
31
  message?: string | undefined;
35
32
  status: number;
36
33
  statusText: string;
37
34
  };
35
+ } | {
36
+ data: infer S;
37
+ error: null;
38
38
  } ? S : Res extends Record<string, any> ? Res : never : never;
39
39
  error: BetterFetchError | null;
40
40
  isPending: boolean;
@@ -57,13 +57,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
57
57
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
58
58
  };
59
59
  })[];
60
- redirect?: RequestRedirect | undefined;
61
60
  method: string;
62
61
  headers?: (HeadersInit & (HeadersInit | {
63
62
  accept: "application/json" | "text/plain" | "application/octet-stream";
64
63
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
65
64
  authorization: "Bearer" | "Basic";
66
65
  })) | undefined;
66
+ redirect?: RequestRedirect | undefined;
67
67
  cache?: RequestCache | undefined;
68
68
  credentials?: RequestCredentials;
69
69
  integrity?: string | undefined;
@@ -114,15 +114,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
114
114
  Session: NonNullable<InferClientAPI<Option> extends {
115
115
  getSession: () => Promise<infer Res>;
116
116
  } ? Res extends {
117
- data: infer S;
118
- error: null;
119
- } | {
120
117
  data: null;
121
118
  error: {
122
119
  message?: string | undefined;
123
120
  status: number;
124
121
  statusText: string;
125
122
  };
123
+ } | {
124
+ data: infer S;
125
+ error: null;
126
126
  } ? S : Res extends Record<string, any> ? Res : never : never>;
127
127
  };
128
128
  $ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
@@ -4,9 +4,9 @@ export * from 'nanostores';
4
4
  import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BeA5VIAP.mjs';
7
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.0ocXQa3x.mjs';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CHQjJhgG.mjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DYU6O80J.mjs';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
@@ -26,15 +26,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
26
26
  data: InferClientAPI<Option> extends {
27
27
  getSession: () => Promise<infer Res>;
28
28
  } ? Res extends {
29
- data: infer S;
30
- error: null;
31
- } | {
32
29
  data: null;
33
30
  error: {
34
31
  message?: string | undefined;
35
32
  status: number;
36
33
  statusText: string;
37
34
  };
35
+ } | {
36
+ data: infer S;
37
+ error: null;
38
38
  } ? S : Res extends Record<string, any> ? Res : never : never;
39
39
  error: BetterFetchError | null;
40
40
  isPending: boolean;
@@ -57,13 +57,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
57
57
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
58
58
  };
59
59
  })[];
60
- redirect?: RequestRedirect | undefined;
61
60
  method: string;
62
61
  headers?: (HeadersInit & (HeadersInit | {
63
62
  accept: "application/json" | "text/plain" | "application/octet-stream";
64
63
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
65
64
  authorization: "Bearer" | "Basic";
66
65
  })) | undefined;
66
+ redirect?: RequestRedirect | undefined;
67
67
  cache?: RequestCache | undefined;
68
68
  credentials?: RequestCredentials;
69
69
  integrity?: string | undefined;
@@ -114,15 +114,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
114
114
  Session: NonNullable<InferClientAPI<Option> extends {
115
115
  getSession: () => Promise<infer Res>;
116
116
  } ? Res extends {
117
- data: infer S;
118
- error: null;
119
- } | {
120
117
  data: null;
121
118
  error: {
122
119
  message?: string | undefined;
123
120
  status: number;
124
121
  statusText: string;
125
122
  };
123
+ } | {
124
+ data: infer S;
125
+ error: null;
126
126
  } ? S : Res extends Record<string, any> ? Res : never : never>;
127
127
  };
128
128
  $ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
@@ -4,9 +4,9 @@ export * from 'nanostores';
4
4
  import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.CfjjR3nO.js';
7
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.Dq9LQaVG.js';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CYkDoFdW.js';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.9fbTzUjI.js';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
@@ -26,15 +26,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
26
26
  data: InferClientAPI<Option> extends {
27
27
  getSession: () => Promise<infer Res>;
28
28
  } ? Res extends {
29
- data: infer S;
30
- error: null;
31
- } | {
32
29
  data: null;
33
30
  error: {
34
31
  message?: string | undefined;
35
32
  status: number;
36
33
  statusText: string;
37
34
  };
35
+ } | {
36
+ data: infer S;
37
+ error: null;
38
38
  } ? S : Res extends Record<string, any> ? Res : never : never;
39
39
  error: BetterFetchError | null;
40
40
  isPending: boolean;
@@ -57,13 +57,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
57
57
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
58
58
  };
59
59
  })[];
60
- redirect?: RequestRedirect | undefined;
61
60
  method: string;
62
61
  headers?: (HeadersInit & (HeadersInit | {
63
62
  accept: "application/json" | "text/plain" | "application/octet-stream";
64
63
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
65
64
  authorization: "Bearer" | "Basic";
66
65
  })) | undefined;
66
+ redirect?: RequestRedirect | undefined;
67
67
  cache?: RequestCache | undefined;
68
68
  credentials?: RequestCredentials;
69
69
  integrity?: string | undefined;
@@ -114,15 +114,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
114
114
  Session: NonNullable<InferClientAPI<Option> extends {
115
115
  getSession: () => Promise<infer Res>;
116
116
  } ? Res extends {
117
- data: infer S;
118
- error: null;
119
- } | {
120
117
  data: null;
121
118
  error: {
122
119
  message?: string | undefined;
123
120
  status: number;
124
121
  statusText: string;
125
122
  };
123
+ } | {
124
+ data: infer S;
125
+ error: null;
126
126
  } ? S : Res extends Record<string, any> ? Res : never : never>;
127
127
  };
128
128
  $ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
@@ -4,9 +4,9 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
4
4
  import { BetterFetchError } from '@better-fetch/fetch';
5
5
  export * from '@better-fetch/fetch';
6
6
  import { DeepReadonly, Ref } from 'vue';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.B7MQmN7r.cjs';
7
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.B-1ESWTT.cjs';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CkxRAus3.cjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.6Fu7s4Jj.cjs';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
@@ -27,15 +27,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
27
27
  data: InferClientAPI<Option> extends {
28
28
  getSession: () => Promise<infer Res>;
29
29
  } ? Res extends {
30
+ data: infer S;
31
+ error: null;
32
+ } | {
30
33
  data: null;
31
34
  error: {
32
35
  message?: string | undefined;
33
36
  status: number;
34
37
  statusText: string;
35
38
  };
36
- } | {
37
- data: infer S;
38
- error: null;
39
39
  } ? S : Res extends Record<string, any> ? Res : never : never;
40
40
  isPending: boolean;
41
41
  isRefetching: boolean;
@@ -45,15 +45,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
45
45
  data: Ref<InferClientAPI<Option> extends {
46
46
  getSession: () => Promise<infer Res>;
47
47
  } ? Res extends {
48
+ data: infer S;
49
+ error: null;
50
+ } | {
48
51
  data: null;
49
52
  error: {
50
53
  message?: string | undefined;
51
54
  status: number;
52
55
  statusText: string;
53
56
  };
54
- } | {
55
- data: infer S;
56
- error: null;
57
57
  } ? S : Res extends Record<string, any> ? Res : never : never>;
58
58
  isPending: false;
59
59
  error: Ref<{
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
67
67
  Session: NonNullable<InferClientAPI<Option> extends {
68
68
  getSession: () => Promise<infer Res>;
69
69
  } ? Res extends {
70
+ data: infer S;
71
+ error: null;
72
+ } | {
70
73
  data: null;
71
74
  error: {
72
75
  message?: string | undefined;
73
76
  status: number;
74
77
  statusText: string;
75
78
  };
76
- } | {
77
- data: infer S;
78
- error: null;
79
79
  } ? S : Res extends Record<string, any> ? Res : never : never>;
80
80
  };
81
81
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -95,13 +95,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
95
95
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
96
96
  };
97
97
  })[];
98
- redirect?: RequestRedirect | undefined;
99
98
  method: string;
100
99
  headers?: (HeadersInit & (HeadersInit | {
101
100
  accept: "application/json" | "text/plain" | "application/octet-stream";
102
101
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
103
102
  authorization: "Bearer" | "Basic";
104
103
  })) | undefined;
104
+ redirect?: RequestRedirect | undefined;
105
105
  cache?: RequestCache | undefined;
106
106
  credentials?: RequestCredentials;
107
107
  integrity?: string | undefined;
@@ -4,9 +4,9 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
4
4
  import { BetterFetchError } from '@better-fetch/fetch';
5
5
  export * from '@better-fetch/fetch';
6
6
  import { DeepReadonly, Ref } from 'vue';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BeA5VIAP.mjs';
7
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.0ocXQa3x.mjs';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CHQjJhgG.mjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DYU6O80J.mjs';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
@@ -27,15 +27,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
27
27
  data: InferClientAPI<Option> extends {
28
28
  getSession: () => Promise<infer Res>;
29
29
  } ? Res extends {
30
+ data: infer S;
31
+ error: null;
32
+ } | {
30
33
  data: null;
31
34
  error: {
32
35
  message?: string | undefined;
33
36
  status: number;
34
37
  statusText: string;
35
38
  };
36
- } | {
37
- data: infer S;
38
- error: null;
39
39
  } ? S : Res extends Record<string, any> ? Res : never : never;
40
40
  isPending: boolean;
41
41
  isRefetching: boolean;
@@ -45,15 +45,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
45
45
  data: Ref<InferClientAPI<Option> extends {
46
46
  getSession: () => Promise<infer Res>;
47
47
  } ? Res extends {
48
+ data: infer S;
49
+ error: null;
50
+ } | {
48
51
  data: null;
49
52
  error: {
50
53
  message?: string | undefined;
51
54
  status: number;
52
55
  statusText: string;
53
56
  };
54
- } | {
55
- data: infer S;
56
- error: null;
57
57
  } ? S : Res extends Record<string, any> ? Res : never : never>;
58
58
  isPending: false;
59
59
  error: Ref<{
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
67
67
  Session: NonNullable<InferClientAPI<Option> extends {
68
68
  getSession: () => Promise<infer Res>;
69
69
  } ? Res extends {
70
+ data: infer S;
71
+ error: null;
72
+ } | {
70
73
  data: null;
71
74
  error: {
72
75
  message?: string | undefined;
73
76
  status: number;
74
77
  statusText: string;
75
78
  };
76
- } | {
77
- data: infer S;
78
- error: null;
79
79
  } ? S : Res extends Record<string, any> ? Res : never : never>;
80
80
  };
81
81
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -95,13 +95,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
95
95
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
96
96
  };
97
97
  })[];
98
- redirect?: RequestRedirect | undefined;
99
98
  method: string;
100
99
  headers?: (HeadersInit & (HeadersInit | {
101
100
  accept: "application/json" | "text/plain" | "application/octet-stream";
102
101
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
103
102
  authorization: "Bearer" | "Basic";
104
103
  })) | undefined;
104
+ redirect?: RequestRedirect | undefined;
105
105
  cache?: RequestCache | undefined;
106
106
  credentials?: RequestCredentials;
107
107
  integrity?: string | undefined;
@@ -4,9 +4,9 @@ import * as _better_fetch_fetch from '@better-fetch/fetch';
4
4
  import { BetterFetchError } from '@better-fetch/fetch';
5
5
  export * from '@better-fetch/fetch';
6
6
  import { DeepReadonly, Ref } from 'vue';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.CfjjR3nO.js';
7
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.Dq9LQaVG.js';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CYkDoFdW.js';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.9fbTzUjI.js';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
@@ -27,15 +27,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
27
27
  data: InferClientAPI<Option> extends {
28
28
  getSession: () => Promise<infer Res>;
29
29
  } ? Res extends {
30
+ data: infer S;
31
+ error: null;
32
+ } | {
30
33
  data: null;
31
34
  error: {
32
35
  message?: string | undefined;
33
36
  status: number;
34
37
  statusText: string;
35
38
  };
36
- } | {
37
- data: infer S;
38
- error: null;
39
39
  } ? S : Res extends Record<string, any> ? Res : never : never;
40
40
  isPending: boolean;
41
41
  isRefetching: boolean;
@@ -45,15 +45,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
45
45
  data: Ref<InferClientAPI<Option> extends {
46
46
  getSession: () => Promise<infer Res>;
47
47
  } ? Res extends {
48
+ data: infer S;
49
+ error: null;
50
+ } | {
48
51
  data: null;
49
52
  error: {
50
53
  message?: string | undefined;
51
54
  status: number;
52
55
  statusText: string;
53
56
  };
54
- } | {
55
- data: infer S;
56
- error: null;
57
57
  } ? S : Res extends Record<string, any> ? Res : never : never>;
58
58
  isPending: false;
59
59
  error: Ref<{
@@ -67,15 +67,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
67
67
  Session: NonNullable<InferClientAPI<Option> extends {
68
68
  getSession: () => Promise<infer Res>;
69
69
  } ? Res extends {
70
+ data: infer S;
71
+ error: null;
72
+ } | {
70
73
  data: null;
71
74
  error: {
72
75
  message?: string | undefined;
73
76
  status: number;
74
77
  statusText: string;
75
78
  };
76
- } | {
77
- data: infer S;
78
- error: null;
79
79
  } ? S : Res extends Record<string, any> ? Res : never : never>;
80
80
  };
81
81
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -95,13 +95,13 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
95
95
  onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
96
96
  };
97
97
  })[];
98
- redirect?: RequestRedirect | undefined;
99
98
  method: string;
100
99
  headers?: (HeadersInit & (HeadersInit | {
101
100
  accept: "application/json" | "text/plain" | "application/octet-stream";
102
101
  "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
103
102
  authorization: "Bearer" | "Basic";
104
103
  })) | undefined;
104
+ redirect?: RequestRedirect | undefined;
105
105
  cache?: RequestCache | undefined;
106
106
  credentials?: RequestCredentials;
107
107
  integrity?: string | undefined;
@@ -1,5 +1,5 @@
1
1
  import 'better-call';
2
- export { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.CkxRAus3.cjs';
2
+ export { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.6Fu7s4Jj.cjs';
3
3
  import 'kysely';
4
4
  import 'zod/v4';
5
5
  import '../shared/better-auth.DTtXpZYr.cjs';
@@ -1,5 +1,5 @@
1
1
  import 'better-call';
2
- export { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.CHQjJhgG.mjs';
2
+ export { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.DYU6O80J.mjs';
3
3
  import 'kysely';
4
4
  import 'zod/v4';
5
5
  import '../shared/better-auth.DTtXpZYr.mjs';
@@ -1,5 +1,5 @@
1
1
  import 'better-call';
2
- export { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.CYkDoFdW.js';
2
+ export { aD as BetterAuthCookies, aI as EligibleCookies, aB as createCookieGetter, aG as deleteSessionCookie, aK as getCookieCache, aC as getCookies, aJ as getSessionCookie, aH as parseCookies, aL as parseSetCookieHeader, aE as setCookieCache, D as setCookieToHeader, aF as setSessionCookie } from '../shared/better-auth.9fbTzUjI.js';
3
3
  import 'kysely';
4
4
  import 'zod/v4';
5
5
  import '../shared/better-auth.DTtXpZYr.js';
@@ -10,6 +10,7 @@ const scrypt = require('@noble/hashes/scrypt');
10
10
  const utils = require('@better-auth/utils');
11
11
  const hex = require('@better-auth/utils/hex');
12
12
  const utils$1 = require('@noble/hashes/utils');
13
+ const index = require('../shared/better-auth.ANpbi45u.cjs');
13
14
  const random = require('../shared/better-auth.CYeOI8C-.cjs');
14
15
  require('@better-auth/utils/random');
15
16
 
@@ -66,6 +67,9 @@ const verifyPassword = async ({
66
67
  password
67
68
  }) => {
68
69
  const [salt, key] = hash.split(":");
70
+ if (!salt || !key) {
71
+ throw new index.BetterAuthError("Invalid password hash");
72
+ }
69
73
  const targetKey = await generateKey(password, salt);
70
74
  return constantTimeEqual(targetKey, utils$1.hexToBytes(key));
71
75
  };
@@ -8,6 +8,7 @@ import { scryptAsync } from '@noble/hashes/scrypt';
8
8
  import { getRandomValues } from '@better-auth/utils';
9
9
  import { hex } from '@better-auth/utils/hex';
10
10
  import { hexToBytes } from '@noble/hashes/utils';
11
+ import { B as BetterAuthError } from '../shared/better-auth.DdzSJf-n.mjs';
11
12
  export { g as generateRandomString } from '../shared/better-auth.B4Qoxdgc.mjs';
12
13
  import '@better-auth/utils/random';
13
14
 
@@ -64,6 +65,9 @@ const verifyPassword = async ({
64
65
  password
65
66
  }) => {
66
67
  const [salt, key] = hash.split(":");
68
+ if (!salt || !key) {
69
+ throw new BetterAuthError("Invalid password hash");
70
+ }
67
71
  const targetKey = await generateKey(password, salt);
68
72
  return constantTimeEqual(targetKey, hexToBytes(key));
69
73
  };
package/dist/db/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const getMigration = require('../shared/better-auth.CpW8Jb6y.cjs');
3
+ const getMigration = require('../shared/better-auth.B2msLoMo.cjs');
4
4
  const getTables = require('../shared/better-auth.Bt_3DcBl.cjs');
5
5
  const toZod = require('../shared/better-auth.BT1jd5k2.cjs');
6
6
  const schema = require('../shared/better-auth.BIMq4RPW.cjs');
@@ -25,10 +25,10 @@ require('@better-auth/utils/hex');
25
25
  require('@noble/hashes/utils');
26
26
  require('../shared/better-auth.CYeOI8C-.cjs');
27
27
  require('../shared/better-auth.ANpbi45u.cjs');
28
- require('../shared/better-auth.BI9sTLIb.cjs');
28
+ require('../shared/better-auth.zQKOFY7X.cjs');
29
29
  require('kysely');
30
- require('../shared/better-auth.Cc3_crZ-.cjs');
31
- require('../shared/better-auth.BQZK-wJu.cjs');
30
+ require('../shared/better-auth.ZhaALnFz.cjs');
31
+ require('../shared/better-auth.CwxQpTGf.cjs');
32
32
 
33
33
  const createFieldAttribute = (type, config) => {
34
34
  return {
@@ -1,5 +1,5 @@
1
- import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.CkxRAus3.cjs';
2
- export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, am as accountSchema, ac as createFieldAttribute, a9 as createInternalAdapter, ar as getAllFields, al as getAuthTables, aA as mergeSchema, ay as parseAccountInput, at as parseAccountOutput, ax as parseAdditionalUserInput, av as parseInputData, aq as parseOutputData, az as parseSessionInput, au as parseSessionOutput, aw as parseUserInput, as as parseUserOutput, ao as sessionSchema, an as userSchema, ap as verificationSchema } from '../shared/better-auth.CkxRAus3.cjs';
1
+ import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.6Fu7s4Jj.cjs';
2
+ export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, am as accountSchema, ac as createFieldAttribute, a9 as createInternalAdapter, ar as getAllFields, al as getAuthTables, aA as mergeSchema, ay as parseAccountInput, at as parseAccountOutput, ax as parseAdditionalUserInput, av as parseInputData, aq as parseOutputData, az as parseSessionInput, au as parseSessionOutput, aw as parseUserInput, as as parseUserOutput, ao as sessionSchema, an as userSchema, ap as verificationSchema } from '../shared/better-auth.6Fu7s4Jj.cjs';
3
3
  import * as z from 'zod/v4';
4
4
  import 'kysely';
5
5
  import 'better-call';
@@ -1,5 +1,5 @@
1
- import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.CHQjJhgG.mjs';
2
- export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, am as accountSchema, ac as createFieldAttribute, a9 as createInternalAdapter, ar as getAllFields, al as getAuthTables, aA as mergeSchema, ay as parseAccountInput, at as parseAccountOutput, ax as parseAdditionalUserInput, av as parseInputData, aq as parseOutputData, az as parseSessionInput, au as parseSessionOutput, aw as parseUserInput, as as parseUserOutput, ao as sessionSchema, an as userSchema, ap as verificationSchema } from '../shared/better-auth.CHQjJhgG.mjs';
1
+ import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, Q as Where, J as FieldAttribute, a8 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.DYU6O80J.mjs';
2
+ export { ak as BetterAuthDbSchema, ab as FieldAttributeConfig, ah as FieldAttributeToObject, ai as InferAdditionalFieldsFromPluginOptions, x as InferFieldsFromOptions, w as InferFieldsFromPlugins, af as InferFieldsInput, ag as InferFieldsInputClient, ae as InferFieldsOutput, ad as InferValueType, aa as InternalAdapter, aj as PluginFieldAttribute, am as accountSchema, ac as createFieldAttribute, a9 as createInternalAdapter, ar as getAllFields, al as getAuthTables, aA as mergeSchema, ay as parseAccountInput, at as parseAccountOutput, ax as parseAdditionalUserInput, av as parseInputData, aq as parseOutputData, az as parseSessionInput, au as parseSessionOutput, aw as parseUserInput, as as parseUserOutput, ao as sessionSchema, an as userSchema, ap as verificationSchema } from '../shared/better-auth.DYU6O80J.mjs';
3
3
  import * as z from 'zod/v4';
4
4
  import 'kysely';
5
5
  import 'better-call';