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

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 +2 -2
  46. package/dist/client/react/index.d.mts +2 -2
  47. package/dist/client/react/index.d.ts +2 -2
  48. package/dist/client/solid/index.d.cts +8 -8
  49. package/dist/client/solid/index.d.mts +8 -8
  50. package/dist/client/solid/index.d.ts +8 -8
  51. package/dist/client/svelte/index.d.cts +8 -8
  52. package/dist/client/svelte/index.d.mts +8 -8
  53. package/dist/client/svelte/index.d.ts +8 -8
  54. package/dist/client/vue/index.d.cts +2 -2
  55. package/dist/client/vue/index.d.mts +2 -2
  56. package/dist/client/vue/index.d.ts +2 -2
  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 +1 -1
  97. package/dist/plugins/admin/index.d.mts +1 -1
  98. package/dist/plugins/admin/index.d.ts +1 -1
  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 +5 -5
  162. package/dist/plugins/oidc-provider/index.d.mts +5 -5
  163. package/dist/plugins/oidc-provider/index.d.ts +5 -5
  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 +33 -1
  179. package/dist/plugins/organization/index.d.mts +33 -1
  180. package/dist/plugins/organization/index.d.ts +33 -1
  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 +3 -3
  199. package/dist/plugins/sso/index.d.mts +3 -3
  200. package/dist/plugins/sso/index.d.ts +3 -3
  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.CpW8Jb6y.cjs → better-auth.B2msLoMo.cjs} +3 -3
  213. package/dist/shared/{better-auth.B7MQmN7r.d.cts → better-auth.B6V3vOfp.d.cts} +1 -1
  214. package/dist/shared/{better-auth.BfeJWAMn.mjs → better-auth.BCc3zPBF.mjs} +1 -1
  215. package/dist/shared/{better-auth.DmODih0G.mjs → better-auth.BE51sqlX.mjs} +3 -3
  216. package/dist/shared/{better-auth.BUiElJM6.cjs → better-auth.BKqT_ZVS.cjs} +3 -3
  217. package/dist/shared/{better-auth.Ddn-Kb43.mjs → better-auth.BVF2_YJN.mjs} +1 -1
  218. package/dist/shared/{better-auth.DBjOlY_t.d.mts → better-auth.BVPwsVUn.d.cts} +1 -1
  219. package/dist/shared/{better-auth.SIzsChC6.mjs → better-auth.Ba_pqY0l.mjs} +2 -2
  220. package/dist/shared/{better-auth.DmBU2Klq.cjs → better-auth.Bco357J8.cjs} +1 -1
  221. package/dist/shared/{better-auth.Cv9uwNRT.d.cts → better-auth.BflsQmOZ.d.cts} +1 -1
  222. package/dist/shared/{better-auth.CG1BaUDq.d.ts → better-auth.Bp6xdiY8.d.ts} +1 -1
  223. package/dist/shared/{better-auth.CfjjR3nO.d.ts → better-auth.BsHw2sS5.d.ts} +1 -1
  224. package/dist/shared/{better-auth.BeA5VIAP.d.mts → better-auth.BwsH8S4P.d.mts} +1 -1
  225. package/dist/shared/{better-auth.DqkDf_wI.d.cts → better-auth.C7BLzxG2.d.mts} +1 -1
  226. package/dist/shared/{better-auth.BgBYBYNw.d.mts → better-auth.CGejYPX3.d.mts} +1 -1
  227. package/dist/shared/{better-auth.Ceym6hBa.cjs → better-auth.CV-4ifSd.cjs} +2 -2
  228. package/dist/shared/{better-auth.D2zPwm_k.cjs → better-auth.CbBksUvo.cjs} +4 -4
  229. package/dist/shared/{better-auth.DqZkb8RK.mjs → better-auth.CfB-tQyX.mjs} +7 -1
  230. package/dist/shared/{better-auth.DRp9PWyh.cjs → better-auth.CiuRzSQH.cjs} +1 -1
  231. package/dist/shared/{better-auth.Duh5FRN2.mjs → better-auth.CpaD1RO9.mjs} +1 -1
  232. package/dist/shared/{better-auth.BQZK-wJu.cjs → better-auth.CwxQpTGf.cjs} +1 -1
  233. package/dist/shared/{better-auth.CLdWb3SL.mjs → better-auth.CxFDzRIT.mjs} +1 -1
  234. package/dist/shared/{better-auth.BHgyyrFr.mjs → better-auth.DAX7uGE1.mjs} +3 -3
  235. package/dist/shared/{better-auth.BNczdx42.mjs → better-auth.DDozCDMS.mjs} +33 -8
  236. package/dist/shared/{better-auth.BT8cUF7T.mjs → better-auth.DGJgCfAm.mjs} +2 -2
  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.DCqgE_iR.d.ts → better-auth.DxG__zXA.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.CGAZXf66.cjs → better-auth.XbRtJVmM.cjs} +1 -1
  242. package/dist/shared/{better-auth.Cc3_crZ-.cjs → better-auth.ZhaALnFz.cjs} +7 -1
  243. package/dist/shared/{better-auth.CI84ZLNV.mjs → better-auth.w5Mg3-u0.mjs} +2 -2
  244. package/dist/shared/{better-auth.G4r7NeaH.cjs → better-auth.yHdubbkw.cjs} +2 -2
  245. package/dist/shared/{better-auth.DlH62fwB.cjs → better-auth.z3V3mA_O.cjs} +2 -2
  246. package/dist/shared/{better-auth.BI9sTLIb.cjs → better-auth.zQKOFY7X.cjs} +1 -1
  247. package/dist/social-providers/index.cjs +2 -2
  248. package/dist/social-providers/index.mjs +2 -2
  249. package/dist/test-utils/index.cjs +9 -9
  250. package/dist/test-utils/index.d.cts +2 -2
  251. package/dist/test-utils/index.d.mts +2 -2
  252. package/dist/test-utils/index.d.ts +2 -2
  253. package/dist/test-utils/index.mjs +9 -9
  254. package/dist/types/index.d.cts +2 -2
  255. package/dist/types/index.d.mts +2 -2
  256. package/dist/types/index.d.ts +2 -2
  257. package/package.json +2 -2
  258. package/dist/shared/{better-auth.CHQjJhgG.d.mts → better-auth.B1puuIwv.d.mts} +3 -3
  259. package/dist/shared/{better-auth.CkxRAus3.d.cts → better-auth.CWKgK_p2.d.cts} +3 -3
  260. package/dist/shared/{better-auth.CYkDoFdW.d.ts → better-auth.D_zuKEZs.d.ts} +3 -3
@@ -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.BwsH8S4P.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.B1puuIwv.mjs';
8
8
  export * from 'nanostores';
9
9
  import 'better-call';
10
10
  import 'kysely';
@@ -25,15 +25,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
25
25
  data: InferClientAPI<Option> extends {
26
26
  getSession: () => Promise<infer Res>;
27
27
  } ? Res extends {
28
+ data: infer S;
29
+ error: null;
30
+ } | {
28
31
  data: null;
29
32
  error: {
30
33
  message?: string | undefined;
31
34
  status: number;
32
35
  statusText: string;
33
36
  };
34
- } | {
35
- data: infer S;
36
- error: null;
37
37
  } ? S : Res extends Record<string, any> ? Res : never : never;
38
38
  isPending: boolean;
39
39
  isRefetching: boolean;
@@ -43,15 +43,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
43
43
  Session: NonNullable<InferClientAPI<Option> extends {
44
44
  getSession: () => Promise<infer Res>;
45
45
  } ? Res extends {
46
+ data: infer S;
47
+ error: null;
48
+ } | {
46
49
  data: null;
47
50
  error: {
48
51
  message?: string | undefined;
49
52
  status: number;
50
53
  statusText: string;
51
54
  };
52
- } | {
53
- data: infer S;
54
- error: null;
55
55
  } ? S : Res extends Record<string, any> ? Res : never : never>;
56
56
  };
57
57
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -1,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.BsHw2sS5.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.D_zuKEZs.js';
8
8
  export * from 'nanostores';
9
9
  import 'better-call';
10
10
  import 'kysely';
@@ -25,15 +25,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
25
25
  data: InferClientAPI<Option> extends {
26
26
  getSession: () => Promise<infer Res>;
27
27
  } ? Res extends {
28
+ data: infer S;
29
+ error: null;
30
+ } | {
28
31
  data: null;
29
32
  error: {
30
33
  message?: string | undefined;
31
34
  status: number;
32
35
  statusText: string;
33
36
  };
34
- } | {
35
- data: infer S;
36
- error: null;
37
37
  } ? S : Res extends Record<string, any> ? Res : never : never;
38
38
  isPending: boolean;
39
39
  isRefetching: boolean;
@@ -43,15 +43,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
43
43
  Session: NonNullable<InferClientAPI<Option> extends {
44
44
  getSession: () => Promise<infer Res>;
45
45
  } ? Res extends {
46
+ data: infer S;
47
+ error: null;
48
+ } | {
46
49
  data: null;
47
50
  error: {
48
51
  message?: string | undefined;
49
52
  status: number;
50
53
  statusText: string;
51
54
  };
52
- } | {
53
- data: infer S;
54
- error: null;
55
55
  } ? S : Res extends Record<string, any> ? Res : never : never>;
56
56
  };
57
57
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -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.B6V3vOfp.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.CWKgK_p2.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;
@@ -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.BwsH8S4P.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.B1puuIwv.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;
@@ -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.BsHw2sS5.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.D_zuKEZs.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;
@@ -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.B6V3vOfp.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.CWKgK_p2.cjs';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
@@ -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.BwsH8S4P.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.B1puuIwv.mjs';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
@@ -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.BsHw2sS5.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.D_zuKEZs.js';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
@@ -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.CWKgK_p2.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.B1puuIwv.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.D_zuKEZs.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.CWKgK_p2.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.CWKgK_p2.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.B1puuIwv.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.B1puuIwv.mjs';
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.CYkDoFdW.js';
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.CYkDoFdW.js';
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.D_zuKEZs.js';
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.D_zuKEZs.js';
3
3
  import * as z from 'zod/v4';
4
4
  import 'kysely';
5
5
  import 'better-call';
package/dist/db/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { d as convertFromDB, b as convertToDB, c as createInternalAdapter, a as getAdapter, e as getMigrations, f as getSchema, g as getWithHooks, m as matchType } from '../shared/better-auth.DmODih0G.mjs';
1
+ export { d as convertFromDB, b as convertToDB, c as createInternalAdapter, a as getAdapter, e as getMigrations, f as getSchema, g as getWithHooks, m as matchType } from '../shared/better-auth.BE51sqlX.mjs';
2
2
  export { g as getAuthTables } from '../shared/better-auth.BfEVD9iF.mjs';
3
3
  export { t as toZodSchema } from '../shared/better-auth.DXqcUO8W.mjs';
4
4
  export { a as accountSchema, g as getAllFields, m as mergeSchema, i as parseAccountInput, c as parseAccountOutput, h as parseAdditionalUserInput, e as parseInputData, p as parseOutputData, j as parseSessionInput, d as parseSessionOutput, f as parseUserInput, b as parseUserOutput, s as sessionSchema, u as userSchema, v as verificationSchema } from '../shared/better-auth.n2KFGwjY.mjs';
@@ -23,10 +23,10 @@ import '@better-auth/utils/hex';
23
23
  import '@noble/hashes/utils';
24
24
  import '../shared/better-auth.B4Qoxdgc.mjs';
25
25
  import '../shared/better-auth.DdzSJf-n.mjs';
26
- import '../shared/better-auth.CLdWb3SL.mjs';
26
+ import '../shared/better-auth.CxFDzRIT.mjs';
27
27
  import 'kysely';
28
- import '../shared/better-auth.DqZkb8RK.mjs';
29
- import '../shared/better-auth.CAew6LWO.mjs';
28
+ import '../shared/better-auth.CfB-tQyX.mjs';
29
+ import '../shared/better-auth.DayjxkqD.mjs';
30
30
 
31
31
  const createFieldAttribute = (type, config) => {
32
32
  return {
package/dist/index.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- const auth = require('./shared/better-auth.D2zPwm_k.cjs');
3
+ const auth = require('./shared/better-auth.CbBksUvo.cjs');
4
4
  const index = require('./shared/better-auth.ANpbi45u.cjs');
5
5
  const misc = require('./shared/better-auth.BLDOwz3i.cjs');
6
- const socialProviders_index = require('./shared/better-auth.DRp9PWyh.cjs');
6
+ const socialProviders_index = require('./shared/better-auth.CiuRzSQH.cjs');
7
7
  const id = require('./shared/better-auth.Bg6iw3ig.cjs');
8
8
  const logger = require('./shared/better-auth.B3274wGK.cjs');
9
9
  require('./api/index.cjs');
10
10
  require('better-call');
11
- require('./shared/better-auth.DmBU2Klq.cjs');
11
+ require('./shared/better-auth.Bco357J8.cjs');
12
12
  require('./shared/better-auth.C1hdVENX.cjs');
13
13
  require('./shared/better-auth.l2-e84v_.cjs');
14
14
  require('./shared/better-auth.B6fIklBU.cjs');
@@ -33,12 +33,12 @@ require('@better-auth/utils/hex');
33
33
  require('@noble/hashes/utils');
34
34
  require('./shared/better-auth.CYeOI8C-.cjs');
35
35
  require('@better-auth/utils/random');
36
- require('./shared/better-auth.CpW8Jb6y.cjs');
36
+ require('./shared/better-auth.B2msLoMo.cjs');
37
37
  require('./shared/better-auth.Bt_3DcBl.cjs');
38
- require('./shared/better-auth.BI9sTLIb.cjs');
38
+ require('./shared/better-auth.zQKOFY7X.cjs');
39
39
  require('kysely');
40
- require('./shared/better-auth.Cc3_crZ-.cjs');
41
- require('./shared/better-auth.BQZK-wJu.cjs');
40
+ require('./shared/better-auth.ZhaALnFz.cjs');
41
+ require('./shared/better-auth.CwxQpTGf.cjs');
42
42
  require('./shared/better-auth.CDXNofOe.cjs');
43
43
  require('@better-fetch/fetch');
44
44
  require('jose/errors');
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.CkxRAus3.cjs';
2
- export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, h as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, $ as InferSessionAPI, q as InferUser, a5 as InternalLogger, a4 as LogHandlerParams, a0 as LogLevel, a3 as Logger, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, W as WithJsDoc, L as betterAuth, a6 as createLogger, P as init, a1 as levels, a7 as logger, a2 as shouldPublishLog } from './shared/better-auth.CkxRAus3.cjs';
3
- export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.B7MQmN7r.cjs';
1
+ import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.CWKgK_p2.cjs';
2
+ export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, h as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, $ as InferSessionAPI, q as InferUser, a5 as InternalLogger, a4 as LogHandlerParams, a0 as LogLevel, a3 as Logger, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, W as WithJsDoc, L as betterAuth, a6 as createLogger, P as init, a1 as levels, a7 as logger, a2 as shouldPublishLog } from './shared/better-auth.CWKgK_p2.cjs';
3
+ export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.B6V3vOfp.cjs';
4
4
  export { H as HIDE_METADATA } from './shared/better-auth.DEHJp1rk.cjs';
5
- export { g as generateState, p as parseState } from './shared/better-auth.DqkDf_wI.cjs';
5
+ export { g as generateState, p as parseState } from './shared/better-auth.BVPwsVUn.cjs';
6
6
  export * from 'better-call';
7
7
  export * from 'zod/v4';
8
8
  export * from 'zod/v4/core';
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.CHQjJhgG.mjs';
2
- export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, h as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, $ as InferSessionAPI, q as InferUser, a5 as InternalLogger, a4 as LogHandlerParams, a0 as LogLevel, a3 as Logger, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, W as WithJsDoc, L as betterAuth, a6 as createLogger, P as init, a1 as levels, a7 as logger, a2 as shouldPublishLog } from './shared/better-auth.CHQjJhgG.mjs';
3
- export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.BeA5VIAP.mjs';
1
+ import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.B1puuIwv.mjs';
2
+ export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, h as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, $ as InferSessionAPI, q as InferUser, a5 as InternalLogger, a4 as LogHandlerParams, a0 as LogLevel, a3 as Logger, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, W as WithJsDoc, L as betterAuth, a6 as createLogger, P as init, a1 as levels, a7 as logger, a2 as shouldPublishLog } from './shared/better-auth.B1puuIwv.mjs';
3
+ export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.BwsH8S4P.mjs';
4
4
  export { H as HIDE_METADATA } from './shared/better-auth.DEHJp1rk.mjs';
5
- export { g as generateState, p as parseState } from './shared/better-auth.DBjOlY_t.mjs';
5
+ export { g as generateState, p as parseState } from './shared/better-auth.C7BLzxG2.mjs';
6
6
  export * from 'better-call';
7
7
  export * from 'zod/v4';
8
8
  export * from 'zod/v4/core';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.CYkDoFdW.js';
2
- export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, h as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, $ as InferSessionAPI, q as InferUser, a5 as InternalLogger, a4 as LogHandlerParams, a0 as LogLevel, a3 as Logger, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, W as WithJsDoc, L as betterAuth, a6 as createLogger, P as init, a1 as levels, a7 as logger, a2 as shouldPublishLog } from './shared/better-auth.CYkDoFdW.js';
3
- export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.CfjjR3nO.js';
1
+ import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.D_zuKEZs.js';
2
+ export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, u as AdditionalSessionFieldsOutput, y as AdditionalUserFieldsInput, v as AdditionalUserFieldsOutput, n as Auth, p as AuthContext, g as AuthPluginSchema, h as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, t as InferAPI, I as InferOptionSchema, i as InferPluginErrorCodes, z as InferPluginTypes, r as InferSession, $ as InferSessionAPI, q as InferUser, a5 as InternalLogger, a4 as LogHandlerParams, a0 as LogLevel, a3 as Logger, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, W as WithJsDoc, L as betterAuth, a6 as createLogger, P as init, a1 as levels, a7 as logger, a2 as shouldPublishLog } from './shared/better-auth.D_zuKEZs.js';
3
+ export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, h as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, I as IsSignal, S as Store } from './shared/better-auth.BsHw2sS5.js';
4
4
  export { H as HIDE_METADATA } from './shared/better-auth.DEHJp1rk.js';
5
- export { g as generateState, p as parseState } from './shared/better-auth.DCqgE_iR.js';
5
+ export { g as generateState, p as parseState } from './shared/better-auth.DxG__zXA.js';
6
6
  export * from 'better-call';
7
7
  export * from 'zod/v4';
8
8
  export * from 'zod/v4/core';
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
- export { b as betterAuth, c as createTelemetry, g as getTelemetryAuthConfig } from './shared/better-auth.CHS_bFaK.mjs';
1
+ export { b as betterAuth, c as createTelemetry, g as getTelemetryAuthConfig } from './shared/better-auth.DgX9nQ3e.mjs';
2
2
  export { B as BetterAuthError, M as MissingDependencyError } from './shared/better-auth.DdzSJf-n.mjs';
3
3
  export { c as capitalizeFirstLetter } from './shared/better-auth.D-2CmEwz.mjs';
4
- export { H as HIDE_METADATA, g as generateState, p as parseState } from './shared/better-auth.Ddn-Kb43.mjs';
4
+ export { H as HIDE_METADATA, g as generateState, p as parseState } from './shared/better-auth.BVF2_YJN.mjs';
5
5
  export { g as generateId } from './shared/better-auth.BUPPRXfK.mjs';
6
6
  export { c as createLogger, l as levels, a as logger, s as shouldPublishLog } from './shared/better-auth.BjBlybv-.mjs';
7
7
  import './api/index.mjs';
8
8
  import 'better-call';
9
- import './shared/better-auth.BfeJWAMn.mjs';
9
+ import './shared/better-auth.BCc3zPBF.mjs';
10
10
  import './shared/better-auth.CW6D9eSx.mjs';
11
11
  import './shared/better-auth.DF-MUmVw.mjs';
12
12
  import './shared/better-auth.CMQ3rA-I.mjs';
@@ -31,12 +31,12 @@ import '@better-auth/utils/hex';
31
31
  import '@noble/hashes/utils';
32
32
  import './shared/better-auth.B4Qoxdgc.mjs';
33
33
  import '@better-auth/utils/random';
34
- import './shared/better-auth.DmODih0G.mjs';
34
+ import './shared/better-auth.BE51sqlX.mjs';
35
35
  import './shared/better-auth.BfEVD9iF.mjs';
36
- import './shared/better-auth.CLdWb3SL.mjs';
36
+ import './shared/better-auth.CxFDzRIT.mjs';
37
37
  import 'kysely';
38
- import './shared/better-auth.DqZkb8RK.mjs';
39
- import './shared/better-auth.CAew6LWO.mjs';
38
+ import './shared/better-auth.CfB-tQyX.mjs';
39
+ import './shared/better-auth.DayjxkqD.mjs';
40
40
  import './shared/better-auth.YwDQhoPc.mjs';
41
41
  import '@better-fetch/fetch';
42
42
  import 'jose/errors';
@@ -8,10 +8,10 @@ require('@better-auth/utils/binary');
8
8
  const cookies_index = require('../shared/better-auth.l2-e84v_.cjs');
9
9
  require('better-call');
10
10
  require('zod/v4');
11
- const session = require('../shared/better-auth.DmBU2Klq.cjs');
12
- require('../shared/better-auth.DRp9PWyh.cjs');
11
+ const session = require('../shared/better-auth.Bco357J8.cjs');
12
+ require('../shared/better-auth.CiuRzSQH.cjs');
13
13
  require('../shared/better-auth.BIMq4RPW.cjs');
14
- require('../shared/better-auth.Ceym6hBa.cjs');
14
+ require('../shared/better-auth.CV-4ifSd.cjs');
15
15
  require('../plugins/organization/access/index.cjs');
16
16
  require('@better-auth/utils/random');
17
17
  require('@better-auth/utils/hash');
@@ -1,5 +1,5 @@
1
1
  import * as better_call from 'better-call';
2
- import { H as HookEndpointContext } from '../shared/better-auth.CkxRAus3.cjs';
2
+ import { H as HookEndpointContext } from '../shared/better-auth.CWKgK_p2.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 * as better_call from 'better-call';
2
- import { H as HookEndpointContext } from '../shared/better-auth.CHQjJhgG.mjs';
2
+ import { H as HookEndpointContext } from '../shared/better-auth.B1puuIwv.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 * as better_call from 'better-call';
2
- import { H as HookEndpointContext } from '../shared/better-auth.CYkDoFdW.js';
2
+ import { H as HookEndpointContext } from '../shared/better-auth.D_zuKEZs.js';
3
3
  import 'kysely';
4
4
  import 'zod/v4';
5
5
  import '../shared/better-auth.DTtXpZYr.js';
@@ -6,10 +6,10 @@ import '@better-auth/utils/binary';
6
6
  import { p as parseSetCookieHeader } from '../shared/better-auth.DF-MUmVw.mjs';
7
7
  import 'better-call';
8
8
  import 'zod/v4';
9
- import { c as createAuthMiddleware } from '../shared/better-auth.BfeJWAMn.mjs';
10
- import '../shared/better-auth.Ddn-Kb43.mjs';
9
+ import { c as createAuthMiddleware } from '../shared/better-auth.BCc3zPBF.mjs';
10
+ import '../shared/better-auth.BVF2_YJN.mjs';
11
11
  import '../shared/better-auth.n2KFGwjY.mjs';
12
- import '../shared/better-auth.SIzsChC6.mjs';
12
+ import '../shared/better-auth.Ba_pqY0l.mjs';
13
13
  import '../plugins/organization/access/index.mjs';
14
14
  import '@better-auth/utils/random';
15
15
  import '@better-auth/utils/hash';