better-auth 1.3.8-beta.7 → 1.3.8-beta.9

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 (261) hide show
  1. package/dist/adapters/drizzle-adapter/index.d.cts +2 -2
  2. package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
  3. package/dist/adapters/drizzle-adapter/index.d.ts +2 -2
  4. package/dist/adapters/index.d.cts +3 -3
  5. package/dist/adapters/index.d.mts +3 -3
  6. package/dist/adapters/index.d.ts +3 -3
  7. package/dist/adapters/kysely-adapter/index.d.cts +2 -2
  8. package/dist/adapters/kysely-adapter/index.d.mts +2 -2
  9. package/dist/adapters/kysely-adapter/index.d.ts +2 -2
  10. package/dist/adapters/memory-adapter/index.d.cts +2 -2
  11. package/dist/adapters/memory-adapter/index.d.mts +2 -2
  12. package/dist/adapters/memory-adapter/index.d.ts +2 -2
  13. package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
  14. package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
  15. package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
  16. package/dist/adapters/prisma-adapter/index.d.cts +2 -2
  17. package/dist/adapters/prisma-adapter/index.d.mts +2 -2
  18. package/dist/adapters/prisma-adapter/index.d.ts +2 -2
  19. package/dist/adapters/test.d.cts +2 -2
  20. package/dist/adapters/test.d.mts +2 -2
  21. package/dist/adapters/test.d.ts +2 -2
  22. package/dist/api/index.cjs +1 -1
  23. package/dist/api/index.d.cts +2 -2
  24. package/dist/api/index.d.mts +2 -2
  25. package/dist/api/index.d.ts +2 -2
  26. package/dist/api/index.mjs +2 -2
  27. package/dist/client/index.cjs +2 -2
  28. package/dist/client/index.d.cts +4 -4
  29. package/dist/client/index.d.mts +4 -4
  30. package/dist/client/index.d.ts +4 -4
  31. package/dist/client/index.mjs +2 -2
  32. package/dist/client/plugins/index.cjs +31 -3
  33. package/dist/client/plugins/index.d.cts +39 -9
  34. package/dist/client/plugins/index.d.mts +39 -9
  35. package/dist/client/plugins/index.d.ts +39 -9
  36. package/dist/client/plugins/index.mjs +33 -5
  37. package/dist/client/react/index.cjs +1 -1
  38. package/dist/client/react/index.d.cts +9 -9
  39. package/dist/client/react/index.d.mts +9 -9
  40. package/dist/client/react/index.d.ts +9 -9
  41. package/dist/client/react/index.mjs +1 -1
  42. package/dist/client/solid/index.cjs +1 -1
  43. package/dist/client/solid/index.d.cts +3 -3
  44. package/dist/client/solid/index.d.mts +3 -3
  45. package/dist/client/solid/index.d.ts +3 -3
  46. package/dist/client/solid/index.mjs +1 -1
  47. package/dist/client/svelte/index.cjs +1 -1
  48. package/dist/client/svelte/index.d.cts +3 -3
  49. package/dist/client/svelte/index.d.mts +3 -3
  50. package/dist/client/svelte/index.d.ts +3 -3
  51. package/dist/client/svelte/index.mjs +1 -1
  52. package/dist/client/vue/index.cjs +1 -1
  53. package/dist/client/vue/index.d.cts +12 -12
  54. package/dist/client/vue/index.d.mts +12 -12
  55. package/dist/client/vue/index.d.ts +12 -12
  56. package/dist/client/vue/index.mjs +1 -1
  57. package/dist/cookies/index.d.cts +2 -2
  58. package/dist/cookies/index.d.mts +2 -2
  59. package/dist/cookies/index.d.ts +2 -2
  60. package/dist/db/index.d.cts +3 -3
  61. package/dist/db/index.d.mts +3 -3
  62. package/dist/db/index.d.ts +3 -3
  63. package/dist/index.cjs +10 -9
  64. package/dist/index.d.cts +6 -5
  65. package/dist/index.d.mts +6 -5
  66. package/dist/index.d.ts +6 -5
  67. package/dist/index.mjs +9 -9
  68. package/dist/integrations/next-js.cjs +2 -2
  69. package/dist/integrations/next-js.d.cts +2 -2
  70. package/dist/integrations/next-js.d.mts +2 -2
  71. package/dist/integrations/next-js.d.ts +2 -2
  72. package/dist/integrations/next-js.mjs +2 -2
  73. package/dist/integrations/node.d.cts +2 -2
  74. package/dist/integrations/node.d.mts +2 -2
  75. package/dist/integrations/node.d.ts +2 -2
  76. package/dist/integrations/react-start.cjs +2 -2
  77. package/dist/integrations/react-start.d.cts +2 -2
  78. package/dist/integrations/react-start.d.mts +2 -2
  79. package/dist/integrations/react-start.d.ts +2 -2
  80. package/dist/integrations/react-start.mjs +2 -2
  81. package/dist/integrations/svelte-kit.cjs +1 -1
  82. package/dist/integrations/svelte-kit.d.cts +2 -2
  83. package/dist/integrations/svelte-kit.d.mts +2 -2
  84. package/dist/integrations/svelte-kit.d.ts +2 -2
  85. package/dist/integrations/svelte-kit.mjs +1 -1
  86. package/dist/oauth2/index.cjs +1 -1
  87. package/dist/oauth2/index.d.cts +4 -4
  88. package/dist/oauth2/index.d.mts +4 -4
  89. package/dist/oauth2/index.d.ts +4 -4
  90. package/dist/oauth2/index.mjs +1 -1
  91. package/dist/plugins/admin/index.cjs +2 -2
  92. package/dist/plugins/admin/index.d.cts +4 -4
  93. package/dist/plugins/admin/index.d.mts +4 -4
  94. package/dist/plugins/admin/index.d.ts +4 -4
  95. package/dist/plugins/admin/index.mjs +2 -2
  96. package/dist/plugins/anonymous/index.cjs +1 -1
  97. package/dist/plugins/anonymous/index.d.cts +2 -2
  98. package/dist/plugins/anonymous/index.d.mts +2 -2
  99. package/dist/plugins/anonymous/index.d.ts +2 -2
  100. package/dist/plugins/anonymous/index.mjs +1 -1
  101. package/dist/plugins/bearer/index.cjs +1 -1
  102. package/dist/plugins/bearer/index.d.cts +2 -2
  103. package/dist/plugins/bearer/index.d.mts +2 -2
  104. package/dist/plugins/bearer/index.d.ts +2 -2
  105. package/dist/plugins/bearer/index.mjs +1 -1
  106. package/dist/plugins/captcha/index.d.cts +2 -2
  107. package/dist/plugins/captcha/index.d.mts +2 -2
  108. package/dist/plugins/captcha/index.d.ts +2 -2
  109. package/dist/plugins/custom-session/index.cjs +1 -1
  110. package/dist/plugins/custom-session/index.d.cts +2 -2
  111. package/dist/plugins/custom-session/index.d.mts +2 -2
  112. package/dist/plugins/custom-session/index.d.ts +2 -2
  113. package/dist/plugins/custom-session/index.mjs +1 -1
  114. package/dist/plugins/device-authorization/index.d.cts +2 -2
  115. package/dist/plugins/device-authorization/index.d.mts +2 -2
  116. package/dist/plugins/device-authorization/index.d.ts +2 -2
  117. package/dist/plugins/email-otp/index.cjs +1 -1
  118. package/dist/plugins/email-otp/index.d.cts +2 -2
  119. package/dist/plugins/email-otp/index.d.mts +2 -2
  120. package/dist/plugins/email-otp/index.d.ts +2 -2
  121. package/dist/plugins/email-otp/index.mjs +1 -1
  122. package/dist/plugins/generic-oauth/index.cjs +1 -1
  123. package/dist/plugins/generic-oauth/index.d.cts +2 -2
  124. package/dist/plugins/generic-oauth/index.d.mts +2 -2
  125. package/dist/plugins/generic-oauth/index.d.ts +2 -2
  126. package/dist/plugins/generic-oauth/index.mjs +1 -1
  127. package/dist/plugins/haveibeenpwned/index.cjs +1 -1
  128. package/dist/plugins/haveibeenpwned/index.d.cts +2 -2
  129. package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
  130. package/dist/plugins/haveibeenpwned/index.d.ts +2 -2
  131. package/dist/plugins/haveibeenpwned/index.mjs +1 -1
  132. package/dist/plugins/index.cjs +7 -7
  133. package/dist/plugins/index.d.cts +5 -5
  134. package/dist/plugins/index.d.mts +5 -5
  135. package/dist/plugins/index.d.ts +5 -5
  136. package/dist/plugins/index.mjs +8 -8
  137. package/dist/plugins/jwt/index.cjs +1 -1
  138. package/dist/plugins/jwt/index.d.cts +2 -2
  139. package/dist/plugins/jwt/index.d.mts +2 -2
  140. package/dist/plugins/jwt/index.d.ts +2 -2
  141. package/dist/plugins/jwt/index.mjs +1 -1
  142. package/dist/plugins/magic-link/index.cjs +1 -1
  143. package/dist/plugins/magic-link/index.mjs +1 -1
  144. package/dist/plugins/multi-session/index.cjs +1 -1
  145. package/dist/plugins/multi-session/index.d.cts +2 -2
  146. package/dist/plugins/multi-session/index.d.mts +2 -2
  147. package/dist/plugins/multi-session/index.d.ts +2 -2
  148. package/dist/plugins/multi-session/index.mjs +1 -1
  149. package/dist/plugins/oauth-proxy/index.cjs +1 -1
  150. package/dist/plugins/oauth-proxy/index.d.cts +2 -2
  151. package/dist/plugins/oauth-proxy/index.d.mts +2 -2
  152. package/dist/plugins/oauth-proxy/index.d.ts +2 -2
  153. package/dist/plugins/oauth-proxy/index.mjs +1 -1
  154. package/dist/plugins/oidc-provider/index.cjs +2 -2
  155. package/dist/plugins/oidc-provider/index.d.cts +6 -6
  156. package/dist/plugins/oidc-provider/index.d.mts +6 -6
  157. package/dist/plugins/oidc-provider/index.d.ts +6 -6
  158. package/dist/plugins/oidc-provider/index.mjs +2 -2
  159. package/dist/plugins/one-tap/index.cjs +1 -1
  160. package/dist/plugins/one-tap/index.mjs +1 -1
  161. package/dist/plugins/one-time-token/index.cjs +3 -3
  162. package/dist/plugins/one-time-token/index.d.cts +2 -2
  163. package/dist/plugins/one-time-token/index.d.mts +2 -2
  164. package/dist/plugins/one-time-token/index.d.ts +2 -2
  165. package/dist/plugins/one-time-token/index.mjs +3 -3
  166. package/dist/plugins/open-api/index.cjs +1 -1
  167. package/dist/plugins/open-api/index.d.cts +2 -2
  168. package/dist/plugins/open-api/index.d.mts +2 -2
  169. package/dist/plugins/open-api/index.d.ts +2 -2
  170. package/dist/plugins/open-api/index.mjs +1 -1
  171. package/dist/plugins/organization/access/index.cjs +9 -4
  172. package/dist/plugins/organization/access/index.d.cts +56 -25
  173. package/dist/plugins/organization/access/index.d.mts +56 -25
  174. package/dist/plugins/organization/access/index.d.ts +56 -25
  175. package/dist/plugins/organization/access/index.mjs +9 -4
  176. package/dist/plugins/organization/index.cjs +4 -4
  177. package/dist/plugins/organization/index.d.cts +12104 -2664
  178. package/dist/plugins/organization/index.d.mts +12104 -2664
  179. package/dist/plugins/organization/index.d.ts +12104 -2664
  180. package/dist/plugins/organization/index.mjs +4 -4
  181. package/dist/plugins/passkey/index.cjs +1 -1
  182. package/dist/plugins/passkey/index.d.cts +2 -2
  183. package/dist/plugins/passkey/index.d.mts +2 -2
  184. package/dist/plugins/passkey/index.d.ts +2 -2
  185. package/dist/plugins/passkey/index.mjs +1 -1
  186. package/dist/plugins/phone-number/index.cjs +1 -1
  187. package/dist/plugins/phone-number/index.d.cts +2 -2
  188. package/dist/plugins/phone-number/index.d.mts +2 -2
  189. package/dist/plugins/phone-number/index.d.ts +2 -2
  190. package/dist/plugins/phone-number/index.mjs +1 -1
  191. package/dist/plugins/siwe/index.cjs +1 -1
  192. package/dist/plugins/siwe/index.d.cts +2 -2
  193. package/dist/plugins/siwe/index.d.mts +2 -2
  194. package/dist/plugins/siwe/index.d.ts +2 -2
  195. package/dist/plugins/siwe/index.mjs +1 -1
  196. package/dist/plugins/sso/index.cjs +1 -1
  197. package/dist/plugins/sso/index.d.cts +4 -4
  198. package/dist/plugins/sso/index.d.mts +4 -4
  199. package/dist/plugins/sso/index.d.ts +4 -4
  200. package/dist/plugins/sso/index.mjs +1 -1
  201. package/dist/plugins/two-factor/index.cjs +1 -1
  202. package/dist/plugins/two-factor/index.d.cts +2 -2
  203. package/dist/plugins/two-factor/index.d.mts +2 -2
  204. package/dist/plugins/two-factor/index.d.ts +2 -2
  205. package/dist/plugins/two-factor/index.mjs +1 -1
  206. package/dist/plugins/username/index.cjs +1 -1
  207. package/dist/plugins/username/index.d.cts +2 -2
  208. package/dist/plugins/username/index.d.mts +2 -2
  209. package/dist/plugins/username/index.d.ts +2 -2
  210. package/dist/plugins/username/index.mjs +1 -1
  211. package/dist/shared/{better-auth.BXZFHeKS.d.cts → better-auth.3m3MTRoL.d.cts} +1 -1
  212. package/dist/shared/{better-auth.BVRe9oUF.d.cts → better-auth.B2sdtpa-.d.cts} +2 -13
  213. package/dist/shared/{better-auth.srwANuMX.cjs → better-auth.B4ss9kvz.cjs} +1798 -247
  214. package/dist/shared/{better-auth.B4s085TW.cjs → better-auth.BEsywhdZ.cjs} +1 -7
  215. package/dist/shared/{better-auth.DygnLQW5.mjs → better-auth.BI4JniQN.mjs} +1 -7
  216. package/dist/shared/{better-auth.BZ1rl9jb.cjs → better-auth.BKTHmemy.cjs} +1 -1
  217. package/dist/shared/{better-auth.B5XPvU4V.d.mts → better-auth.BKoHQyy0.d.mts} +1 -1
  218. package/dist/shared/{better-auth.BYiXvdJQ.cjs → better-auth.BUvUa_Fh.cjs} +9 -1
  219. package/dist/shared/{better-auth.CApDACtr.mjs → better-auth.B_KS59W1.mjs} +1798 -247
  220. package/dist/shared/{better-auth.BpZ2qzWn.d.mts → better-auth.BeqVmFDy.d.mts} +1 -1
  221. package/dist/shared/{better-auth.Ctgkdy7x.d.mts → better-auth.Bh5GST-4.d.mts} +1 -1
  222. package/dist/shared/better-auth.BusfdPsj.cjs +87 -0
  223. package/dist/shared/{better-auth.efEqxJ3k.d.mts → better-auth.CBUKWpSt.d.mts} +2 -13
  224. package/dist/shared/{better-auth.DX9TcqCt.mjs → better-auth.CBdfkPoe.mjs} +1 -1
  225. package/dist/shared/{better-auth.BDe8YvTr.cjs → better-auth.CZpfmhXT.cjs} +1 -1
  226. package/dist/shared/{better-auth.BF-28VnX.d.mts → better-auth.Cl6lMoDP.d.mts} +1 -1
  227. package/dist/shared/{better-auth.BhdSraHG.cjs → better-auth.CnfAXqRG.cjs} +1 -1
  228. package/dist/shared/{better-auth.lTCLLcGt.d.ts → better-auth.CrW7XRZx.d.ts} +1 -1
  229. package/dist/shared/{better-auth.CnJoIxG_.d.ts → better-auth.CySkohPi.d.ts} +2 -13
  230. package/dist/shared/{better-auth._2xnM2S3.mjs → better-auth.D7PawI_-.mjs} +1 -12
  231. package/dist/shared/{better-auth.BLYxY3m3.d.ts → better-auth.DLXmZJi-.d.ts} +1 -1
  232. package/dist/shared/better-auth.DOFt_82p.mjs +70 -0
  233. package/dist/shared/{better-auth.Ca_NjiGd.d.cts → better-auth.DUztHusY.d.cts} +1 -1
  234. package/dist/shared/{better-auth.CxKBteqV.cjs → better-auth.Di5iHMA7.cjs} +1 -1
  235. package/dist/shared/{better-auth.BgjEx6dy.d.cts → better-auth.DqvNU_YJ.d.cts} +1 -1
  236. package/dist/shared/{better-auth.CG9DHk60.mjs → better-auth.DskHRUA7.mjs} +9 -1
  237. package/dist/shared/{better-auth.DNf2m_JT.d.ts → better-auth.Du6fl8yS.d.ts} +1 -1
  238. package/dist/shared/{better-auth.g2ow3cc2.cjs → better-auth.NTJWm3qM.cjs} +0 -12
  239. package/dist/shared/{better-auth.DqbGTNEt.mjs → better-auth.PPeYAZw9.mjs} +1 -1
  240. package/dist/shared/{better-auth.BcTT5K5S.mjs → better-auth.ifuaFFT6.mjs} +1 -1
  241. package/dist/shared/{better-auth.vI-5STVo.mjs → better-auth.ni8tK7Wv.mjs} +2 -2
  242. package/dist/shared/{better-auth.K0z8EJFS.mjs → better-auth.sJR84kSG.mjs} +1 -1
  243. package/dist/shared/{better-auth.D7tWjP25.d.cts → better-auth.ucmRbPom.d.cts} +1 -1
  244. package/dist/shared/{better-auth.BCH1iVsI.d.ts → better-auth.v9lHrfe7.d.ts} +1 -1
  245. package/dist/shared/{better-auth.Cm_V_J8I.cjs → better-auth.yYFlLPlP.cjs} +2 -2
  246. package/dist/social-providers/index.cjs +1 -2
  247. package/dist/social-providers/index.d.cts +1 -1
  248. package/dist/social-providers/index.d.mts +1 -1
  249. package/dist/social-providers/index.d.ts +1 -1
  250. package/dist/social-providers/index.mjs +1 -1
  251. package/dist/test-utils/index.cjs +5 -5
  252. package/dist/test-utils/index.d.cts +3 -3
  253. package/dist/test-utils/index.d.mts +3 -3
  254. package/dist/test-utils/index.d.ts +3 -3
  255. package/dist/test-utils/index.mjs +5 -5
  256. package/dist/types/index.d.cts +3 -3
  257. package/dist/types/index.d.mts +3 -3
  258. package/dist/types/index.d.ts +3 -3
  259. package/package.json +1 -1
  260. package/dist/shared/better-auth.D7N9YNr5.cjs +0 -25
  261. package/dist/shared/better-auth.Dt0CvI2z.mjs +0 -23
@@ -4,14 +4,14 @@ export * from 'nanostores';
4
4
  import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.BLYxY3m3.js';
7
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, S as SessionQueryParams, c as InferErrorCodes } from '../../shared/better-auth.DLXmZJi-.js';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.js';
9
9
  import { DependencyList } from 'react';
10
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BCH1iVsI.js';
10
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.v9lHrfe7.js';
11
11
  import 'better-call';
12
12
  import 'kysely';
13
13
  import 'zod/v4';
14
- import '../../shared/better-auth.CnJoIxG_.js';
14
+ import '../../shared/better-auth.CySkohPi.js';
15
15
  import 'jose';
16
16
  import 'zod/v4/core';
17
17
  import 'zod';
@@ -69,15 +69,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
69
69
  data: InferClientAPI<Option> extends {
70
70
  getSession: () => Promise<infer Res>;
71
71
  } ? Res extends {
72
+ data: infer S;
73
+ error: null;
74
+ } | {
72
75
  data: null;
73
76
  error: {
74
77
  message?: string | undefined;
75
78
  status: number;
76
79
  statusText: string;
77
80
  };
78
- } | {
79
- data: infer S;
80
- error: null;
81
81
  } ? S : Res : never;
82
82
  isPending: boolean;
83
83
  error: BetterFetchError | null;
@@ -89,15 +89,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
89
89
  Session: NonNullable<InferClientAPI<Option> extends {
90
90
  getSession: () => Promise<infer Res>;
91
91
  } ? Res extends {
92
+ data: infer S;
93
+ error: null;
94
+ } | {
92
95
  data: null;
93
96
  error: {
94
97
  message?: string | undefined;
95
98
  status: number;
96
99
  statusText: string;
97
100
  };
98
- } | {
99
- data: infer S;
100
- error: null;
101
101
  } ? S : Res : never>;
102
102
  };
103
103
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -1,4 +1,4 @@
1
- import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.DygnLQW5.mjs';
1
+ import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.BI4JniQN.mjs';
2
2
  import { listenKeys } from 'nanostores';
3
3
  import { useRef, useCallback, useSyncExternalStore } from 'react';
4
4
  import '@better-fetch/fetch';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const proxy = require('../../shared/better-auth.B4s085TW.cjs');
3
+ const proxy = require('../../shared/better-auth.BEsywhdZ.cjs');
4
4
  const misc = require('../../shared/better-auth.BLDOwz3i.cjs');
5
5
  const store = require('solid-js/store');
6
6
  const solidJs = require('solid-js');
@@ -1,15 +1,15 @@
1
1
  import * as _better_fetch_fetch from '@better-fetch/fetch';
2
2
  import { BetterFetchError } from '@better-fetch/fetch';
3
3
  export * from '@better-fetch/fetch';
4
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BgjEx6dy.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.DqvNU_YJ.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.BXZFHeKS.cjs';
7
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.3m3MTRoL.cjs';
8
8
  export * from 'nanostores';
9
9
  import 'better-call';
10
10
  import 'kysely';
11
11
  import 'zod/v4';
12
- import '../../shared/better-auth.BVRe9oUF.cjs';
12
+ import '../../shared/better-auth.B2sdtpa-.cjs';
13
13
  import 'jose';
14
14
  import 'zod/v4/core';
15
15
  import 'zod';
@@ -1,15 +1,15 @@
1
1
  import * as _better_fetch_fetch from '@better-fetch/fetch';
2
2
  import { BetterFetchError } from '@better-fetch/fetch';
3
3
  export * from '@better-fetch/fetch';
4
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.Ctgkdy7x.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.Bh5GST-4.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.BpZ2qzWn.mjs';
7
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BeqVmFDy.mjs';
8
8
  export * from 'nanostores';
9
9
  import 'better-call';
10
10
  import 'kysely';
11
11
  import 'zod/v4';
12
- import '../../shared/better-auth.efEqxJ3k.mjs';
12
+ import '../../shared/better-auth.CBUKWpSt.mjs';
13
13
  import 'jose';
14
14
  import 'zod/v4/core';
15
15
  import 'zod';
@@ -1,15 +1,15 @@
1
1
  import * as _better_fetch_fetch from '@better-fetch/fetch';
2
2
  import { BetterFetchError } from '@better-fetch/fetch';
3
3
  export * from '@better-fetch/fetch';
4
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BLYxY3m3.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.DLXmZJi-.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.BCH1iVsI.js';
7
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.v9lHrfe7.js';
8
8
  export * from 'nanostores';
9
9
  import 'better-call';
10
10
  import 'kysely';
11
11
  import 'zod/v4';
12
- import '../../shared/better-auth.CnJoIxG_.js';
12
+ import '../../shared/better-auth.CySkohPi.js';
13
13
  import 'jose';
14
14
  import 'zod/v4/core';
15
15
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.DygnLQW5.mjs';
1
+ import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.BI4JniQN.mjs';
2
2
  import { c as capitalizeFirstLetter } from '../../shared/better-auth.D-2CmEwz.mjs';
3
3
  import { createStore, reconcile } from 'solid-js/store';
4
4
  import { onCleanup } from 'solid-js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const proxy = require('../../shared/better-auth.B4s085TW.cjs');
3
+ const proxy = require('../../shared/better-auth.BEsywhdZ.cjs');
4
4
  const misc = require('../../shared/better-auth.BLDOwz3i.cjs');
5
5
  require('@better-fetch/fetch');
6
6
  require('../../shared/better-auth.DRmln2Nr.cjs');
@@ -4,13 +4,13 @@ export * from 'nanostores';
4
4
  import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BgjEx6dy.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.DqvNU_YJ.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.BXZFHeKS.cjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.3m3MTRoL.cjs';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
13
- import '../../shared/better-auth.BVRe9oUF.cjs';
13
+ import '../../shared/better-auth.B2sdtpa-.cjs';
14
14
  import 'jose';
15
15
  import 'zod/v4/core';
16
16
  import 'zod';
@@ -4,13 +4,13 @@ export * from 'nanostores';
4
4
  import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.Ctgkdy7x.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.Bh5GST-4.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.BpZ2qzWn.mjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BeqVmFDy.mjs';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
13
- import '../../shared/better-auth.efEqxJ3k.mjs';
13
+ import '../../shared/better-auth.CBUKWpSt.mjs';
14
14
  import 'jose';
15
15
  import 'zod/v4/core';
16
16
  import 'zod';
@@ -4,13 +4,13 @@ export * from 'nanostores';
4
4
  import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BLYxY3m3.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.DLXmZJi-.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.BCH1iVsI.js';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.v9lHrfe7.js';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
13
- import '../../shared/better-auth.CnJoIxG_.js';
13
+ import '../../shared/better-auth.CySkohPi.js';
14
14
  import 'jose';
15
15
  import 'zod/v4/core';
16
16
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.DygnLQW5.mjs';
1
+ import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.BI4JniQN.mjs';
2
2
  import { c as capitalizeFirstLetter } from '../../shared/better-auth.D-2CmEwz.mjs';
3
3
  import '@better-fetch/fetch';
4
4
  import '../../shared/better-auth.CuS_eDdK.mjs';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const vue = require('vue');
4
- const proxy = require('../../shared/better-auth.B4s085TW.cjs');
4
+ const proxy = require('../../shared/better-auth.BEsywhdZ.cjs');
5
5
  const misc = require('../../shared/better-auth.BLDOwz3i.cjs');
6
6
  require('@better-fetch/fetch');
7
7
  require('../../shared/better-auth.DRmln2Nr.cjs');
@@ -4,13 +4,13 @@ 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.BgjEx6dy.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.DqvNU_YJ.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.BXZFHeKS.cjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.3m3MTRoL.cjs';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
13
- import '../../shared/better-auth.BVRe9oUF.cjs';
13
+ import '../../shared/better-auth.B2sdtpa-.cjs';
14
14
  import 'jose';
15
15
  import 'zod/v4/core';
16
16
  import 'zod';
@@ -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
- } | {
33
30
  data: null;
34
31
  error: {
35
32
  message?: string | undefined;
36
33
  status: number;
37
34
  statusText: string;
38
35
  };
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
- } | {
51
48
  data: null;
52
49
  error: {
53
50
  message?: string | undefined;
54
51
  status: number;
55
52
  statusText: string;
56
53
  };
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
- } | {
73
70
  data: null;
74
71
  error: {
75
72
  message?: string | undefined;
76
73
  status: number;
77
74
  statusText: string;
78
75
  };
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<{
@@ -4,13 +4,13 @@ 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.Ctgkdy7x.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.Bh5GST-4.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.BpZ2qzWn.mjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BeqVmFDy.mjs';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
13
- import '../../shared/better-auth.efEqxJ3k.mjs';
13
+ import '../../shared/better-auth.CBUKWpSt.mjs';
14
14
  import 'jose';
15
15
  import 'zod/v4/core';
16
16
  import 'zod';
@@ -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
- } | {
33
30
  data: null;
34
31
  error: {
35
32
  message?: string | undefined;
36
33
  status: number;
37
34
  statusText: string;
38
35
  };
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
- } | {
51
48
  data: null;
52
49
  error: {
53
50
  message?: string | undefined;
54
51
  status: number;
55
52
  statusText: string;
56
53
  };
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
- } | {
73
70
  data: null;
74
71
  error: {
75
72
  message?: string | undefined;
76
73
  status: number;
77
74
  statusText: string;
78
75
  };
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<{
@@ -4,13 +4,13 @@ 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.BLYxY3m3.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.DLXmZJi-.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.BCH1iVsI.js';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.v9lHrfe7.js';
10
10
  import 'better-call';
11
11
  import 'kysely';
12
12
  import 'zod/v4';
13
- import '../../shared/better-auth.CnJoIxG_.js';
13
+ import '../../shared/better-auth.CySkohPi.js';
14
14
  import 'jose';
15
15
  import 'zod/v4/core';
16
16
  import 'zod';
@@ -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
- } | {
33
30
  data: null;
34
31
  error: {
35
32
  message?: string | undefined;
36
33
  status: number;
37
34
  statusText: string;
38
35
  };
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
- } | {
51
48
  data: null;
52
49
  error: {
53
50
  message?: string | undefined;
54
51
  status: number;
55
52
  statusText: string;
56
53
  };
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
- } | {
73
70
  data: null;
74
71
  error: {
75
72
  message?: string | undefined;
76
73
  status: number;
77
74
  statusText: string;
78
75
  };
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<{
@@ -1,5 +1,5 @@
1
1
  import { shallowRef, getCurrentScope, onScopeDispose, readonly, getCurrentInstance } from 'vue';
2
- import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.DygnLQW5.mjs';
2
+ import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.BI4JniQN.mjs';
3
3
  import { c as capitalizeFirstLetter } from '../../shared/better-auth.D-2CmEwz.mjs';
4
4
  import '@better-fetch/fetch';
5
5
  import '../../shared/better-auth.CuS_eDdK.mjs';
@@ -1,9 +1,9 @@
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.BXZFHeKS.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.3m3MTRoL.cjs';
3
3
  import 'kysely';
4
4
  import 'zod/v4';
5
5
  import '../shared/better-auth.DTtXpZYr.cjs';
6
- import '../shared/better-auth.BVRe9oUF.cjs';
6
+ import '../shared/better-auth.B2sdtpa-.cjs';
7
7
  import 'jose';
8
8
  import 'zod/v4/core';
9
9
  import 'zod';
@@ -1,9 +1,9 @@
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.BpZ2qzWn.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.BeqVmFDy.mjs';
3
3
  import 'kysely';
4
4
  import 'zod/v4';
5
5
  import '../shared/better-auth.DTtXpZYr.mjs';
6
- import '../shared/better-auth.efEqxJ3k.mjs';
6
+ import '../shared/better-auth.CBUKWpSt.mjs';
7
7
  import 'jose';
8
8
  import 'zod/v4/core';
9
9
  import 'zod';
@@ -1,9 +1,9 @@
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.BCH1iVsI.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.v9lHrfe7.js';
3
3
  import 'kysely';
4
4
  import 'zod/v4';
5
5
  import '../shared/better-auth.DTtXpZYr.js';
6
- import '../shared/better-auth.CnJoIxG_.js';
6
+ import '../shared/better-auth.CySkohPi.js';
7
7
  import 'jose';
8
8
  import 'zod/v4/core';
9
9
  import 'zod';
@@ -1,10 +1,10 @@
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.BXZFHeKS.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.BXZFHeKS.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.3m3MTRoL.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.3m3MTRoL.cjs';
3
3
  import * as z from 'zod/v4';
4
4
  import 'kysely';
5
5
  import 'better-call';
6
6
  import '../shared/better-auth.DTtXpZYr.cjs';
7
- import '../shared/better-auth.BVRe9oUF.cjs';
7
+ import '../shared/better-auth.B2sdtpa-.cjs';
8
8
  import 'jose';
9
9
  import 'zod/v4/core';
10
10
  import 'zod';
@@ -1,10 +1,10 @@
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.BpZ2qzWn.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.BpZ2qzWn.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.BeqVmFDy.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.BeqVmFDy.mjs';
3
3
  import * as z from 'zod/v4';
4
4
  import 'kysely';
5
5
  import 'better-call';
6
6
  import '../shared/better-auth.DTtXpZYr.mjs';
7
- import '../shared/better-auth.efEqxJ3k.mjs';
7
+ import '../shared/better-auth.CBUKWpSt.mjs';
8
8
  import 'jose';
9
9
  import 'zod/v4/core';
10
10
  import 'zod';
@@ -1,10 +1,10 @@
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.BCH1iVsI.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.BCH1iVsI.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.v9lHrfe7.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.v9lHrfe7.js';
3
3
  import * as z from 'zod/v4';
4
4
  import 'kysely';
5
5
  import 'better-call';
6
6
  import '../shared/better-auth.DTtXpZYr.js';
7
- import '../shared/better-auth.CnJoIxG_.js';
7
+ import '../shared/better-auth.CySkohPi.js';
8
8
  import 'jose';
9
9
  import 'zod/v4/core';
10
10
  import 'zod';
package/dist/index.cjs CHANGED
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- const auth = require('./shared/better-auth.BZ1rl9jb.cjs');
3
+ const auth = require('./shared/better-auth.BKTHmemy.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.g2ow3cc2.cjs');
6
+ const socialProviders_index = require('./shared/better-auth.NTJWm3qM.cjs');
7
7
  const id = require('./shared/better-auth.Bg6iw3ig.cjs');
8
8
  const logger = require('./shared/better-auth.B3274wGK.cjs');
9
- require('./api/index.cjs');
10
- require('better-call');
9
+ const betterCall = require('better-call');
11
10
  require('./shared/better-auth.CLv80Pwz.cjs');
12
- require('./shared/better-auth.C1hdVENX.cjs');
13
- require('./shared/better-auth.D5q0JUiv.cjs');
11
+ require('zod/v4');
14
12
  require('./shared/better-auth.B6fIklBU.cjs');
15
13
  require('@better-auth/utils/base64');
16
14
  require('@better-auth/utils/hmac');
17
- require('./shared/better-auth.vPQBmXQL.cjs');
18
- require('./shared/better-auth.DRmln2Nr.cjs');
19
15
  require('@better-auth/utils/binary');
20
- require('zod/v4');
21
16
  require('./shared/better-auth.BIMq4RPW.cjs');
17
+ require('./api/index.cjs');
18
+ require('./shared/better-auth.D5q0JUiv.cjs');
19
+ require('./shared/better-auth.C1hdVENX.cjs');
20
+ require('./shared/better-auth.vPQBmXQL.cjs');
21
+ require('./shared/better-auth.DRmln2Nr.cjs');
22
22
  require('./shared/better-auth.Cxlqz5AU.cjs');
23
23
  require('defu');
24
24
  require('./crypto/index.cjs');
@@ -59,3 +59,4 @@ exports.createLogger = logger.createLogger;
59
59
  exports.levels = logger.levels;
60
60
  exports.logger = logger.logger;
61
61
  exports.shouldPublishLog = logger.shouldPublishLog;
62
+ exports.APIError = betterCall.APIError;
package/dist/index.d.cts CHANGED
@@ -1,14 +1,15 @@
1
- import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.BXZFHeKS.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.BXZFHeKS.cjs';
3
- export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, i as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, I as IsSignal, S as SessionQueryParams, e as Store } from './shared/better-auth.BgjEx6dy.cjs';
1
+ import { B as BetterAuthOptions, T as TelemetryContext, E as TelemetryEvent, J as FieldAttribute, M as Models } from './shared/better-auth.3m3MTRoL.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.3m3MTRoL.cjs';
3
+ export { A as AtomListener, B as BetterAuthClientPlugin, C as ClientOptions, b as InferActions, i as InferAdditionalFromClient, a as InferClientAPI, c as InferErrorCodes, f as InferPluginsFromClient, g as InferSessionFromClient, h as InferUserFromClient, I as IsSignal, S as SessionQueryParams, e as Store } from './shared/better-auth.DqvNU_YJ.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.Ca_NjiGd.cjs';
5
+ export { g as generateState, p as parseState } from './shared/better-auth.DUztHusY.cjs';
6
6
  export * from 'better-call';
7
+ export { APIError } from 'better-call';
7
8
  export * from 'zod/v4';
8
9
  export * from 'zod/v4/core';
9
10
  import { b as LiteralUnion } from './shared/better-auth.DTtXpZYr.cjs';
10
11
  export { A as Awaitable, D as DeepPartial, E as Expand, H as HasRequiredKeys, d as LiteralNumber, L as LiteralString, O as OmitId, e as PreserveJSDoc, a as Prettify, P as PrettifyDeep, c as Primitive, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.DTtXpZYr.cjs';
11
- export { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from './shared/better-auth.BVRe9oUF.cjs';
12
+ export { O as OAuth2Tokens, a as OAuth2UserInfo, b as OAuthProvider, P as ProviderOptions } from './shared/better-auth.B2sdtpa-.cjs';
12
13
  import 'kysely';
13
14
  import 'zod';
14
15
  import 'better-sqlite3';