better-auth 1.3.9-beta.2 → 1.3.9-beta.4

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 (272) hide show
  1. package/dist/adapters/drizzle-adapter/index.cjs +5 -6
  2. package/dist/adapters/drizzle-adapter/index.d.cts +2 -3
  3. package/dist/adapters/drizzle-adapter/index.d.mts +2 -3
  4. package/dist/adapters/drizzle-adapter/index.d.ts +2 -3
  5. package/dist/adapters/drizzle-adapter/index.mjs +5 -6
  6. package/dist/adapters/index.cjs +5 -6
  7. package/dist/adapters/index.d.cts +3 -4
  8. package/dist/adapters/index.d.mts +3 -4
  9. package/dist/adapters/index.d.ts +3 -4
  10. package/dist/adapters/index.mjs +5 -6
  11. package/dist/adapters/kysely-adapter/index.cjs +6 -7
  12. package/dist/adapters/kysely-adapter/index.d.cts +2 -3
  13. package/dist/adapters/kysely-adapter/index.d.mts +2 -3
  14. package/dist/adapters/kysely-adapter/index.d.ts +2 -3
  15. package/dist/adapters/kysely-adapter/index.mjs +6 -7
  16. package/dist/adapters/memory-adapter/index.cjs +6 -7
  17. package/dist/adapters/memory-adapter/index.d.cts +2 -3
  18. package/dist/adapters/memory-adapter/index.d.mts +2 -3
  19. package/dist/adapters/memory-adapter/index.d.ts +2 -3
  20. package/dist/adapters/memory-adapter/index.mjs +6 -7
  21. package/dist/adapters/mongodb-adapter/index.cjs +6 -7
  22. package/dist/adapters/mongodb-adapter/index.d.cts +2 -3
  23. package/dist/adapters/mongodb-adapter/index.d.mts +2 -3
  24. package/dist/adapters/mongodb-adapter/index.d.ts +2 -3
  25. package/dist/adapters/mongodb-adapter/index.mjs +6 -7
  26. package/dist/adapters/prisma-adapter/index.cjs +5 -6
  27. package/dist/adapters/prisma-adapter/index.d.cts +2 -3
  28. package/dist/adapters/prisma-adapter/index.d.mts +2 -3
  29. package/dist/adapters/prisma-adapter/index.d.ts +2 -3
  30. package/dist/adapters/prisma-adapter/index.mjs +5 -6
  31. package/dist/adapters/test.cjs +4 -5
  32. package/dist/adapters/test.d.cts +2 -3
  33. package/dist/adapters/test.d.mts +2 -3
  34. package/dist/adapters/test.d.ts +2 -3
  35. package/dist/adapters/test.mjs +4 -5
  36. package/dist/api/index.cjs +23 -6
  37. package/dist/api/index.d.cts +2 -3
  38. package/dist/api/index.d.mts +2 -3
  39. package/dist/api/index.d.ts +2 -3
  40. package/dist/api/index.mjs +24 -7
  41. package/dist/client/index.d.cts +4 -5
  42. package/dist/client/index.d.mts +4 -5
  43. package/dist/client/index.d.ts +4 -5
  44. package/dist/client/plugins/index.cjs +6 -7
  45. package/dist/client/plugins/index.d.cts +5 -5
  46. package/dist/client/plugins/index.d.mts +5 -5
  47. package/dist/client/plugins/index.d.ts +5 -5
  48. package/dist/client/plugins/index.mjs +6 -7
  49. package/dist/client/react/index.d.cts +4 -5
  50. package/dist/client/react/index.d.mts +4 -5
  51. package/dist/client/react/index.d.ts +4 -5
  52. package/dist/client/solid/index.d.cts +3 -4
  53. package/dist/client/solid/index.d.mts +3 -4
  54. package/dist/client/solid/index.d.ts +3 -4
  55. package/dist/client/svelte/index.d.cts +3 -4
  56. package/dist/client/svelte/index.d.mts +3 -4
  57. package/dist/client/svelte/index.d.ts +3 -4
  58. package/dist/client/vue/index.d.cts +3 -4
  59. package/dist/client/vue/index.d.mts +3 -4
  60. package/dist/client/vue/index.d.ts +3 -4
  61. package/dist/cookies/index.d.cts +2 -3
  62. package/dist/cookies/index.d.mts +2 -3
  63. package/dist/cookies/index.d.ts +2 -3
  64. package/dist/crypto/index.cjs +12 -13
  65. package/dist/crypto/index.mjs +4 -5
  66. package/dist/db/index.cjs +8 -9
  67. package/dist/db/index.d.cts +3 -4
  68. package/dist/db/index.d.mts +3 -4
  69. package/dist/db/index.d.ts +3 -4
  70. package/dist/db/index.mjs +8 -9
  71. package/dist/index.cjs +10 -11
  72. package/dist/index.d.cts +10 -11
  73. package/dist/index.d.mts +10 -11
  74. package/dist/index.d.ts +10 -11
  75. package/dist/index.mjs +10 -11
  76. package/dist/integrations/next-js.cjs +7 -8
  77. package/dist/integrations/next-js.d.cts +2 -3
  78. package/dist/integrations/next-js.d.mts +2 -3
  79. package/dist/integrations/next-js.d.ts +2 -3
  80. package/dist/integrations/next-js.mjs +7 -8
  81. package/dist/integrations/node.d.cts +2 -3
  82. package/dist/integrations/node.d.mts +2 -3
  83. package/dist/integrations/node.d.ts +2 -3
  84. package/dist/integrations/react-start.cjs +7 -8
  85. package/dist/integrations/react-start.d.cts +2 -3
  86. package/dist/integrations/react-start.d.mts +2 -3
  87. package/dist/integrations/react-start.d.ts +2 -3
  88. package/dist/integrations/react-start.mjs +7 -8
  89. package/dist/integrations/svelte-kit.cjs +5 -6
  90. package/dist/integrations/svelte-kit.d.cts +2 -3
  91. package/dist/integrations/svelte-kit.d.mts +2 -3
  92. package/dist/integrations/svelte-kit.d.ts +2 -3
  93. package/dist/integrations/svelte-kit.mjs +5 -6
  94. package/dist/oauth2/index.cjs +5 -6
  95. package/dist/oauth2/index.d.cts +4 -4
  96. package/dist/oauth2/index.d.mts +4 -4
  97. package/dist/oauth2/index.d.ts +4 -4
  98. package/dist/oauth2/index.mjs +5 -6
  99. package/dist/plugins/admin/index.cjs +6 -7
  100. package/dist/plugins/admin/index.d.cts +4 -5
  101. package/dist/plugins/admin/index.d.mts +4 -5
  102. package/dist/plugins/admin/index.d.ts +4 -5
  103. package/dist/plugins/admin/index.mjs +6 -7
  104. package/dist/plugins/anonymous/index.cjs +5 -6
  105. package/dist/plugins/anonymous/index.d.cts +2 -3
  106. package/dist/plugins/anonymous/index.d.mts +2 -3
  107. package/dist/plugins/anonymous/index.d.ts +2 -3
  108. package/dist/plugins/anonymous/index.mjs +5 -6
  109. package/dist/plugins/bearer/index.cjs +5 -6
  110. package/dist/plugins/bearer/index.d.cts +2 -3
  111. package/dist/plugins/bearer/index.d.mts +2 -3
  112. package/dist/plugins/bearer/index.d.ts +2 -3
  113. package/dist/plugins/bearer/index.mjs +5 -6
  114. package/dist/plugins/captcha/index.d.cts +2 -3
  115. package/dist/plugins/captcha/index.d.mts +2 -3
  116. package/dist/plugins/captcha/index.d.ts +2 -3
  117. package/dist/plugins/custom-session/index.cjs +5 -6
  118. package/dist/plugins/custom-session/index.d.cts +2 -3
  119. package/dist/plugins/custom-session/index.d.mts +2 -3
  120. package/dist/plugins/custom-session/index.d.ts +2 -3
  121. package/dist/plugins/custom-session/index.mjs +5 -6
  122. package/dist/plugins/device-authorization/index.cjs +4 -5
  123. package/dist/plugins/device-authorization/index.d.cts +2 -3
  124. package/dist/plugins/device-authorization/index.d.mts +2 -3
  125. package/dist/plugins/device-authorization/index.d.ts +2 -3
  126. package/dist/plugins/device-authorization/index.mjs +4 -5
  127. package/dist/plugins/email-otp/index.cjs +5 -6
  128. package/dist/plugins/email-otp/index.d.cts +2 -3
  129. package/dist/plugins/email-otp/index.d.mts +2 -3
  130. package/dist/plugins/email-otp/index.d.ts +2 -3
  131. package/dist/plugins/email-otp/index.mjs +5 -6
  132. package/dist/plugins/generic-oauth/index.cjs +5 -6
  133. package/dist/plugins/generic-oauth/index.d.cts +2 -3
  134. package/dist/plugins/generic-oauth/index.d.mts +2 -3
  135. package/dist/plugins/generic-oauth/index.d.ts +2 -3
  136. package/dist/plugins/generic-oauth/index.mjs +5 -6
  137. package/dist/plugins/haveibeenpwned/index.cjs +5 -6
  138. package/dist/plugins/haveibeenpwned/index.d.cts +2 -3
  139. package/dist/plugins/haveibeenpwned/index.d.mts +2 -3
  140. package/dist/plugins/haveibeenpwned/index.d.ts +2 -3
  141. package/dist/plugins/haveibeenpwned/index.mjs +5 -6
  142. package/dist/plugins/index.cjs +17 -16
  143. package/dist/plugins/index.d.cts +7 -7
  144. package/dist/plugins/index.d.mts +7 -7
  145. package/dist/plugins/index.d.ts +7 -7
  146. package/dist/plugins/index.mjs +18 -17
  147. package/dist/plugins/jwt/index.cjs +6 -7
  148. package/dist/plugins/jwt/index.d.cts +2 -2
  149. package/dist/plugins/jwt/index.d.mts +2 -2
  150. package/dist/plugins/jwt/index.d.ts +2 -2
  151. package/dist/plugins/jwt/index.mjs +7 -8
  152. package/dist/plugins/magic-link/index.cjs +5 -6
  153. package/dist/plugins/magic-link/index.mjs +5 -6
  154. package/dist/plugins/multi-session/index.cjs +5 -6
  155. package/dist/plugins/multi-session/index.d.cts +2 -3
  156. package/dist/plugins/multi-session/index.d.mts +2 -3
  157. package/dist/plugins/multi-session/index.d.ts +2 -3
  158. package/dist/plugins/multi-session/index.mjs +5 -6
  159. package/dist/plugins/oauth-proxy/index.cjs +5 -6
  160. package/dist/plugins/oauth-proxy/index.d.cts +2 -3
  161. package/dist/plugins/oauth-proxy/index.d.mts +2 -3
  162. package/dist/plugins/oauth-proxy/index.d.ts +2 -3
  163. package/dist/plugins/oauth-proxy/index.mjs +5 -6
  164. package/dist/plugins/oidc-provider/index.cjs +7 -8
  165. package/dist/plugins/oidc-provider/index.d.cts +2 -3
  166. package/dist/plugins/oidc-provider/index.d.mts +2 -3
  167. package/dist/plugins/oidc-provider/index.d.ts +2 -3
  168. package/dist/plugins/oidc-provider/index.mjs +7 -8
  169. package/dist/plugins/one-tap/index.cjs +5 -6
  170. package/dist/plugins/one-tap/index.mjs +5 -6
  171. package/dist/plugins/one-time-token/index.cjs +8 -9
  172. package/dist/plugins/one-time-token/index.d.cts +2 -3
  173. package/dist/plugins/one-time-token/index.d.mts +2 -3
  174. package/dist/plugins/one-time-token/index.d.ts +2 -3
  175. package/dist/plugins/one-time-token/index.mjs +8 -9
  176. package/dist/plugins/open-api/index.cjs +44 -13
  177. package/dist/plugins/open-api/index.d.cts +2 -3
  178. package/dist/plugins/open-api/index.d.mts +2 -3
  179. package/dist/plugins/open-api/index.d.ts +2 -3
  180. package/dist/plugins/open-api/index.mjs +44 -13
  181. package/dist/plugins/organization/index.cjs +8 -9
  182. package/dist/plugins/organization/index.d.cts +2 -3
  183. package/dist/plugins/organization/index.d.mts +2 -3
  184. package/dist/plugins/organization/index.d.ts +2 -3
  185. package/dist/plugins/organization/index.mjs +8 -9
  186. package/dist/plugins/passkey/index.cjs +5 -6
  187. package/dist/plugins/passkey/index.d.cts +2 -3
  188. package/dist/plugins/passkey/index.d.mts +2 -3
  189. package/dist/plugins/passkey/index.d.ts +2 -3
  190. package/dist/plugins/passkey/index.mjs +5 -6
  191. package/dist/plugins/phone-number/index.cjs +5 -6
  192. package/dist/plugins/phone-number/index.d.cts +2 -3
  193. package/dist/plugins/phone-number/index.d.mts +2 -3
  194. package/dist/plugins/phone-number/index.d.ts +2 -3
  195. package/dist/plugins/phone-number/index.mjs +5 -6
  196. package/dist/plugins/siwe/index.cjs +7 -8
  197. package/dist/plugins/siwe/index.d.cts +2 -3
  198. package/dist/plugins/siwe/index.d.mts +2 -3
  199. package/dist/plugins/siwe/index.d.ts +2 -3
  200. package/dist/plugins/siwe/index.mjs +7 -8
  201. package/dist/plugins/sso/index.cjs +5 -6
  202. package/dist/plugins/sso/index.d.cts +2 -3
  203. package/dist/plugins/sso/index.d.mts +2 -3
  204. package/dist/plugins/sso/index.d.ts +2 -3
  205. package/dist/plugins/sso/index.mjs +5 -6
  206. package/dist/plugins/two-factor/index.cjs +5 -6
  207. package/dist/plugins/two-factor/index.d.cts +2 -3
  208. package/dist/plugins/two-factor/index.d.mts +2 -3
  209. package/dist/plugins/two-factor/index.d.ts +2 -3
  210. package/dist/plugins/two-factor/index.mjs +5 -6
  211. package/dist/plugins/username/index.cjs +20 -6
  212. package/dist/plugins/username/index.d.cts +19 -5
  213. package/dist/plugins/username/index.d.mts +19 -5
  214. package/dist/plugins/username/index.d.ts +19 -5
  215. package/dist/plugins/username/index.mjs +20 -6
  216. package/dist/shared/{better-auth.Ck4qhtF6.mjs → better-auth.5WTE-uUO.mjs} +5 -6
  217. package/dist/shared/{better-auth.DGuotwA1.d.cts → better-auth.6crrbXrP.d.cts} +308 -8
  218. package/dist/shared/{better-auth.gF8vGD5L.mjs → better-auth.7ZeACU2v.mjs} +5 -6
  219. package/dist/shared/{better-auth.CnIVrMwK.d.ts → better-auth.B-CitgLp.d.ts} +1 -1
  220. package/dist/shared/{better-auth.CXBi-DJc.cjs → better-auth.B-GguVp5.cjs} +7 -8
  221. package/dist/shared/{better-auth.CEc4wau_.d.cts → better-auth.B-V8R4q7.d.cts} +1 -1
  222. package/dist/shared/{better-auth.mA4L_-fq.d.ts → better-auth.B5FL4Q2B.d.ts} +2 -3
  223. package/dist/shared/{better-auth.EF9Iq11i.d.ts → better-auth.BAnyvLX6.d.ts} +1 -1
  224. package/dist/shared/{better-auth.C_gHVcnc.cjs → better-auth.BEYvND1Y.cjs} +1 -1
  225. package/dist/shared/{better-auth.TZOo7890.cjs → better-auth.BVUwL7ru.cjs} +1 -1
  226. package/dist/shared/{better-auth.BjjUH-Ka.mjs → better-auth.BWl2NB1B.mjs} +1 -1
  227. package/dist/shared/{better-auth.BlqpEUaH.mjs → better-auth.BZTBs9Yy.mjs} +7 -8
  228. package/dist/shared/{better-auth.CTMmErGI.d.cts → better-auth.BaMSx6K3.d.cts} +2 -3
  229. package/dist/shared/{better-auth.DXKgbji-.mjs → better-auth.BduPtJy8.mjs} +1 -1
  230. package/dist/shared/{better-auth.Dc0nj0we.cjs → better-auth.BlsHS68J.cjs} +22 -5
  231. package/dist/shared/{better-auth.Dyb4JEgv.cjs → better-auth.C5ZbY8Lo.cjs} +6 -7
  232. package/dist/shared/{better-auth.XP_NDvic.mjs → better-auth.C7KUdiwV.mjs} +1 -1
  233. package/dist/shared/{better-auth.BvYLXwvp.cjs → better-auth.CMwM5enp.cjs} +1 -0
  234. package/dist/shared/{better-auth.DtZRMuXL.cjs → better-auth.CRFFLEbh.cjs} +6 -7
  235. package/dist/shared/{better-auth.B3CPLvGC.mjs → better-auth.CSEecXfV.mjs} +22 -5
  236. package/dist/shared/{better-auth.DTV9hYzN.cjs → better-auth.CdLjcJ6z.cjs} +7 -8
  237. package/dist/shared/{better-auth.B8UjXTUa.mjs → better-auth.CtB1M_c7.mjs} +1 -1
  238. package/dist/shared/{better-auth.DFJOJkY1.cjs → better-auth.CtgUZb45.cjs} +7 -8
  239. package/dist/shared/{better-auth.3K3VNUn3.mjs → better-auth.D9PzlwY_.mjs} +6 -7
  240. package/dist/shared/{better-auth.CY7-Inqt.mjs → better-auth.DDuRjwGK.mjs} +1 -0
  241. package/dist/shared/{better-auth.B1yOWNP8.cjs → better-auth.DEKJQy4E.cjs} +1 -1
  242. package/dist/shared/{better-auth.DAUyNtx1.mjs → better-auth.DLsqH9Hw.mjs} +7 -8
  243. package/dist/shared/{better-auth.BuBqXPUp.mjs → better-auth.DOXaXTC6.mjs} +4 -5
  244. package/dist/shared/{better-auth.BWzwHY8m.cjs → better-auth.DPsIzckY.cjs} +5 -6
  245. package/dist/shared/{better-auth.DDDKwecE.mjs → better-auth.DQ6bmgix.mjs} +7 -8
  246. package/dist/shared/{better-auth.ChqAn6N0.d.mts → better-auth.DQLetyog.d.cts} +1 -1
  247. package/dist/shared/{better-auth.ZUo2dMO3.d.mts → better-auth.DR57bygo.d.mts} +2 -3
  248. package/dist/shared/{better-auth.fBcUR9cm.mjs → better-auth.DV0Lly8-.mjs} +6 -7
  249. package/dist/shared/{better-auth.WOu5GuAp.d.ts → better-auth.DtrrQDoO.d.ts} +5 -5
  250. package/dist/shared/{better-auth.aZPAhP-f.cjs → better-auth.QqWdVDmR.cjs} +5 -6
  251. package/dist/shared/{better-auth.DU2vRHKI.d.ts → better-auth.S3lnSz8Y.d.ts} +308 -8
  252. package/dist/shared/{better-auth.C9jfJUDF.cjs → better-auth.Szg-8evr.cjs} +4 -5
  253. package/dist/shared/{better-auth.llWU4_4y.d.cts → better-auth.UcasWcPe.d.cts} +5 -5
  254. package/dist/shared/{better-auth.YWGwdADP.cjs → better-auth.WyvofoOW.cjs} +1 -1
  255. package/dist/shared/{better-auth.f-bUldRg.d.mts → better-auth.YK5LQtFt.d.mts} +308 -8
  256. package/dist/shared/{better-auth.Df1_Wu_1.d.mts → better-auth.eYki6XKk.d.mts} +5 -5
  257. package/dist/shared/{better-auth.BZiffGTH.d.mts → better-auth.g9DlWOx7.d.mts} +1 -1
  258. package/dist/shared/{better-auth.D9BrVtBy.d.cts → better-auth.km36dqos.d.mts} +1 -1
  259. package/dist/social-providers/index.cjs +5 -6
  260. package/dist/social-providers/index.d.cts +1 -2
  261. package/dist/social-providers/index.d.mts +1 -2
  262. package/dist/social-providers/index.d.ts +1 -2
  263. package/dist/social-providers/index.mjs +5 -6
  264. package/dist/test-utils/index.cjs +13 -14
  265. package/dist/test-utils/index.d.cts +258 -4
  266. package/dist/test-utils/index.d.mts +258 -4
  267. package/dist/test-utils/index.d.ts +258 -4
  268. package/dist/test-utils/index.mjs +13 -14
  269. package/dist/types/index.d.cts +3 -4
  270. package/dist/types/index.d.mts +3 -4
  271. package/dist/types/index.d.ts +3 -4
  272. package/package.json +10 -5
@@ -1,19 +1,18 @@
1
1
  import * as nanostores from 'nanostores';
2
2
  import * as _better_fetch_fetch from '@better-fetch/fetch';
3
3
  import { SuccessContext } from '@better-fetch/fetch';
4
- import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, d as InferRoute, c as InferErrorCodes } from '../shared/better-auth.EF9Iq11i.js';
5
- import { B as BetterAuthOptions, U as User, l as InferAPI, a as Adapter, m as AdditionalSessionFieldsOutput, g as Auth, n as AdditionalUserFieldsOutput, o as InferFieldsFromPlugins, p as InferFieldsFromOptions, q as AdditionalUserFieldsInput, r as BetterAuthPlugin, h as AuthContext, s as InferPluginTypes, t as InferPluginErrorCodes, F as FilterActions, S as Session, u as setCookieToHeader } from '../shared/better-auth.DU2vRHKI.js';
4
+ import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, d as InferRoute, c as InferErrorCodes } from '../shared/better-auth.BAnyvLX6.js';
5
+ import { B as BetterAuthOptions, U as User, l as InferAPI, a as Adapter, m as AdditionalSessionFieldsOutput, g as Auth, n as AdditionalUserFieldsOutput, o as InferFieldsFromPlugins, p as InferFieldsFromOptions, q as AdditionalUserFieldsInput, r as BetterAuthPlugin, h as AuthContext, s as InferPluginTypes, t as InferPluginErrorCodes, F as FilterActions, S as Session, u as setCookieToHeader } from '../shared/better-auth.S3lnSz8Y.js';
6
6
  import * as better_call from 'better-call';
7
7
  import { U as UnionToIntersection, S as StripEmptyObjects, a as Prettify } from '../shared/better-auth.DTtXpZYr.js';
8
8
  import * as zod_v4_core from 'zod/v4/core';
9
- import { O as OAuth2Tokens, a as OAuth2UserInfo } from '../shared/better-auth.mA4L_-fq.js';
9
+ import { O as OAuth2Tokens, a as OAuth2UserInfo } from '../shared/better-auth.B5FL4Q2B.js';
10
10
  import * as zod from 'zod';
11
11
  import { Kysely } from 'kysely';
12
12
  import 'zod/v4';
13
13
  import 'better-sqlite3';
14
14
  import 'bun:sqlite';
15
15
  import 'node:sqlite';
16
- import 'jose';
17
16
 
18
17
  declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C extends ClientOptions>(options?: O, config?: {
19
18
  clientOptions?: C;
@@ -1202,6 +1201,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
1202
1201
  };
1203
1202
  };
1204
1203
  };
1204
+ "422": {
1205
+ description: string;
1206
+ content: {
1207
+ "application/json": {
1208
+ schema: {
1209
+ type: "object";
1210
+ properties: {
1211
+ message: {
1212
+ type: string;
1213
+ };
1214
+ };
1215
+ };
1216
+ };
1217
+ };
1218
+ };
1205
1219
  };
1206
1220
  };
1207
1221
  };
@@ -1429,6 +1443,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
1429
1443
  };
1430
1444
  };
1431
1445
  };
1446
+ "422": {
1447
+ description: string;
1448
+ content: {
1449
+ "application/json": {
1450
+ schema: {
1451
+ type: "object";
1452
+ properties: {
1453
+ message: {
1454
+ type: string;
1455
+ };
1456
+ };
1457
+ };
1458
+ };
1459
+ };
1460
+ };
1432
1461
  };
1433
1462
  };
1434
1463
  };
@@ -1793,6 +1822,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
1793
1822
  };
1794
1823
  };
1795
1824
  };
1825
+ "422": {
1826
+ description: string;
1827
+ content: {
1828
+ "application/json": {
1829
+ schema: {
1830
+ type: "object";
1831
+ properties: {
1832
+ message: {
1833
+ type: string;
1834
+ };
1835
+ };
1836
+ };
1837
+ };
1838
+ };
1839
+ };
1796
1840
  };
1797
1841
  };
1798
1842
  };
@@ -2205,6 +2249,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
2205
2249
  };
2206
2250
  };
2207
2251
  };
2252
+ "422": {
2253
+ description: string;
2254
+ content: {
2255
+ "application/json": {
2256
+ schema: {
2257
+ type: "object";
2258
+ properties: {
2259
+ message: {
2260
+ type: string;
2261
+ };
2262
+ };
2263
+ };
2264
+ };
2265
+ };
2266
+ };
2208
2267
  };
2209
2268
  };
2210
2269
  };
@@ -2821,6 +2880,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
2821
2880
  };
2822
2881
  };
2823
2882
  };
2883
+ "422": {
2884
+ description: string;
2885
+ content: {
2886
+ "application/json": {
2887
+ schema: {
2888
+ type: "object";
2889
+ properties: {
2890
+ message: {
2891
+ type: string;
2892
+ };
2893
+ };
2894
+ };
2895
+ };
2896
+ };
2897
+ };
2824
2898
  };
2825
2899
  };
2826
2900
  };
@@ -6517,6 +6591,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
6517
6591
  };
6518
6592
  };
6519
6593
  };
6594
+ "422": {
6595
+ description: string;
6596
+ content: {
6597
+ "application/json": {
6598
+ schema: {
6599
+ type: "object";
6600
+ properties: {
6601
+ message: {
6602
+ type: string;
6603
+ };
6604
+ };
6605
+ };
6606
+ };
6607
+ };
6608
+ };
6520
6609
  };
6521
6610
  };
6522
6611
  };
@@ -7133,6 +7222,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
7133
7222
  };
7134
7223
  };
7135
7224
  };
7225
+ "422": {
7226
+ description: string;
7227
+ content: {
7228
+ "application/json": {
7229
+ schema: {
7230
+ type: "object";
7231
+ properties: {
7232
+ message: {
7233
+ type: string;
7234
+ };
7235
+ };
7236
+ };
7237
+ };
7238
+ };
7239
+ };
7136
7240
  };
7137
7241
  };
7138
7242
  };
@@ -9518,6 +9622,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
9518
9622
  };
9519
9623
  };
9520
9624
  };
9625
+ "422": {
9626
+ description: string;
9627
+ content: {
9628
+ "application/json": {
9629
+ schema: {
9630
+ type: "object";
9631
+ properties: {
9632
+ message: {
9633
+ type: string;
9634
+ };
9635
+ };
9636
+ };
9637
+ };
9638
+ };
9639
+ };
9521
9640
  };
9522
9641
  };
9523
9642
  };
@@ -10134,6 +10253,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
10134
10253
  };
10135
10254
  };
10136
10255
  };
10256
+ "422": {
10257
+ description: string;
10258
+ content: {
10259
+ "application/json": {
10260
+ schema: {
10261
+ type: "object";
10262
+ properties: {
10263
+ message: {
10264
+ type: string;
10265
+ };
10266
+ };
10267
+ };
10268
+ };
10269
+ };
10270
+ };
10137
10271
  };
10138
10272
  };
10139
10273
  };
@@ -12541,6 +12675,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
12541
12675
  };
12542
12676
  };
12543
12677
  };
12678
+ "422": {
12679
+ description: string;
12680
+ content: {
12681
+ "application/json": {
12682
+ schema: {
12683
+ type: "object";
12684
+ properties: {
12685
+ message: {
12686
+ type: string;
12687
+ };
12688
+ };
12689
+ };
12690
+ };
12691
+ };
12692
+ };
12544
12693
  };
12545
12694
  };
12546
12695
  };
@@ -13157,6 +13306,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
13157
13306
  };
13158
13307
  };
13159
13308
  };
13309
+ "422": {
13310
+ description: string;
13311
+ content: {
13312
+ "application/json": {
13313
+ schema: {
13314
+ type: "object";
13315
+ properties: {
13316
+ message: {
13317
+ type: string;
13318
+ };
13319
+ };
13320
+ };
13321
+ };
13322
+ };
13323
+ };
13160
13324
  };
13161
13325
  };
13162
13326
  };
@@ -15542,6 +15706,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
15542
15706
  };
15543
15707
  };
15544
15708
  };
15709
+ "422": {
15710
+ description: string;
15711
+ content: {
15712
+ "application/json": {
15713
+ schema: {
15714
+ type: "object";
15715
+ properties: {
15716
+ message: {
15717
+ type: string;
15718
+ };
15719
+ };
15720
+ };
15721
+ };
15722
+ };
15723
+ };
15545
15724
  };
15546
15725
  };
15547
15726
  };
@@ -16158,6 +16337,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
16158
16337
  };
16159
16338
  };
16160
16339
  };
16340
+ "422": {
16341
+ description: string;
16342
+ content: {
16343
+ "application/json": {
16344
+ schema: {
16345
+ type: "object";
16346
+ properties: {
16347
+ message: {
16348
+ type: string;
16349
+ };
16350
+ };
16351
+ };
16352
+ };
16353
+ };
16354
+ };
16161
16355
  };
16162
16356
  };
16163
16357
  };
@@ -18631,6 +18825,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
18631
18825
  };
18632
18826
  };
18633
18827
  };
18828
+ "422": {
18829
+ description: string;
18830
+ content: {
18831
+ "application/json": {
18832
+ schema: {
18833
+ type: "object";
18834
+ properties: {
18835
+ message: {
18836
+ type: string;
18837
+ };
18838
+ };
18839
+ };
18840
+ };
18841
+ };
18842
+ };
18634
18843
  };
18635
18844
  };
18636
18845
  };
@@ -19247,6 +19456,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
19247
19456
  };
19248
19457
  };
19249
19458
  };
19459
+ "422": {
19460
+ description: string;
19461
+ content: {
19462
+ "application/json": {
19463
+ schema: {
19464
+ type: "object";
19465
+ properties: {
19466
+ message: {
19467
+ type: string;
19468
+ };
19469
+ };
19470
+ };
19471
+ };
19472
+ };
19473
+ };
19250
19474
  };
19251
19475
  };
19252
19476
  };
@@ -21632,6 +21856,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
21632
21856
  };
21633
21857
  };
21634
21858
  };
21859
+ "422": {
21860
+ description: string;
21861
+ content: {
21862
+ "application/json": {
21863
+ schema: {
21864
+ type: "object";
21865
+ properties: {
21866
+ message: {
21867
+ type: string;
21868
+ };
21869
+ };
21870
+ };
21871
+ };
21872
+ };
21873
+ };
21635
21874
  };
21636
21875
  };
21637
21876
  };
@@ -22248,6 +22487,21 @@ declare function getTestInstanceMemory<O extends Partial<BetterAuthOptions>, C e
22248
22487
  };
22249
22488
  };
22250
22489
  };
22490
+ "422": {
22491
+ description: string;
22492
+ content: {
22493
+ "application/json": {
22494
+ schema: {
22495
+ type: "object";
22496
+ properties: {
22497
+ message: {
22498
+ type: string;
22499
+ };
22500
+ };
22501
+ };
22502
+ };
22503
+ };
22504
+ };
22251
22505
  };
22252
22506
  };
22253
22507
  };
@@ -1,7 +1,7 @@
1
1
  import { afterAll } from 'vitest';
2
- import { b as betterAuth } from '../shared/better-auth.DAUyNtx1.mjs';
2
+ import { b as betterAuth } from '../shared/better-auth.DLsqH9Hw.mjs';
3
3
  import { c as createAuthClient } from '../shared/better-auth.DtbDmaRJ.mjs';
4
- import { e as getMigrations, a as getAdapter } from '../shared/better-auth.fBcUR9cm.mjs';
4
+ import { e as getMigrations, a as getAdapter } from '../shared/better-auth.DV0Lly8-.mjs';
5
5
  import '../shared/better-auth.CMQ3rA-I.mjs';
6
6
  import '@better-auth/utils/base64';
7
7
  import '@better-auth/utils/hmac';
@@ -21,7 +21,7 @@ import require$$0$6 from 'path';
21
21
  import require$$0$5 from 'stream';
22
22
  import require$$1$2 from 'string_decoder';
23
23
  import { MongoClient } from 'mongodb';
24
- import { m as mongodbAdapter } from '../shared/better-auth.XP_NDvic.mjs';
24
+ import { m as mongodbAdapter } from '../shared/better-auth.C7KUdiwV.mjs';
25
25
  import require$$0$8 from 'process';
26
26
  import require$$1$3 from 'timers';
27
27
  import require$$0$7 from 'buffer';
@@ -30,20 +30,19 @@ import require$$0$a from 'url';
30
30
  import 'better-call';
31
31
  import 'zod/v4';
32
32
  import '../shared/better-auth.DV5EHeYG.mjs';
33
- import '../shared/better-auth.B3CPLvGC.mjs';
33
+ import '../shared/better-auth.CSEecXfV.mjs';
34
34
  import '../shared/better-auth.Dcv8PS7T.mjs';
35
- import '../shared/better-auth.Ck4qhtF6.mjs';
35
+ import '../shared/better-auth.5WTE-uUO.mjs';
36
36
  import '../plugins/organization/access/index.mjs';
37
37
  import '@better-auth/utils/random';
38
38
  import '@better-auth/utils/hash';
39
- import '@noble/ciphers/chacha';
40
- import '@noble/ciphers/utils';
41
- import '@noble/ciphers/webcrypto';
39
+ import '@noble/ciphers/chacha.js';
40
+ import '@noble/ciphers/utils.js';
42
41
  import 'jose';
43
- import '@noble/hashes/scrypt';
42
+ import '@noble/hashes/scrypt.js';
44
43
  import '@better-auth/utils';
45
44
  import '@better-auth/utils/hex';
46
- import '@noble/hashes/utils';
45
+ import '@noble/hashes/utils.js';
47
46
  import '../shared/better-auth.B4Qoxdgc.mjs';
48
47
  import '@better-auth/utils/otp';
49
48
  import { bearer } from '../plugins/bearer/index.mjs';
@@ -51,7 +50,7 @@ import '../plugins/admin/access/index.mjs';
51
50
  import '@better-fetch/fetch';
52
51
  import 'zod';
53
52
  import '../plugins/custom-session/index.mjs';
54
- import '@noble/hashes/sha3';
53
+ import '@noble/hashes/sha3.js';
55
54
  import '../plugins/device-authorization/index.mjs';
56
55
  import '../api/index.mjs';
57
56
  import '../shared/better-auth.BZZKN1g7.mjs';
@@ -64,14 +63,14 @@ import '../shared/better-auth.BUPPRXfK.mjs';
64
63
  import 'defu';
65
64
  import '../shared/better-auth.B_PTVODM.mjs';
66
65
  import '../shared/better-auth.YwDQhoPc.mjs';
67
- import '../shared/better-auth.DXKgbji-.mjs';
68
- import '../shared/better-auth.BuBqXPUp.mjs';
66
+ import '../shared/better-auth.BduPtJy8.mjs';
67
+ import '../shared/better-auth.DOXaXTC6.mjs';
69
68
  import '../shared/better-auth.D7Ni8r_z.mjs';
70
69
  import 'nanostores';
71
70
  import '../shared/better-auth.CkGsgrvv.mjs';
72
71
  import '../shared/better-auth.ffWeg50w.mjs';
73
72
  import '../shared/better-auth.D-2CmEwz.mjs';
74
- import '../shared/better-auth.gF8vGD5L.mjs';
73
+ import '../shared/better-auth.7ZeACU2v.mjs';
75
74
  import '../plugins/access/index.mjs';
76
75
  import '../shared/better-auth.DQI8AD7d.mjs';
77
76
  import '../shared/better-auth.BpA03GIs.mjs';
@@ -1,11 +1,10 @@
1
- export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, m as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, n as AdditionalUserFieldsOutput, h as AuthContext, v as AuthPluginSchema, B as BetterAuthOptions, r as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, l as InferAPI, I as InferOptionSchema, t as InferPluginErrorCodes, s as InferPluginTypes, j as InferSession, $ as InferSessionAPI, i as InferUser, M as Models, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, P as init } from '../shared/better-auth.DGuotwA1.cjs';
2
- 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.CEc4wau_.cjs';
1
+ export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, m as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, n as AdditionalUserFieldsOutput, h as AuthContext, v as AuthPluginSchema, B as BetterAuthOptions, r as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, l as InferAPI, I as InferOptionSchema, t as InferPluginErrorCodes, s as InferPluginTypes, j as InferSession, $ as InferSessionAPI, i as InferUser, M as Models, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, P as init } from '../shared/better-auth.6crrbXrP.cjs';
2
+ 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.B-V8R4q7.cjs';
3
3
  import 'kysely';
4
4
  import 'better-call';
5
5
  import 'zod/v4';
6
6
  import '../shared/better-auth.DTtXpZYr.cjs';
7
- import '../shared/better-auth.CTMmErGI.cjs';
8
- import 'jose';
7
+ import '../shared/better-auth.BaMSx6K3.cjs';
9
8
  import 'zod/v4/core';
10
9
  import 'zod';
11
10
  import 'better-sqlite3';
@@ -1,11 +1,10 @@
1
- export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, m as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, n as AdditionalUserFieldsOutput, h as AuthContext, v as AuthPluginSchema, B as BetterAuthOptions, r as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, l as InferAPI, I as InferOptionSchema, t as InferPluginErrorCodes, s as InferPluginTypes, j as InferSession, $ as InferSessionAPI, i as InferUser, M as Models, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, P as init } from '../shared/better-auth.f-bUldRg.mjs';
2
- 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.BZiffGTH.mjs';
1
+ export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, m as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, n as AdditionalUserFieldsOutput, h as AuthContext, v as AuthPluginSchema, B as BetterAuthOptions, r as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, l as InferAPI, I as InferOptionSchema, t as InferPluginErrorCodes, s as InferPluginTypes, j as InferSession, $ as InferSessionAPI, i as InferUser, M as Models, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, P as init } from '../shared/better-auth.YK5LQtFt.mjs';
2
+ 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.g9DlWOx7.mjs';
3
3
  import 'kysely';
4
4
  import 'better-call';
5
5
  import 'zod/v4';
6
6
  import '../shared/better-auth.DTtXpZYr.mjs';
7
- import '../shared/better-auth.ZUo2dMO3.mjs';
8
- import 'jose';
7
+ import '../shared/better-auth.DR57bygo.mjs';
9
8
  import 'zod/v4/core';
10
9
  import 'zod';
11
10
  import 'better-sqlite3';
@@ -1,11 +1,10 @@
1
- export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, m as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, n as AdditionalUserFieldsOutput, h as AuthContext, v as AuthPluginSchema, B as BetterAuthOptions, r as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, l as InferAPI, I as InferOptionSchema, t as InferPluginErrorCodes, s as InferPluginTypes, j as InferSession, $ as InferSessionAPI, i as InferUser, M as Models, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, P as init } from '../shared/better-auth.DU2vRHKI.js';
2
- 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.EF9Iq11i.js';
1
+ export { O as Account, a as Adapter, Y as AdapterInstance, X as AdapterSchemaCreation, N as AdditionalSessionFieldsInput, m as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, n as AdditionalUserFieldsOutput, h as AuthContext, v as AuthPluginSchema, B as BetterAuthOptions, r as BetterAuthPlugin, F as FilterActions, _ as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, l as InferAPI, I as InferOptionSchema, t as InferPluginErrorCodes, s as InferPluginTypes, j as InferSession, $ as InferSessionAPI, i as InferUser, M as Models, R as RateLimit, Z as SecondaryStorage, S as Session, U as User, V as Verification, Q as Where, P as init } from '../shared/better-auth.S3lnSz8Y.js';
2
+ 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.BAnyvLX6.js';
3
3
  import 'kysely';
4
4
  import 'better-call';
5
5
  import 'zod/v4';
6
6
  import '../shared/better-auth.DTtXpZYr.js';
7
- import '../shared/better-auth.mA4L_-fq.js';
8
- import 'jose';
7
+ import '../shared/better-auth.B5FL4Q2B.js';
9
8
  import 'zod/v4/core';
10
9
  import 'zod';
11
10
  import 'better-sqlite3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-auth",
3
- "version": "1.3.9-beta.2",
3
+ "version": "1.3.9-beta.4",
4
4
  "description": "The most comprehensive authentication library for TypeScript.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -687,22 +687,26 @@
687
687
  "dependencies": {
688
688
  "@better-auth/utils": "0.2.6",
689
689
  "@better-fetch/fetch": "^1.1.18",
690
- "@noble/ciphers": "^0.6.0",
691
- "@noble/hashes": "^1.8.0",
690
+ "@noble/ciphers": "^2.0.0",
691
+ "@noble/hashes": "^2.0.0",
692
692
  "@simplewebauthn/browser": "^13.1.2",
693
693
  "@simplewebauthn/server": "^13.1.2",
694
- "better-call": "1.0.16",
694
+ "better-call": "1.0.18",
695
695
  "defu": "^6.1.4",
696
- "jose": "^5.10.0",
696
+ "jose": "^6.1.0",
697
697
  "kysely": "^0.28.5",
698
698
  "nanostores": "^0.11.4",
699
699
  "zod": "^4.1.5"
700
700
  },
701
701
  "peerDependencies": {
702
+ "@lynx-js/react": "*",
702
703
  "react": "^18.0.0 || ^19.0.0",
703
704
  "react-dom": "^18.0.0 || ^19.0.0"
704
705
  },
705
706
  "peerDependenciesMeta": {
707
+ "@lynx-js/react": {
708
+ "optional": true
709
+ },
706
710
  "react": {
707
711
  "optional": true
708
712
  },
@@ -711,6 +715,7 @@
711
715
  }
712
716
  },
713
717
  "devDependencies": {
718
+ "@lynx-js/react": "^0.112.5",
714
719
  "@prisma/client": "^5.22.0",
715
720
  "@tanstack/react-start": "^1.131.3",
716
721
  "@types/better-sqlite3": "^7.6.13",