better-auth 1.3.8-beta.1 → 1.3.8-beta.2

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 (292) hide show
  1. package/dist/adapters/drizzle-adapter/index.cjs +3 -3
  2. package/dist/adapters/drizzle-adapter/index.d.cts +3 -3
  3. package/dist/adapters/drizzle-adapter/index.d.mts +3 -3
  4. package/dist/adapters/drizzle-adapter/index.d.ts +3 -3
  5. package/dist/adapters/drizzle-adapter/index.mjs +3 -3
  6. package/dist/adapters/index.cjs +3 -3
  7. package/dist/adapters/index.d.cts +4 -4
  8. package/dist/adapters/index.d.mts +4 -4
  9. package/dist/adapters/index.d.ts +4 -4
  10. package/dist/adapters/index.mjs +3 -3
  11. package/dist/adapters/kysely-adapter/index.cjs +4 -4
  12. package/dist/adapters/kysely-adapter/index.d.cts +3 -3
  13. package/dist/adapters/kysely-adapter/index.d.mts +3 -3
  14. package/dist/adapters/kysely-adapter/index.d.ts +3 -3
  15. package/dist/adapters/kysely-adapter/index.mjs +4 -4
  16. package/dist/adapters/memory-adapter/index.cjs +4 -4
  17. package/dist/adapters/memory-adapter/index.d.cts +3 -3
  18. package/dist/adapters/memory-adapter/index.d.mts +3 -3
  19. package/dist/adapters/memory-adapter/index.d.ts +3 -3
  20. package/dist/adapters/memory-adapter/index.mjs +4 -4
  21. package/dist/adapters/mongodb-adapter/index.cjs +4 -4
  22. package/dist/adapters/mongodb-adapter/index.d.cts +3 -3
  23. package/dist/adapters/mongodb-adapter/index.d.mts +3 -3
  24. package/dist/adapters/mongodb-adapter/index.d.ts +3 -3
  25. package/dist/adapters/mongodb-adapter/index.mjs +4 -4
  26. package/dist/adapters/prisma-adapter/index.cjs +3 -3
  27. package/dist/adapters/prisma-adapter/index.d.cts +3 -3
  28. package/dist/adapters/prisma-adapter/index.d.mts +3 -3
  29. package/dist/adapters/prisma-adapter/index.d.ts +3 -3
  30. package/dist/adapters/prisma-adapter/index.mjs +3 -3
  31. package/dist/adapters/test.cjs +1 -1
  32. package/dist/adapters/test.d.cts +3 -3
  33. package/dist/adapters/test.d.mts +3 -3
  34. package/dist/adapters/test.d.ts +3 -3
  35. package/dist/adapters/test.mjs +1 -1
  36. package/dist/api/index.cjs +4 -4
  37. package/dist/api/index.d.cts +3 -3
  38. package/dist/api/index.d.mts +3 -3
  39. package/dist/api/index.d.ts +3 -3
  40. package/dist/api/index.mjs +5 -5
  41. package/dist/chunks/node-sqlite-dialect.cjs +171 -0
  42. package/dist/chunks/node-sqlite-dialect.mjs +165 -0
  43. package/dist/client/index.cjs +2 -2
  44. package/dist/client/index.d.cts +5 -5
  45. package/dist/client/index.d.mts +5 -5
  46. package/dist/client/index.d.ts +5 -5
  47. package/dist/client/index.mjs +2 -2
  48. package/dist/client/plugins/index.d.cts +5 -5
  49. package/dist/client/plugins/index.d.mts +5 -5
  50. package/dist/client/plugins/index.d.ts +5 -5
  51. package/dist/client/react/index.cjs +1 -1
  52. package/dist/client/react/index.d.cts +4 -4
  53. package/dist/client/react/index.d.mts +4 -4
  54. package/dist/client/react/index.d.ts +4 -4
  55. package/dist/client/react/index.mjs +1 -1
  56. package/dist/client/solid/index.cjs +1 -1
  57. package/dist/client/solid/index.d.cts +10 -10
  58. package/dist/client/solid/index.d.mts +10 -10
  59. package/dist/client/solid/index.d.ts +10 -10
  60. package/dist/client/solid/index.mjs +1 -1
  61. package/dist/client/svelte/index.cjs +1 -1
  62. package/dist/client/svelte/index.d.cts +4 -4
  63. package/dist/client/svelte/index.d.mts +4 -4
  64. package/dist/client/svelte/index.d.ts +4 -4
  65. package/dist/client/svelte/index.mjs +1 -1
  66. package/dist/client/vue/index.cjs +1 -1
  67. package/dist/client/vue/index.d.cts +13 -13
  68. package/dist/client/vue/index.d.mts +13 -13
  69. package/dist/client/vue/index.d.ts +13 -13
  70. package/dist/client/vue/index.mjs +1 -1
  71. package/dist/cookies/index.cjs +20 -430
  72. package/dist/cookies/index.d.cts +3 -3
  73. package/dist/cookies/index.d.mts +3 -3
  74. package/dist/cookies/index.d.ts +3 -3
  75. package/dist/cookies/index.mjs +10 -424
  76. package/dist/db/index.cjs +6 -6
  77. package/dist/db/index.d.cts +4 -4
  78. package/dist/db/index.d.mts +4 -4
  79. package/dist/db/index.d.ts +4 -4
  80. package/dist/db/index.mjs +6 -6
  81. package/dist/index.cjs +9 -9
  82. package/dist/index.d.cts +7 -7
  83. package/dist/index.d.mts +7 -7
  84. package/dist/index.d.ts +7 -7
  85. package/dist/index.mjs +9 -9
  86. package/dist/integrations/next-js.cjs +5 -5
  87. package/dist/integrations/next-js.d.cts +3 -3
  88. package/dist/integrations/next-js.d.mts +3 -3
  89. package/dist/integrations/next-js.d.ts +3 -3
  90. package/dist/integrations/next-js.mjs +5 -5
  91. package/dist/integrations/node.d.cts +3 -3
  92. package/dist/integrations/node.d.mts +3 -3
  93. package/dist/integrations/node.d.ts +3 -3
  94. package/dist/integrations/react-start.cjs +5 -5
  95. package/dist/integrations/react-start.d.cts +3 -3
  96. package/dist/integrations/react-start.d.mts +3 -3
  97. package/dist/integrations/react-start.d.ts +3 -3
  98. package/dist/integrations/react-start.mjs +5 -5
  99. package/dist/integrations/svelte-kit.cjs +4 -4
  100. package/dist/integrations/svelte-kit.d.cts +3 -3
  101. package/dist/integrations/svelte-kit.d.mts +3 -3
  102. package/dist/integrations/svelte-kit.d.ts +3 -3
  103. package/dist/integrations/svelte-kit.mjs +4 -4
  104. package/dist/oauth2/index.cjs +4 -4
  105. package/dist/oauth2/index.d.cts +5 -5
  106. package/dist/oauth2/index.d.mts +5 -5
  107. package/dist/oauth2/index.d.ts +5 -5
  108. package/dist/oauth2/index.mjs +4 -4
  109. package/dist/plugins/access/index.d.cts +1 -1
  110. package/dist/plugins/access/index.d.mts +1 -1
  111. package/dist/plugins/access/index.d.ts +1 -1
  112. package/dist/plugins/admin/access/index.d.cts +1 -1
  113. package/dist/plugins/admin/access/index.d.mts +1 -1
  114. package/dist/plugins/admin/access/index.d.ts +1 -1
  115. package/dist/plugins/admin/index.cjs +5 -5
  116. package/dist/plugins/admin/index.d.cts +3 -3
  117. package/dist/plugins/admin/index.d.mts +3 -3
  118. package/dist/plugins/admin/index.d.ts +3 -3
  119. package/dist/plugins/admin/index.mjs +5 -5
  120. package/dist/plugins/anonymous/index.cjs +4 -4
  121. package/dist/plugins/anonymous/index.d.cts +3 -3
  122. package/dist/plugins/anonymous/index.d.mts +3 -3
  123. package/dist/plugins/anonymous/index.d.ts +3 -3
  124. package/dist/plugins/anonymous/index.mjs +4 -4
  125. package/dist/plugins/bearer/index.cjs +4 -4
  126. package/dist/plugins/bearer/index.d.cts +3 -3
  127. package/dist/plugins/bearer/index.d.mts +3 -3
  128. package/dist/plugins/bearer/index.d.ts +3 -3
  129. package/dist/plugins/bearer/index.mjs +4 -4
  130. package/dist/plugins/captcha/index.d.cts +3 -3
  131. package/dist/plugins/captcha/index.d.mts +3 -3
  132. package/dist/plugins/captcha/index.d.ts +3 -3
  133. package/dist/plugins/custom-session/index.cjs +4 -4
  134. package/dist/plugins/custom-session/index.d.cts +3 -3
  135. package/dist/plugins/custom-session/index.d.mts +3 -3
  136. package/dist/plugins/custom-session/index.d.ts +3 -3
  137. package/dist/plugins/custom-session/index.mjs +4 -4
  138. package/dist/plugins/email-otp/index.cjs +4 -4
  139. package/dist/plugins/email-otp/index.d.cts +3 -3
  140. package/dist/plugins/email-otp/index.d.mts +3 -3
  141. package/dist/plugins/email-otp/index.d.ts +3 -3
  142. package/dist/plugins/email-otp/index.mjs +4 -4
  143. package/dist/plugins/generic-oauth/index.cjs +35 -21
  144. package/dist/plugins/generic-oauth/index.d.cts +5 -19
  145. package/dist/plugins/generic-oauth/index.d.mts +5 -19
  146. package/dist/plugins/generic-oauth/index.d.ts +5 -19
  147. package/dist/plugins/generic-oauth/index.mjs +35 -21
  148. package/dist/plugins/haveibeenpwned/index.cjs +4 -4
  149. package/dist/plugins/haveibeenpwned/index.d.cts +3 -3
  150. package/dist/plugins/haveibeenpwned/index.d.mts +3 -3
  151. package/dist/plugins/haveibeenpwned/index.d.ts +3 -3
  152. package/dist/plugins/haveibeenpwned/index.mjs +4 -4
  153. package/dist/plugins/index.cjs +9 -9
  154. package/dist/plugins/index.d.cts +5 -5
  155. package/dist/plugins/index.d.mts +5 -5
  156. package/dist/plugins/index.d.ts +5 -5
  157. package/dist/plugins/index.mjs +11 -11
  158. package/dist/plugins/jwt/index.cjs +52 -12
  159. package/dist/plugins/jwt/index.d.cts +14 -3
  160. package/dist/plugins/jwt/index.d.mts +14 -3
  161. package/dist/plugins/jwt/index.d.ts +14 -3
  162. package/dist/plugins/jwt/index.mjs +52 -12
  163. package/dist/plugins/magic-link/index.cjs +4 -4
  164. package/dist/plugins/magic-link/index.mjs +4 -4
  165. package/dist/plugins/multi-session/index.cjs +4 -4
  166. package/dist/plugins/multi-session/index.d.cts +3 -3
  167. package/dist/plugins/multi-session/index.d.mts +3 -3
  168. package/dist/plugins/multi-session/index.d.ts +3 -3
  169. package/dist/plugins/multi-session/index.mjs +4 -4
  170. package/dist/plugins/oauth-proxy/index.cjs +4 -4
  171. package/dist/plugins/oauth-proxy/index.d.cts +3 -3
  172. package/dist/plugins/oauth-proxy/index.d.mts +3 -3
  173. package/dist/plugins/oauth-proxy/index.d.ts +3 -3
  174. package/dist/plugins/oauth-proxy/index.mjs +4 -4
  175. package/dist/plugins/oidc-provider/index.cjs +5 -5
  176. package/dist/plugins/oidc-provider/index.d.cts +3 -3
  177. package/dist/plugins/oidc-provider/index.d.mts +3 -3
  178. package/dist/plugins/oidc-provider/index.d.ts +3 -3
  179. package/dist/plugins/oidc-provider/index.mjs +5 -5
  180. package/dist/plugins/one-tap/index.cjs +4 -4
  181. package/dist/plugins/one-tap/index.mjs +4 -4
  182. package/dist/plugins/one-time-token/index.cjs +6 -6
  183. package/dist/plugins/one-time-token/index.d.cts +3 -3
  184. package/dist/plugins/one-time-token/index.d.mts +3 -3
  185. package/dist/plugins/one-time-token/index.d.ts +3 -3
  186. package/dist/plugins/one-time-token/index.mjs +6 -6
  187. package/dist/plugins/open-api/index.cjs +4 -4
  188. package/dist/plugins/open-api/index.d.cts +3 -3
  189. package/dist/plugins/open-api/index.d.mts +3 -3
  190. package/dist/plugins/open-api/index.d.ts +3 -3
  191. package/dist/plugins/open-api/index.mjs +4 -4
  192. package/dist/plugins/organization/access/index.d.cts +1 -1
  193. package/dist/plugins/organization/access/index.d.mts +1 -1
  194. package/dist/plugins/organization/access/index.d.ts +1 -1
  195. package/dist/plugins/organization/index.cjs +6 -6
  196. package/dist/plugins/organization/index.d.cts +3 -3
  197. package/dist/plugins/organization/index.d.mts +3 -3
  198. package/dist/plugins/organization/index.d.ts +3 -3
  199. package/dist/plugins/organization/index.mjs +6 -6
  200. package/dist/plugins/passkey/index.cjs +4 -4
  201. package/dist/plugins/passkey/index.d.cts +3 -3
  202. package/dist/plugins/passkey/index.d.mts +3 -3
  203. package/dist/plugins/passkey/index.d.ts +3 -3
  204. package/dist/plugins/passkey/index.mjs +4 -4
  205. package/dist/plugins/phone-number/index.cjs +4 -4
  206. package/dist/plugins/phone-number/index.d.cts +3 -3
  207. package/dist/plugins/phone-number/index.d.mts +3 -3
  208. package/dist/plugins/phone-number/index.d.ts +3 -3
  209. package/dist/plugins/phone-number/index.mjs +4 -4
  210. package/dist/plugins/siwe/index.cjs +4 -4
  211. package/dist/plugins/siwe/index.mjs +4 -4
  212. package/dist/plugins/sso/index.cjs +4 -4
  213. package/dist/plugins/sso/index.d.cts +3 -3
  214. package/dist/plugins/sso/index.d.mts +3 -3
  215. package/dist/plugins/sso/index.d.ts +3 -3
  216. package/dist/plugins/sso/index.mjs +4 -4
  217. package/dist/plugins/two-factor/index.cjs +4 -4
  218. package/dist/plugins/two-factor/index.d.cts +3 -3
  219. package/dist/plugins/two-factor/index.d.mts +3 -3
  220. package/dist/plugins/two-factor/index.d.ts +3 -3
  221. package/dist/plugins/two-factor/index.mjs +4 -4
  222. package/dist/plugins/username/index.cjs +4 -4
  223. package/dist/plugins/username/index.d.cts +3 -3
  224. package/dist/plugins/username/index.d.mts +3 -3
  225. package/dist/plugins/username/index.d.ts +3 -3
  226. package/dist/plugins/username/index.mjs +4 -4
  227. package/dist/shared/{better-auth.6hiPn8Kd.d.mts → better-auth.0DssezSG.d.mts} +1 -1
  228. package/dist/shared/{better-auth.GpOOav9x.cjs → better-auth.B3274wGK.cjs} +7 -1
  229. package/dist/shared/{better-auth.D85s0t2j.d.mts → better-auth.BEuRSDgj.d.cts} +1 -1
  230. package/dist/shared/{better-auth.BDEfedYa.d.mts → better-auth.BLnYm5c_.d.ts} +4 -4
  231. package/dist/shared/{better-auth.DrzbcRgZ.cjs → better-auth.BNLoFqpd.cjs} +4 -4
  232. package/dist/shared/{better-auth.BCerfnoo.cjs → better-auth.BNhZazTR.cjs} +20 -1
  233. package/dist/shared/{better-auth.DIfzDoPN.mjs → better-auth.BQNzC8cU.mjs} +1 -1
  234. package/dist/shared/{better-auth.gABN3TsS.mjs → better-auth.BSGkasIG.mjs} +2 -2
  235. package/dist/shared/{better-auth.Co0UDY4N.cjs → better-auth.BTwQqqkl.cjs} +8 -97
  236. package/dist/shared/{better-auth.PgM8qMHr.mjs → better-auth.BZZKN1g7.mjs} +1 -1
  237. package/dist/shared/{better-auth.BtemoGGn.mjs → better-auth.B_3Nie7C.mjs} +2 -2
  238. package/dist/shared/{better-auth.CCCUvENJ.cjs → better-auth.BblrvPZ3.cjs} +1 -1
  239. package/dist/shared/{better-auth.C_0BlDB0.d.ts → better-auth.Bbp8urLR.d.ts} +1 -1
  240. package/dist/shared/{better-auth.DrQaSEU_.mjs → better-auth.BhKgzJmk.mjs} +20 -27
  241. package/dist/shared/{better-auth.DH3YjMQH.mjs → better-auth.BjBlybv-.mjs} +7 -1
  242. package/dist/shared/{better-auth.WTr4EDT7.cjs → better-auth.BmcCZHit.cjs} +3 -3
  243. package/dist/shared/{better-auth.Bf5MnLaK.d.cts → better-auth.BoEiBLMv.d.mts} +4 -4
  244. package/dist/shared/{better-auth.CLfudv58.d.ts → better-auth.C1wrCC3K.d.ts} +1 -1
  245. package/dist/shared/{better-auth.CVQe8izV.mjs → better-auth.CGGao4aY.mjs} +7 -0
  246. package/dist/shared/{better-auth.CFtZttAn.cjs → better-auth.CL4S7WA5.cjs} +2 -2
  247. package/dist/shared/{better-auth.Bgs2SPcK.cjs → better-auth.CMnvkNNK.cjs} +2 -2
  248. package/dist/shared/{better-auth.DX362szo.mjs → better-auth.CPXAkOat.mjs} +3 -3
  249. package/dist/shared/{better-auth.PFi3XfiT.mjs → better-auth.CRzkA7S1.mjs} +2 -2
  250. package/dist/shared/{better-auth.Db2g2HxM.cjs → better-auth.CmdI9lHT.cjs} +1 -1
  251. package/dist/shared/{better-auth.CVYnNkfw.cjs → better-auth.CtToz4qL.cjs} +7 -0
  252. package/dist/shared/{better-auth.X6YzBCDT.d.cts → better-auth.D6DP-h2z.d.cts} +1 -1
  253. package/dist/shared/{better-auth.p1GhhfhV.mjs → better-auth.D6HvWMYN.mjs} +30 -30
  254. package/dist/shared/{better-auth.0SyTY9U9.d.ts → better-auth.D8SN-Ifb.d.cts} +13 -65
  255. package/dist/shared/{better-auth.HYhkNVyD.mjs → better-auth.D96SwENp.mjs} +20 -1
  256. package/dist/shared/{better-auth.CRyLLXtn.cjs → better-auth.D9mpJtxP.cjs} +16 -7
  257. package/dist/shared/better-auth.DF-MUmVw.mjs +479 -0
  258. package/dist/shared/{better-auth.CkqBZvXM.d.cts → better-auth.DON7H68e.d.cts} +11 -10
  259. package/dist/shared/{better-auth.BS4wi0R-.d.mts → better-auth.DOVAUUJb.d.ts} +13 -65
  260. package/dist/shared/{better-auth.BDR52Rf2.d.cts → better-auth.DTtXpZYr.d.cts} +2 -1
  261. package/dist/shared/{better-auth.BDR52Rf2.d.mts → better-auth.DTtXpZYr.d.mts} +2 -1
  262. package/dist/shared/{better-auth.BDR52Rf2.d.ts → better-auth.DTtXpZYr.d.ts} +2 -1
  263. package/dist/shared/{better-auth.BDBtglk1.mjs → better-auth.DVsI0DHa.mjs} +1 -1
  264. package/dist/shared/{better-auth.CkEkCniR.d.cts → better-auth.DY7-SHcY.d.mts} +13 -65
  265. package/dist/shared/{better-auth.DnUZno9_.d.ts → better-auth.DdgudOLF.d.mts} +11 -10
  266. package/dist/shared/{better-auth.MrJBhiF6.mjs → better-auth.Dqe7GuxR.mjs} +4 -4
  267. package/dist/shared/{better-auth.BbDyeJdW.cjs → better-auth.DrnlgZUj.cjs} +2 -2
  268. package/dist/shared/{better-auth.DMus0Wrm.mjs → better-auth.DtI97B2O.mjs} +16 -7
  269. package/dist/shared/{better-auth.DiE4yQHn.mjs → better-auth.Dy-odIpc.mjs} +4 -4
  270. package/dist/shared/{better-auth.CwsxfHfN.mjs → better-auth.FCKp3SAZ.mjs} +8 -97
  271. package/dist/shared/{better-auth.YmpB7UaD.d.cts → better-auth.aOvydSnW.d.mts} +1 -1
  272. package/dist/shared/{better-auth.NCWQv_ti.cjs → better-auth.eWF1oF7J.cjs} +20 -27
  273. package/dist/shared/{better-auth.D4eTSyUO.cjs → better-auth.jLMDNZxH.cjs} +30 -30
  274. package/dist/shared/better-auth.l2-e84v_.cjs +491 -0
  275. package/dist/shared/{better-auth.Je5iPAGQ.d.mts → better-auth.lvQ7SGjm.d.ts} +11 -10
  276. package/dist/shared/{better-auth.DrKKZc3v.cjs → better-auth.spuYC23a.cjs} +4 -4
  277. package/dist/shared/{better-auth.DbrEw0kN.cjs → better-auth.vPQBmXQL.cjs} +1 -1
  278. package/dist/shared/{better-auth._D1fz1Yx.d.ts → better-auth.w-yWDZbA.d.cts} +4 -4
  279. package/dist/social-providers/index.cjs +4 -4
  280. package/dist/social-providers/index.d.cts +2 -2
  281. package/dist/social-providers/index.d.mts +2 -2
  282. package/dist/social-providers/index.d.ts +2 -2
  283. package/dist/social-providers/index.mjs +4 -4
  284. package/dist/test-utils/index.cjs +13 -13
  285. package/dist/test-utils/index.d.cts +18 -102
  286. package/dist/test-utils/index.d.mts +18 -102
  287. package/dist/test-utils/index.d.ts +18 -102
  288. package/dist/test-utils/index.mjs +13 -13
  289. package/dist/types/index.d.cts +4 -4
  290. package/dist/types/index.d.mts +4 -4
  291. package/dist/types/index.d.ts +4 -4
  292. package/package.json +2 -2
@@ -0,0 +1,171 @@
1
+ 'use strict';
2
+
3
+ const kysely = require('kysely');
4
+
5
+ class NodeSqliteAdapter {
6
+ get supportsCreateIfNotExists() {
7
+ return true;
8
+ }
9
+ get supportsTransactionalDdl() {
10
+ return false;
11
+ }
12
+ get supportsReturning() {
13
+ return true;
14
+ }
15
+ async acquireMigrationLock() {
16
+ }
17
+ async releaseMigrationLock() {
18
+ }
19
+ get supportsOutput() {
20
+ return true;
21
+ }
22
+ }
23
+ class NodeSqliteDriver {
24
+ #config;
25
+ #connectionMutex = new ConnectionMutex();
26
+ #db;
27
+ #connection;
28
+ constructor(config) {
29
+ this.#config = { ...config };
30
+ }
31
+ async init() {
32
+ this.#db = this.#config.database;
33
+ this.#connection = new NodeSqliteConnection(this.#db);
34
+ if (this.#config.onCreateConnection) {
35
+ await this.#config.onCreateConnection(this.#connection);
36
+ }
37
+ }
38
+ async acquireConnection() {
39
+ await this.#connectionMutex.lock();
40
+ return this.#connection;
41
+ }
42
+ async beginTransaction(connection) {
43
+ await connection.executeQuery(kysely.CompiledQuery.raw("begin"));
44
+ }
45
+ async commitTransaction(connection) {
46
+ await connection.executeQuery(kysely.CompiledQuery.raw("commit"));
47
+ }
48
+ async rollbackTransaction(connection) {
49
+ await connection.executeQuery(kysely.CompiledQuery.raw("rollback"));
50
+ }
51
+ async releaseConnection() {
52
+ this.#connectionMutex.unlock();
53
+ }
54
+ async destroy() {
55
+ this.#db?.close();
56
+ }
57
+ }
58
+ class NodeSqliteConnection {
59
+ #db;
60
+ constructor(db) {
61
+ this.#db = db;
62
+ }
63
+ executeQuery(compiledQuery) {
64
+ const { sql: sql2, parameters } = compiledQuery;
65
+ const stmt = this.#db.prepare(sql2);
66
+ const rows = stmt.all(...parameters);
67
+ return Promise.resolve({
68
+ rows
69
+ });
70
+ }
71
+ async *streamQuery() {
72
+ throw new Error("Streaming query is not supported by SQLite driver.");
73
+ }
74
+ }
75
+ class ConnectionMutex {
76
+ #promise;
77
+ #resolve;
78
+ async lock() {
79
+ while (this.#promise) {
80
+ await this.#promise;
81
+ }
82
+ this.#promise = new Promise((resolve) => {
83
+ this.#resolve = resolve;
84
+ });
85
+ }
86
+ unlock() {
87
+ const resolve = this.#resolve;
88
+ this.#promise = void 0;
89
+ this.#resolve = void 0;
90
+ resolve?.();
91
+ }
92
+ }
93
+ class NodeSqliteIntrospector {
94
+ #db;
95
+ constructor(db) {
96
+ this.#db = db;
97
+ }
98
+ async getSchemas() {
99
+ return [];
100
+ }
101
+ async getTables(options = { withInternalKyselyTables: false }) {
102
+ let query = this.#db.selectFrom("sqlite_schema").where("type", "=", "table").where("name", "not like", "sqlite_%").select("name").$castTo();
103
+ if (!options.withInternalKyselyTables) {
104
+ query = query.where("name", "!=", kysely.DEFAULT_MIGRATION_TABLE).where("name", "!=", kysely.DEFAULT_MIGRATION_LOCK_TABLE);
105
+ }
106
+ const tables = await query.execute();
107
+ return Promise.all(tables.map(({ name }) => this.#getTableMetadata(name)));
108
+ }
109
+ async getMetadata(options) {
110
+ return {
111
+ tables: await this.getTables(options)
112
+ };
113
+ }
114
+ async #getTableMetadata(table) {
115
+ const db = this.#db;
116
+ const createSql = await db.selectFrom("sqlite_master").where("name", "=", table).select("sql").$castTo().execute();
117
+ const autoIncrementCol = createSql[0]?.sql?.split(/[\(\),]/)?.find((it) => it.toLowerCase().includes("autoincrement"))?.split(/\s+/)?.[0]?.replace(/["`]/g, "");
118
+ const columns = await db.selectFrom(
119
+ kysely.sql`pragma_table_info(${table})`.as("table_info")
120
+ ).select(["name", "type", "notnull", "dflt_value"]).execute();
121
+ return {
122
+ name: table,
123
+ columns: columns.map((col) => ({
124
+ name: col.name,
125
+ dataType: col.type,
126
+ isNullable: !col.notnull,
127
+ isAutoIncrementing: col.name === autoIncrementCol,
128
+ hasDefaultValue: col.dflt_value != null
129
+ })),
130
+ isView: true
131
+ };
132
+ }
133
+ }
134
+ class NodeSqliteQueryCompiler extends kysely.DefaultQueryCompiler {
135
+ getCurrentParameterPlaceholder() {
136
+ return "?";
137
+ }
138
+ getLeftIdentifierWrapper() {
139
+ return '"';
140
+ }
141
+ getRightIdentifierWrapper() {
142
+ return '"';
143
+ }
144
+ getAutoIncrement() {
145
+ return "autoincrement";
146
+ }
147
+ }
148
+ class NodeSqliteDialect {
149
+ #config;
150
+ constructor(config) {
151
+ this.#config = { ...config };
152
+ }
153
+ createDriver() {
154
+ return new NodeSqliteDriver(this.#config);
155
+ }
156
+ createQueryCompiler() {
157
+ return new NodeSqliteQueryCompiler();
158
+ }
159
+ createAdapter() {
160
+ return new NodeSqliteAdapter();
161
+ }
162
+ createIntrospector(db) {
163
+ return new NodeSqliteIntrospector(db);
164
+ }
165
+ }
166
+
167
+ exports.NodeSqliteAdapter = NodeSqliteAdapter;
168
+ exports.NodeSqliteDialect = NodeSqliteDialect;
169
+ exports.NodeSqliteDriver = NodeSqliteDriver;
170
+ exports.NodeSqliteIntrospector = NodeSqliteIntrospector;
171
+ exports.NodeSqliteQueryCompiler = NodeSqliteQueryCompiler;
@@ -0,0 +1,165 @@
1
+ import { CompiledQuery, DefaultQueryCompiler, DEFAULT_MIGRATION_TABLE, DEFAULT_MIGRATION_LOCK_TABLE, sql } from 'kysely';
2
+
3
+ class NodeSqliteAdapter {
4
+ get supportsCreateIfNotExists() {
5
+ return true;
6
+ }
7
+ get supportsTransactionalDdl() {
8
+ return false;
9
+ }
10
+ get supportsReturning() {
11
+ return true;
12
+ }
13
+ async acquireMigrationLock() {
14
+ }
15
+ async releaseMigrationLock() {
16
+ }
17
+ get supportsOutput() {
18
+ return true;
19
+ }
20
+ }
21
+ class NodeSqliteDriver {
22
+ #config;
23
+ #connectionMutex = new ConnectionMutex();
24
+ #db;
25
+ #connection;
26
+ constructor(config) {
27
+ this.#config = { ...config };
28
+ }
29
+ async init() {
30
+ this.#db = this.#config.database;
31
+ this.#connection = new NodeSqliteConnection(this.#db);
32
+ if (this.#config.onCreateConnection) {
33
+ await this.#config.onCreateConnection(this.#connection);
34
+ }
35
+ }
36
+ async acquireConnection() {
37
+ await this.#connectionMutex.lock();
38
+ return this.#connection;
39
+ }
40
+ async beginTransaction(connection) {
41
+ await connection.executeQuery(CompiledQuery.raw("begin"));
42
+ }
43
+ async commitTransaction(connection) {
44
+ await connection.executeQuery(CompiledQuery.raw("commit"));
45
+ }
46
+ async rollbackTransaction(connection) {
47
+ await connection.executeQuery(CompiledQuery.raw("rollback"));
48
+ }
49
+ async releaseConnection() {
50
+ this.#connectionMutex.unlock();
51
+ }
52
+ async destroy() {
53
+ this.#db?.close();
54
+ }
55
+ }
56
+ class NodeSqliteConnection {
57
+ #db;
58
+ constructor(db) {
59
+ this.#db = db;
60
+ }
61
+ executeQuery(compiledQuery) {
62
+ const { sql: sql2, parameters } = compiledQuery;
63
+ const stmt = this.#db.prepare(sql2);
64
+ const rows = stmt.all(...parameters);
65
+ return Promise.resolve({
66
+ rows
67
+ });
68
+ }
69
+ async *streamQuery() {
70
+ throw new Error("Streaming query is not supported by SQLite driver.");
71
+ }
72
+ }
73
+ class ConnectionMutex {
74
+ #promise;
75
+ #resolve;
76
+ async lock() {
77
+ while (this.#promise) {
78
+ await this.#promise;
79
+ }
80
+ this.#promise = new Promise((resolve) => {
81
+ this.#resolve = resolve;
82
+ });
83
+ }
84
+ unlock() {
85
+ const resolve = this.#resolve;
86
+ this.#promise = void 0;
87
+ this.#resolve = void 0;
88
+ resolve?.();
89
+ }
90
+ }
91
+ class NodeSqliteIntrospector {
92
+ #db;
93
+ constructor(db) {
94
+ this.#db = db;
95
+ }
96
+ async getSchemas() {
97
+ return [];
98
+ }
99
+ async getTables(options = { withInternalKyselyTables: false }) {
100
+ let query = this.#db.selectFrom("sqlite_schema").where("type", "=", "table").where("name", "not like", "sqlite_%").select("name").$castTo();
101
+ if (!options.withInternalKyselyTables) {
102
+ query = query.where("name", "!=", DEFAULT_MIGRATION_TABLE).where("name", "!=", DEFAULT_MIGRATION_LOCK_TABLE);
103
+ }
104
+ const tables = await query.execute();
105
+ return Promise.all(tables.map(({ name }) => this.#getTableMetadata(name)));
106
+ }
107
+ async getMetadata(options) {
108
+ return {
109
+ tables: await this.getTables(options)
110
+ };
111
+ }
112
+ async #getTableMetadata(table) {
113
+ const db = this.#db;
114
+ const createSql = await db.selectFrom("sqlite_master").where("name", "=", table).select("sql").$castTo().execute();
115
+ const autoIncrementCol = createSql[0]?.sql?.split(/[\(\),]/)?.find((it) => it.toLowerCase().includes("autoincrement"))?.split(/\s+/)?.[0]?.replace(/["`]/g, "");
116
+ const columns = await db.selectFrom(
117
+ sql`pragma_table_info(${table})`.as("table_info")
118
+ ).select(["name", "type", "notnull", "dflt_value"]).execute();
119
+ return {
120
+ name: table,
121
+ columns: columns.map((col) => ({
122
+ name: col.name,
123
+ dataType: col.type,
124
+ isNullable: !col.notnull,
125
+ isAutoIncrementing: col.name === autoIncrementCol,
126
+ hasDefaultValue: col.dflt_value != null
127
+ })),
128
+ isView: true
129
+ };
130
+ }
131
+ }
132
+ class NodeSqliteQueryCompiler extends DefaultQueryCompiler {
133
+ getCurrentParameterPlaceholder() {
134
+ return "?";
135
+ }
136
+ getLeftIdentifierWrapper() {
137
+ return '"';
138
+ }
139
+ getRightIdentifierWrapper() {
140
+ return '"';
141
+ }
142
+ getAutoIncrement() {
143
+ return "autoincrement";
144
+ }
145
+ }
146
+ class NodeSqliteDialect {
147
+ #config;
148
+ constructor(config) {
149
+ this.#config = { ...config };
150
+ }
151
+ createDriver() {
152
+ return new NodeSqliteDriver(this.#config);
153
+ }
154
+ createQueryCompiler() {
155
+ return new NodeSqliteQueryCompiler();
156
+ }
157
+ createAdapter() {
158
+ return new NodeSqliteAdapter();
159
+ }
160
+ createIntrospector(db) {
161
+ return new NodeSqliteIntrospector(db);
162
+ }
163
+ }
164
+
165
+ export { NodeSqliteAdapter, NodeSqliteDialect, NodeSqliteDriver, NodeSqliteIntrospector, NodeSqliteQueryCompiler };
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const vanilla = require('../shared/better-auth.Db2g2HxM.cjs');
3
+ const vanilla = require('../shared/better-auth.CmdI9lHT.cjs');
4
4
  const query = require('../shared/better-auth.Ck3n8bMC.cjs');
5
- require('../shared/better-auth.CVYnNkfw.cjs');
5
+ require('../shared/better-auth.CtToz4qL.cjs');
6
6
  require('@better-fetch/fetch');
7
7
  require('../shared/better-auth.DRmln2Nr.cjs');
8
8
  require('../shared/better-auth.B6fIklBU.cjs');
@@ -1,17 +1,17 @@
1
- import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.CkEkCniR.cjs';
1
+ import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.D8SN-Ifb.cjs';
2
2
  import * as _better_fetch_fetch from '@better-fetch/fetch';
3
3
  import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
4
4
  export * from '@better-fetch/fetch';
5
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.Bf5MnLaK.cjs';
6
- export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.Bf5MnLaK.cjs';
5
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.w-yWDZbA.cjs';
6
+ export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.w-yWDZbA.cjs';
7
7
  import * as nanostores from 'nanostores';
8
8
  import { Atom, PreinitializedWritableAtom } from 'nanostores';
9
9
  export * from 'nanostores';
10
- import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.BDR52Rf2.cjs';
10
+ import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.DTtXpZYr.cjs';
11
11
  import 'kysely';
12
12
  import 'better-call';
13
13
  import 'zod/v4';
14
- import '../shared/better-auth.CkqBZvXM.cjs';
14
+ import '../shared/better-auth.DON7H68e.cjs';
15
15
  import 'jose';
16
16
  import 'zod/v4/core';
17
17
  import 'zod';
@@ -1,17 +1,17 @@
1
- import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.BS4wi0R-.mjs';
1
+ import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.DY7-SHcY.mjs';
2
2
  import * as _better_fetch_fetch from '@better-fetch/fetch';
3
3
  import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
4
4
  export * from '@better-fetch/fetch';
5
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.BDEfedYa.mjs';
6
- export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.BDEfedYa.mjs';
5
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.BoEiBLMv.mjs';
6
+ export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.BoEiBLMv.mjs';
7
7
  import * as nanostores from 'nanostores';
8
8
  import { Atom, PreinitializedWritableAtom } from 'nanostores';
9
9
  export * from 'nanostores';
10
- import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.BDR52Rf2.mjs';
10
+ import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.DTtXpZYr.mjs';
11
11
  import 'kysely';
12
12
  import 'better-call';
13
13
  import 'zod/v4';
14
- import '../shared/better-auth.Je5iPAGQ.mjs';
14
+ import '../shared/better-auth.DdgudOLF.mjs';
15
15
  import 'jose';
16
16
  import 'zod/v4/core';
17
17
  import 'zod';
@@ -1,17 +1,17 @@
1
- import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.0SyTY9U9.js';
1
+ import { f as BASE_ERROR_CODES, h as BetterAuthPlugin, B as BetterAuthOptions } from '../shared/better-auth.DOVAUUJb.js';
2
2
  import * as _better_fetch_fetch from '@better-fetch/fetch';
3
3
  import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
4
4
  export * from '@better-fetch/fetch';
5
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth._D1fz1Yx.js';
6
- export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth._D1fz1Yx.js';
5
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../shared/better-auth.BLnYm5c_.js';
6
+ export { A as AtomListener, h as InferAdditionalFromClient, e as InferPluginsFromClient, f as InferSessionFromClient, g as InferUserFromClient, S as Store } from '../shared/better-auth.BLnYm5c_.js';
7
7
  import * as nanostores from 'nanostores';
8
8
  import { Atom, PreinitializedWritableAtom } from 'nanostores';
9
9
  export * from 'nanostores';
10
- import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.BDR52Rf2.js';
10
+ import { U as UnionToIntersection, P as PrettifyDeep } from '../shared/better-auth.DTtXpZYr.js';
11
11
  import 'kysely';
12
12
  import 'better-call';
13
13
  import 'zod/v4';
14
- import '../shared/better-auth.DnUZno9_.js';
14
+ import '../shared/better-auth.lvQ7SGjm.js';
15
15
  import 'jose';
16
16
  import 'zod/v4/core';
17
17
  import 'zod';
@@ -1,6 +1,6 @@
1
- export { c as createAuthClient } from '../shared/better-auth.BDBtglk1.mjs';
1
+ export { c as createAuthClient } from '../shared/better-auth.DVsI0DHa.mjs';
2
2
  export { u as useAuthQuery } from '../shared/better-auth.Buni1mmI.mjs';
3
- import '../shared/better-auth.CVQe8izV.mjs';
3
+ import '../shared/better-auth.CGGao4aY.mjs';
4
4
  import '@better-fetch/fetch';
5
5
  import '../shared/better-auth.CuS_eDdK.mjs';
6
6
  import '../shared/better-auth.CMQ3rA-I.mjs';
@@ -4,8 +4,8 @@ import * as nanostores from 'nanostores';
4
4
  import { atom } from 'nanostores';
5
5
  import * as _better_fetch_fetch from '@better-fetch/fetch';
6
6
  import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
7
- import { a as Prettify } from '../../shared/better-auth.BDR52Rf2.cjs';
8
- import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.CkEkCniR.cjs';
7
+ import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.cjs';
8
+ import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.D8SN-Ifb.cjs';
9
9
  import { username } from '../../plugins/username/index.cjs';
10
10
  import { Session } from 'inspector';
11
11
  import { Passkey, passkey } from '../../plugins/passkey/index.cjs';
@@ -18,10 +18,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.cjs';
18
18
  import { jwt } from '../../plugins/jwt/index.cjs';
19
19
  import { multiSession } from '../../plugins/multi-session/index.cjs';
20
20
  import { emailOTP } from '../../plugins/email-otp/index.cjs';
21
- import { S as Store } from '../../shared/better-auth.Bf5MnLaK.cjs';
21
+ import { S as Store } from '../../shared/better-auth.w-yWDZbA.cjs';
22
22
  import { sso } from '../../plugins/sso/index.cjs';
23
23
  import { oidcProvider } from '../../plugins/oidc-provider/index.cjs';
24
- import { a as apiKey } from '../../shared/better-auth.X6YzBCDT.cjs';
24
+ import { a as apiKey } from '../../shared/better-auth.D6DP-h2z.cjs';
25
25
  import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
26
26
  import { siwe } from '../../plugins/siwe/index.cjs';
27
27
  export * from '@simplewebauthn/server';
@@ -30,7 +30,7 @@ import 'zod/v4';
30
30
  import 'better-call';
31
31
  import '../../plugins/organization/access/index.cjs';
32
32
  import 'kysely';
33
- import '../../shared/better-auth.CkqBZvXM.cjs';
33
+ import '../../shared/better-auth.DON7H68e.cjs';
34
34
  import 'jose';
35
35
  import 'zod/v4/core';
36
36
  import 'zod';
@@ -4,8 +4,8 @@ import * as nanostores from 'nanostores';
4
4
  import { atom } from 'nanostores';
5
5
  import * as _better_fetch_fetch from '@better-fetch/fetch';
6
6
  import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
7
- import { a as Prettify } from '../../shared/better-auth.BDR52Rf2.mjs';
8
- import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.BS4wi0R-.mjs';
7
+ import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.mjs';
8
+ import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.DY7-SHcY.mjs';
9
9
  import { username } from '../../plugins/username/index.mjs';
10
10
  import { Session } from 'inspector';
11
11
  import { Passkey, passkey } from '../../plugins/passkey/index.mjs';
@@ -18,10 +18,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.mjs';
18
18
  import { jwt } from '../../plugins/jwt/index.mjs';
19
19
  import { multiSession } from '../../plugins/multi-session/index.mjs';
20
20
  import { emailOTP } from '../../plugins/email-otp/index.mjs';
21
- import { S as Store } from '../../shared/better-auth.BDEfedYa.mjs';
21
+ import { S as Store } from '../../shared/better-auth.BoEiBLMv.mjs';
22
22
  import { sso } from '../../plugins/sso/index.mjs';
23
23
  import { oidcProvider } from '../../plugins/oidc-provider/index.mjs';
24
- import { a as apiKey } from '../../shared/better-auth.6hiPn8Kd.mjs';
24
+ import { a as apiKey } from '../../shared/better-auth.0DssezSG.mjs';
25
25
  import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
26
26
  import { siwe } from '../../plugins/siwe/index.mjs';
27
27
  export * from '@simplewebauthn/server';
@@ -30,7 +30,7 @@ import 'zod/v4';
30
30
  import 'better-call';
31
31
  import '../../plugins/organization/access/index.mjs';
32
32
  import 'kysely';
33
- import '../../shared/better-auth.Je5iPAGQ.mjs';
33
+ import '../../shared/better-auth.DdgudOLF.mjs';
34
34
  import 'jose';
35
35
  import 'zod/v4/core';
36
36
  import 'zod';
@@ -4,8 +4,8 @@ import * as nanostores from 'nanostores';
4
4
  import { atom } from 'nanostores';
5
5
  import * as _better_fetch_fetch from '@better-fetch/fetch';
6
6
  import { BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
7
- import { a as Prettify } from '../../shared/better-auth.BDR52Rf2.js';
8
- import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.0SyTY9U9.js';
7
+ import { a as Prettify } from '../../shared/better-auth.DTtXpZYr.js';
8
+ import { J as FieldAttribute, B as BetterAuthOptions, U as User, h as BetterAuthPlugin } from '../../shared/better-auth.DOVAUUJb.js';
9
9
  import { username } from '../../plugins/username/index.js';
10
10
  import { Session } from 'inspector';
11
11
  import { Passkey, passkey } from '../../plugins/passkey/index.js';
@@ -18,10 +18,10 @@ import { genericOAuth } from '../../plugins/generic-oauth/index.js';
18
18
  import { jwt } from '../../plugins/jwt/index.js';
19
19
  import { multiSession } from '../../plugins/multi-session/index.js';
20
20
  import { emailOTP } from '../../plugins/email-otp/index.js';
21
- import { S as Store } from '../../shared/better-auth._D1fz1Yx.js';
21
+ import { S as Store } from '../../shared/better-auth.BLnYm5c_.js';
22
22
  import { sso } from '../../plugins/sso/index.js';
23
23
  import { oidcProvider } from '../../plugins/oidc-provider/index.js';
24
- import { a as apiKey } from '../../shared/better-auth.CLfudv58.js';
24
+ import { a as apiKey } from '../../shared/better-auth.C1wrCC3K.js';
25
25
  import { oneTimeToken } from '../../plugins/one-time-token/index.js';
26
26
  import { siwe } from '../../plugins/siwe/index.js';
27
27
  export * from '@simplewebauthn/server';
@@ -30,7 +30,7 @@ import 'zod/v4';
30
30
  import 'better-call';
31
31
  import '../../plugins/organization/access/index.js';
32
32
  import 'kysely';
33
- import '../../shared/better-auth.DnUZno9_.js';
33
+ import '../../shared/better-auth.lvQ7SGjm.js';
34
34
  import 'jose';
35
35
  import 'zod/v4/core';
36
36
  import 'zod';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const proxy = require('../../shared/better-auth.CVYnNkfw.cjs');
3
+ const proxy = require('../../shared/better-auth.CtToz4qL.cjs');
4
4
  const nanostores = require('nanostores');
5
5
  const react = require('react');
6
6
  require('@better-fetch/fetch');
@@ -4,14 +4,14 @@ export * from 'nanostores';
4
4
  import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.Bf5MnLaK.cjs';
8
- import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.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.w-yWDZbA.cjs';
8
+ import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.cjs';
9
9
  import { DependencyList } from 'react';
10
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CkEkCniR.cjs';
10
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.D8SN-Ifb.cjs';
11
11
  import 'better-call';
12
12
  import 'kysely';
13
13
  import 'zod/v4';
14
- import '../../shared/better-auth.CkqBZvXM.cjs';
14
+ import '../../shared/better-auth.DON7H68e.cjs';
15
15
  import 'jose';
16
16
  import 'zod/v4/core';
17
17
  import 'zod';
@@ -4,14 +4,14 @@ export * from 'nanostores';
4
4
  import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth.BDEfedYa.mjs';
8
- import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.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.BoEiBLMv.mjs';
8
+ import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.DTtXpZYr.mjs';
9
9
  import { DependencyList } from 'react';
10
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.BS4wi0R-.mjs';
10
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DY7-SHcY.mjs';
11
11
  import 'better-call';
12
12
  import 'kysely';
13
13
  import 'zod/v4';
14
- import '../../shared/better-auth.Je5iPAGQ.mjs';
14
+ import '../../shared/better-auth.DdgudOLF.mjs';
15
15
  import 'jose';
16
16
  import 'zod/v4/core';
17
17
  import 'zod';
@@ -4,14 +4,14 @@ export * from 'nanostores';
4
4
  import * as _better_fetch_fetch from '@better-fetch/fetch';
5
5
  import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, a as InferClientAPI, b as InferActions, c as InferErrorCodes } from '../../shared/better-auth._D1fz1Yx.js';
8
- import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.BDR52Rf2.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.BLnYm5c_.js';
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.0SyTY9U9.js';
10
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DOVAUUJb.js';
11
11
  import 'better-call';
12
12
  import 'kysely';
13
13
  import 'zod/v4';
14
- import '../../shared/better-auth.DnUZno9_.js';
14
+ import '../../shared/better-auth.lvQ7SGjm.js';
15
15
  import 'jose';
16
16
  import 'zod/v4/core';
17
17
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.CVQe8izV.mjs';
1
+ import { g as getClientConfig, c as createDynamicPathProxy } from '../../shared/better-auth.CGGao4aY.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.CVYnNkfw.cjs');
3
+ const proxy = require('../../shared/better-auth.CtToz4qL.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');