better-auth 1.2.9-beta.7 → 1.2.9-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 (206) hide show
  1. package/dist/adapters/drizzle-adapter/index.cjs +2 -2
  2. package/dist/adapters/drizzle-adapter/index.d.cts +2 -2
  3. package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
  4. package/dist/adapters/drizzle-adapter/index.d.ts +2 -2
  5. package/dist/adapters/drizzle-adapter/index.mjs +2 -2
  6. package/dist/adapters/index.cjs +2 -2
  7. package/dist/adapters/index.d.cts +3 -3
  8. package/dist/adapters/index.d.mts +3 -3
  9. package/dist/adapters/index.d.ts +3 -3
  10. package/dist/adapters/index.mjs +2 -2
  11. package/dist/adapters/kysely-adapter/index.cjs +3 -3
  12. package/dist/adapters/kysely-adapter/index.d.cts +2 -2
  13. package/dist/adapters/kysely-adapter/index.d.mts +2 -2
  14. package/dist/adapters/kysely-adapter/index.d.ts +2 -2
  15. package/dist/adapters/kysely-adapter/index.mjs +3 -3
  16. package/dist/adapters/memory-adapter/index.cjs +3 -3
  17. package/dist/adapters/memory-adapter/index.d.cts +2 -2
  18. package/dist/adapters/memory-adapter/index.d.mts +2 -2
  19. package/dist/adapters/memory-adapter/index.d.ts +2 -2
  20. package/dist/adapters/memory-adapter/index.mjs +3 -3
  21. package/dist/adapters/mongodb-adapter/index.cjs +1 -1
  22. package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
  23. package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
  24. package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
  25. package/dist/adapters/mongodb-adapter/index.mjs +1 -1
  26. package/dist/adapters/prisma-adapter/index.cjs +2 -2
  27. package/dist/adapters/prisma-adapter/index.d.cts +2 -2
  28. package/dist/adapters/prisma-adapter/index.d.mts +2 -2
  29. package/dist/adapters/prisma-adapter/index.d.ts +2 -2
  30. package/dist/adapters/prisma-adapter/index.mjs +2 -2
  31. package/dist/adapters/test.d.cts +2 -2
  32. package/dist/adapters/test.d.mts +2 -2
  33. package/dist/adapters/test.d.ts +2 -2
  34. package/dist/api/index.cjs +0 -10
  35. package/dist/api/index.d.cts +2 -2
  36. package/dist/api/index.d.mts +2 -2
  37. package/dist/api/index.d.ts +2 -2
  38. package/dist/api/index.mjs +2 -12
  39. package/dist/client/index.d.cts +2 -2
  40. package/dist/client/index.d.mts +2 -2
  41. package/dist/client/index.d.ts +2 -2
  42. package/dist/client/plugins/index.d.cts +3 -3
  43. package/dist/client/plugins/index.d.mts +3 -3
  44. package/dist/client/plugins/index.d.ts +3 -3
  45. package/dist/client/react/index.d.cts +8 -8
  46. package/dist/client/react/index.d.mts +8 -8
  47. package/dist/client/react/index.d.ts +8 -8
  48. package/dist/client/solid/index.d.cts +2 -2
  49. package/dist/client/solid/index.d.mts +2 -2
  50. package/dist/client/solid/index.d.ts +2 -2
  51. package/dist/client/svelte/index.d.cts +2 -2
  52. package/dist/client/svelte/index.d.mts +2 -2
  53. package/dist/client/svelte/index.d.ts +2 -2
  54. package/dist/client/vue/index.d.cts +11 -11
  55. package/dist/client/vue/index.d.mts +11 -11
  56. package/dist/client/vue/index.d.ts +11 -11
  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.cjs +5 -5
  61. package/dist/db/index.d.cts +3 -3
  62. package/dist/db/index.d.mts +3 -3
  63. package/dist/db/index.d.ts +3 -3
  64. package/dist/db/index.mjs +5 -5
  65. package/dist/index.cjs +5 -5
  66. package/dist/index.d.cts +3 -3
  67. package/dist/index.d.mts +3 -3
  68. package/dist/index.d.ts +3 -3
  69. package/dist/index.mjs +7 -7
  70. package/dist/integrations/next-js.d.cts +2 -2
  71. package/dist/integrations/next-js.d.mts +2 -2
  72. package/dist/integrations/next-js.d.ts +2 -2
  73. package/dist/integrations/next-js.mjs +2 -2
  74. package/dist/integrations/node.d.cts +2 -2
  75. package/dist/integrations/node.d.mts +2 -2
  76. package/dist/integrations/node.d.ts +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.d.cts +2 -2
  82. package/dist/integrations/svelte-kit.d.mts +2 -2
  83. package/dist/integrations/svelte-kit.d.ts +2 -2
  84. package/dist/oauth2/index.d.cts +4 -4
  85. package/dist/oauth2/index.d.mts +4 -4
  86. package/dist/oauth2/index.d.ts +4 -4
  87. package/dist/plugins/admin/index.d.cts +14 -14
  88. package/dist/plugins/admin/index.d.mts +14 -14
  89. package/dist/plugins/admin/index.d.ts +14 -14
  90. package/dist/plugins/admin/index.mjs +2 -2
  91. package/dist/plugins/anonymous/index.d.cts +2 -2
  92. package/dist/plugins/anonymous/index.d.mts +2 -2
  93. package/dist/plugins/anonymous/index.d.ts +2 -2
  94. package/dist/plugins/anonymous/index.mjs +1 -1
  95. package/dist/plugins/bearer/index.d.cts +2 -2
  96. package/dist/plugins/bearer/index.d.mts +2 -2
  97. package/dist/plugins/bearer/index.d.ts +2 -2
  98. package/dist/plugins/bearer/index.mjs +1 -1
  99. package/dist/plugins/captcha/index.d.cts +2 -2
  100. package/dist/plugins/captcha/index.d.mts +2 -2
  101. package/dist/plugins/captcha/index.d.ts +2 -2
  102. package/dist/plugins/custom-session/index.d.cts +2 -2
  103. package/dist/plugins/custom-session/index.d.mts +2 -2
  104. package/dist/plugins/custom-session/index.d.ts +2 -2
  105. package/dist/plugins/custom-session/index.mjs +1 -1
  106. package/dist/plugins/email-otp/index.d.cts +2 -2
  107. package/dist/plugins/email-otp/index.d.mts +2 -2
  108. package/dist/plugins/email-otp/index.d.ts +2 -2
  109. package/dist/plugins/email-otp/index.mjs +1 -1
  110. package/dist/plugins/generic-oauth/index.d.cts +2 -2
  111. package/dist/plugins/generic-oauth/index.d.mts +2 -2
  112. package/dist/plugins/generic-oauth/index.d.ts +2 -2
  113. package/dist/plugins/generic-oauth/index.mjs +1 -1
  114. package/dist/plugins/haveibeenpwned/index.d.cts +2 -2
  115. package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
  116. package/dist/plugins/haveibeenpwned/index.d.ts +2 -2
  117. package/dist/plugins/haveibeenpwned/index.mjs +1 -1
  118. package/dist/plugins/index.d.cts +4 -4
  119. package/dist/plugins/index.d.mts +4 -4
  120. package/dist/plugins/index.d.ts +4 -4
  121. package/dist/plugins/index.mjs +6 -6
  122. package/dist/plugins/jwt/index.d.cts +2 -2
  123. package/dist/plugins/jwt/index.d.mts +2 -2
  124. package/dist/plugins/jwt/index.d.ts +2 -2
  125. package/dist/plugins/jwt/index.mjs +1 -1
  126. package/dist/plugins/magic-link/index.mjs +1 -1
  127. package/dist/plugins/multi-session/index.d.cts +2 -2
  128. package/dist/plugins/multi-session/index.d.mts +2 -2
  129. package/dist/plugins/multi-session/index.d.ts +2 -2
  130. package/dist/plugins/multi-session/index.mjs +1 -1
  131. package/dist/plugins/oauth-proxy/index.cjs +1 -1
  132. package/dist/plugins/oauth-proxy/index.d.cts +2 -2
  133. package/dist/plugins/oauth-proxy/index.d.mts +2 -2
  134. package/dist/plugins/oauth-proxy/index.d.ts +2 -2
  135. package/dist/plugins/oauth-proxy/index.mjs +2 -2
  136. package/dist/plugins/oidc-provider/index.d.cts +7 -7
  137. package/dist/plugins/oidc-provider/index.d.mts +7 -7
  138. package/dist/plugins/oidc-provider/index.d.ts +7 -7
  139. package/dist/plugins/oidc-provider/index.mjs +2 -2
  140. package/dist/plugins/one-tap/index.mjs +1 -1
  141. package/dist/plugins/one-time-token/index.d.cts +2 -2
  142. package/dist/plugins/one-time-token/index.d.mts +2 -2
  143. package/dist/plugins/one-time-token/index.d.ts +2 -2
  144. package/dist/plugins/one-time-token/index.mjs +2 -2
  145. package/dist/plugins/open-api/index.d.cts +2 -2
  146. package/dist/plugins/open-api/index.d.mts +2 -2
  147. package/dist/plugins/open-api/index.d.ts +2 -2
  148. package/dist/plugins/open-api/index.mjs +1 -1
  149. package/dist/plugins/organization/index.d.cts +2 -2
  150. package/dist/plugins/organization/index.d.mts +2 -2
  151. package/dist/plugins/organization/index.d.ts +2 -2
  152. package/dist/plugins/organization/index.mjs +2 -2
  153. package/dist/plugins/passkey/index.cjs +7 -1
  154. package/dist/plugins/passkey/index.d.cts +11 -2
  155. package/dist/plugins/passkey/index.d.mts +11 -2
  156. package/dist/plugins/passkey/index.d.ts +11 -2
  157. package/dist/plugins/passkey/index.mjs +8 -2
  158. package/dist/plugins/phone-number/index.d.cts +2 -2
  159. package/dist/plugins/phone-number/index.d.mts +2 -2
  160. package/dist/plugins/phone-number/index.d.ts +2 -2
  161. package/dist/plugins/phone-number/index.mjs +1 -1
  162. package/dist/plugins/sso/index.d.cts +5 -5
  163. package/dist/plugins/sso/index.d.mts +5 -5
  164. package/dist/plugins/sso/index.d.ts +5 -5
  165. package/dist/plugins/sso/index.mjs +1 -1
  166. package/dist/plugins/two-factor/index.d.cts +2 -2
  167. package/dist/plugins/two-factor/index.d.mts +2 -2
  168. package/dist/plugins/two-factor/index.d.ts +2 -2
  169. package/dist/plugins/two-factor/index.mjs +1 -1
  170. package/dist/plugins/username/index.d.cts +3 -3
  171. package/dist/plugins/username/index.d.mts +3 -3
  172. package/dist/plugins/username/index.d.ts +3 -3
  173. package/dist/plugins/username/index.mjs +1 -1
  174. package/dist/shared/{better-auth.DGCyfEhG.d.ts → better-auth.2c011wSD.d.ts} +2 -8
  175. package/dist/shared/{better-auth.BxnsZrT2.mjs → better-auth.BCPr2_jK.mjs} +1 -1
  176. package/dist/shared/{better-auth.kagr8goH.d.mts → better-auth.BKWYbMZB.d.cts} +1 -1
  177. package/dist/shared/{better-auth.Ckq_Q8UM.mjs → better-auth.BcY75CuQ.mjs} +1 -1
  178. package/dist/shared/{better-auth.BTuiucL9.d.ts → better-auth.BtW19y2I.d.ts} +1 -1
  179. package/dist/shared/{better-auth.C1U2eQvC.mjs → better-auth.C6sME_6S.mjs} +1 -1
  180. package/dist/shared/{better-auth.DlrGYDwK.d.cts → better-auth.C8pzmRtu.d.cts} +1 -1
  181. package/dist/shared/{better-auth.CFB3tRhe.d.ts → better-auth.CCZppfG8.d.ts} +1 -1
  182. package/dist/shared/{better-auth.DwXCmEc7.d.cts → better-auth.CG4mEa-_.d.cts} +2 -8
  183. package/dist/shared/{better-auth.CPnVs39B.cjs → better-auth.CJVe4By6.cjs} +1 -1
  184. package/dist/shared/{better-auth.Bdaq9Lqn.mjs → better-auth.CTsDOF_S.mjs} +1 -1
  185. package/dist/shared/{better-auth.xK-w0Rah.cjs → better-auth.CfjgucJr.cjs} +1 -1
  186. package/dist/shared/{better-auth.Dqj-g-Up.d.mts → better-auth.CsQ1och7.d.mts} +2 -8
  187. package/dist/shared/{better-auth.B-orlLFy.mjs → better-auth.Cue6reJU.mjs} +1 -1
  188. package/dist/shared/{better-auth.BnnLmpgJ.cjs → better-auth.D-YyFqDB.cjs} +2 -2
  189. package/dist/shared/{better-auth.Dz9w_OUB.d.cts → better-auth.D2BKU1Zm.d.cts} +1 -1
  190. package/dist/shared/{better-auth.D6-2nUlx.mjs → better-auth.D92Ftz7J.mjs} +1 -1
  191. package/dist/shared/{better-auth.DNEJbRnE.d.mts → better-auth.DBWo439a.d.mts} +1 -1
  192. package/dist/shared/{better-auth.C3XZ-VgJ.d.cts → better-auth.DDrcxe7M.d.mts} +1 -1
  193. package/dist/shared/{better-auth.0TC26uRi.mjs → better-auth.DGdvqtd1.mjs} +1 -1
  194. package/dist/shared/{better-auth.CnWEHFr7.d.ts → better-auth.DOUgm5-2.d.ts} +1 -1
  195. package/dist/shared/{better-auth.Be27qhjB.cjs → better-auth.DiXGV1jJ.cjs} +1 -1
  196. package/dist/shared/{better-auth.Dpv9J4ny.mjs → better-auth.WByh1Fkk.mjs} +1 -1
  197. package/dist/shared/{better-auth.DrtmN2NE.d.mts → better-auth.coxs12Dg.d.mts} +1 -1
  198. package/dist/shared/{better-auth.DCB35LVD.mjs → better-auth.gs0ZuLWb.mjs} +2 -2
  199. package/dist/shared/{better-auth.CUdxApHl.cjs → better-auth.h_UKC9xe.cjs} +1 -1
  200. package/dist/social-providers/index.d.cts +1 -1
  201. package/dist/social-providers/index.d.mts +1 -1
  202. package/dist/social-providers/index.d.ts +1 -1
  203. package/dist/types/index.d.cts +3 -3
  204. package/dist/types/index.d.mts +3 -3
  205. package/dist/types/index.d.ts +3 -3
  206. package/package.json +2 -1
@@ -11,7 +11,7 @@ export { twoFactorClient } from '../../plugins/two-factor/index.js';
11
11
  import { magicLink } from '../../plugins/magic-link/index.js';
12
12
  import { phoneNumber } from '../../plugins/phone-number/index.js';
13
13
  import { anonymous } from '../../plugins/anonymous/index.js';
14
- import { a1 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.DGCyfEhG.js';
14
+ import { a1 as FieldAttribute, B as BetterAuthOptions, h as BetterAuthPlugin } from '../../shared/better-auth.2c011wSD.js';
15
15
  import { admin } from '../../plugins/admin/index.js';
16
16
  import { genericOAuth } from '../../plugins/generic-oauth/index.js';
17
17
  import { jwt } from '../../plugins/jwt/index.js';
@@ -20,14 +20,14 @@ import { emailOTP } from '../../plugins/email-otp/index.js';
20
20
  import { Store } from '../../types/index.js';
21
21
  import { sso } from '../../plugins/sso/index.js';
22
22
  import { oidcProvider } from '../../plugins/oidc-provider/index.js';
23
- import { a as apiKey } from '../../shared/better-auth.CnWEHFr7.js';
23
+ import { a as apiKey } from '../../shared/better-auth.DOUgm5-2.js';
24
24
  import { oneTimeToken } from '../../plugins/one-time-token/index.js';
25
25
  export * from '@simplewebauthn/server';
26
26
  export { global } from '@simplewebauthn/server';
27
27
  import 'zod';
28
28
  import 'better-call';
29
29
  import '../../plugins/organization/access/index.js';
30
- import '../../shared/better-auth.BTuiucL9.js';
30
+ import '../../shared/better-auth.BtW19y2I.js';
31
31
  import 'jose';
32
32
  import 'kysely';
33
33
  import 'better-sqlite3';
@@ -7,10 +7,10 @@ export * from '@better-fetch/fetch';
7
7
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
9
9
  import { DependencyList } from 'react';
10
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DwXCmEc7.cjs';
10
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CG4mEa-_.cjs';
11
11
  import 'better-call';
12
12
  import 'zod';
13
- import '../../shared/better-auth.Dz9w_OUB.cjs';
13
+ import '../../shared/better-auth.D2BKU1Zm.cjs';
14
14
  import 'jose';
15
15
  import 'kysely';
16
16
  import 'better-sqlite3';
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
66
66
  data: InferClientAPI<Option> extends {
67
67
  getSession: () => Promise<infer Res>;
68
68
  } ? Res extends {
69
- data: infer S;
70
- error: null;
71
- } | {
72
69
  data: null;
73
70
  error: {
74
71
  message?: string | undefined;
75
72
  status: number;
76
73
  statusText: string;
77
74
  };
75
+ } | {
76
+ data: infer S;
77
+ error: null;
78
78
  } ? S : Res : never;
79
79
  isPending: boolean;
80
80
  error: BetterFetchError | null;
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
84
84
  Session: NonNullable<InferClientAPI<Option> extends {
85
85
  getSession: () => Promise<infer Res>;
86
86
  } ? Res extends {
87
- data: infer S;
88
- error: null;
89
- } | {
90
87
  data: null;
91
88
  error: {
92
89
  message?: string | undefined;
93
90
  status: number;
94
91
  statusText: string;
95
92
  };
93
+ } | {
94
+ data: infer S;
95
+ error: null;
96
96
  } ? S : Res : never>;
97
97
  };
98
98
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -7,10 +7,10 @@ export * from '@better-fetch/fetch';
7
7
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
9
9
  import { DependencyList } from 'react';
10
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.Dqj-g-Up.mjs';
10
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CsQ1och7.mjs';
11
11
  import 'better-call';
12
12
  import 'zod';
13
- import '../../shared/better-auth.DNEJbRnE.mjs';
13
+ import '../../shared/better-auth.DBWo439a.mjs';
14
14
  import 'jose';
15
15
  import 'kysely';
16
16
  import 'better-sqlite3';
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
66
66
  data: InferClientAPI<Option> extends {
67
67
  getSession: () => Promise<infer Res>;
68
68
  } ? Res extends {
69
- data: infer S;
70
- error: null;
71
- } | {
72
69
  data: null;
73
70
  error: {
74
71
  message?: string | undefined;
75
72
  status: number;
76
73
  statusText: string;
77
74
  };
75
+ } | {
76
+ data: infer S;
77
+ error: null;
78
78
  } ? S : Res : never;
79
79
  isPending: boolean;
80
80
  error: BetterFetchError | null;
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
84
84
  Session: NonNullable<InferClientAPI<Option> extends {
85
85
  getSession: () => Promise<infer Res>;
86
86
  } ? Res extends {
87
- data: infer S;
88
- error: null;
89
- } | {
90
87
  data: null;
91
88
  error: {
92
89
  message?: string | undefined;
93
90
  status: number;
94
91
  statusText: string;
95
92
  };
93
+ } | {
94
+ data: infer S;
95
+ error: null;
96
96
  } ? S : Res : never>;
97
97
  };
98
98
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -7,10 +7,10 @@ export * from '@better-fetch/fetch';
7
7
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
9
9
  import { DependencyList } from 'react';
10
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DGCyfEhG.js';
10
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.2c011wSD.js';
11
11
  import 'better-call';
12
12
  import 'zod';
13
- import '../../shared/better-auth.BTuiucL9.js';
13
+ import '../../shared/better-auth.BtW19y2I.js';
14
14
  import 'jose';
15
15
  import 'kysely';
16
16
  import 'better-sqlite3';
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
66
66
  data: InferClientAPI<Option> extends {
67
67
  getSession: () => Promise<infer Res>;
68
68
  } ? Res extends {
69
- data: infer S;
70
- error: null;
71
- } | {
72
69
  data: null;
73
70
  error: {
74
71
  message?: string | undefined;
75
72
  status: number;
76
73
  statusText: string;
77
74
  };
75
+ } | {
76
+ data: infer S;
77
+ error: null;
78
78
  } ? S : Res : never;
79
79
  isPending: boolean;
80
80
  error: BetterFetchError | null;
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
84
84
  Session: NonNullable<InferClientAPI<Option> extends {
85
85
  getSession: () => Promise<infer Res>;
86
86
  } ? Res extends {
87
- data: infer S;
88
- error: null;
89
- } | {
90
87
  data: null;
91
88
  error: {
92
89
  message?: string | undefined;
93
90
  status: number;
94
91
  statusText: string;
95
92
  };
93
+ } | {
94
+ data: infer S;
95
+ error: null;
96
96
  } ? S : Res : never>;
97
97
  };
98
98
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -4,11 +4,11 @@ export * from '@better-fetch/fetch';
4
4
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
5
5
  import { Accessor } from 'solid-js';
6
6
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
7
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DwXCmEc7.cjs';
7
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CG4mEa-_.cjs';
8
8
  export * from 'nanostores';
9
9
  import 'better-call';
10
10
  import 'zod';
11
- import '../../shared/better-auth.Dz9w_OUB.cjs';
11
+ import '../../shared/better-auth.D2BKU1Zm.cjs';
12
12
  import 'jose';
13
13
  import 'kysely';
14
14
  import 'better-sqlite3';
@@ -4,11 +4,11 @@ export * from '@better-fetch/fetch';
4
4
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
5
5
  import { Accessor } from 'solid-js';
6
6
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
7
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.Dqj-g-Up.mjs';
7
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CsQ1och7.mjs';
8
8
  export * from 'nanostores';
9
9
  import 'better-call';
10
10
  import 'zod';
11
- import '../../shared/better-auth.DNEJbRnE.mjs';
11
+ import '../../shared/better-auth.DBWo439a.mjs';
12
12
  import 'jose';
13
13
  import 'kysely';
14
14
  import 'better-sqlite3';
@@ -4,11 +4,11 @@ export * from '@better-fetch/fetch';
4
4
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
5
5
  import { Accessor } from 'solid-js';
6
6
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
7
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DGCyfEhG.js';
7
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.2c011wSD.js';
8
8
  export * from 'nanostores';
9
9
  import 'better-call';
10
10
  import 'zod';
11
- import '../../shared/better-auth.BTuiucL9.js';
11
+ import '../../shared/better-auth.BtW19y2I.js';
12
12
  import 'jose';
13
13
  import 'kysely';
14
14
  import 'better-sqlite3';
@@ -6,10 +6,10 @@ import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
7
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DwXCmEc7.cjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CG4mEa-_.cjs';
10
10
  import 'better-call';
11
11
  import 'zod';
12
- import '../../shared/better-auth.Dz9w_OUB.cjs';
12
+ import '../../shared/better-auth.D2BKU1Zm.cjs';
13
13
  import 'jose';
14
14
  import 'kysely';
15
15
  import 'better-sqlite3';
@@ -6,10 +6,10 @@ import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
7
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.Dqj-g-Up.mjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CsQ1och7.mjs';
10
10
  import 'better-call';
11
11
  import 'zod';
12
- import '../../shared/better-auth.DNEJbRnE.mjs';
12
+ import '../../shared/better-auth.DBWo439a.mjs';
13
13
  import 'jose';
14
14
  import 'kysely';
15
15
  import 'better-sqlite3';
@@ -6,10 +6,10 @@ import { BetterFetchError } from '@better-fetch/fetch';
6
6
  export * from '@better-fetch/fetch';
7
7
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DGCyfEhG.js';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.2c011wSD.js';
10
10
  import 'better-call';
11
11
  import 'zod';
12
- import '../../shared/better-auth.BTuiucL9.js';
12
+ import '../../shared/better-auth.BtW19y2I.js';
13
13
  import 'jose';
14
14
  import 'kysely';
15
15
  import 'better-sqlite3';
@@ -6,10 +6,10 @@ export * from '@better-fetch/fetch';
6
6
  import { DeepReadonly, Ref } from 'vue';
7
7
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DwXCmEc7.cjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CG4mEa-_.cjs';
10
10
  import 'better-call';
11
11
  import 'zod';
12
- import '../../shared/better-auth.Dz9w_OUB.cjs';
12
+ import '../../shared/better-auth.D2BKU1Zm.cjs';
13
13
  import 'jose';
14
14
  import 'kysely';
15
15
  import 'better-sqlite3';
@@ -24,15 +24,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
24
24
  data: InferClientAPI<Option> extends {
25
25
  getSession: () => Promise<infer Res>;
26
26
  } ? Res extends {
27
+ data: infer S;
28
+ error: null;
29
+ } | {
27
30
  data: null;
28
31
  error: {
29
32
  message?: string | undefined;
30
33
  status: number;
31
34
  statusText: string;
32
35
  };
33
- } | {
34
- data: infer S;
35
- error: null;
36
36
  } ? S : Res extends Record<string, any> ? Res : never : never;
37
37
  isPending: boolean;
38
38
  isRefetching: boolean;
@@ -42,15 +42,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
42
42
  data: Ref<InferClientAPI<Option> extends {
43
43
  getSession: () => Promise<infer Res>;
44
44
  } ? Res extends {
45
+ data: infer S;
46
+ error: null;
47
+ } | {
45
48
  data: null;
46
49
  error: {
47
50
  message?: string | undefined;
48
51
  status: number;
49
52
  statusText: string;
50
53
  };
51
- } | {
52
- data: infer S;
53
- error: null;
54
54
  } ? S : Res extends Record<string, any> ? Res : never : never>;
55
55
  isPending: false;
56
56
  error: Ref<{
@@ -64,15 +64,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
64
64
  Session: NonNullable<InferClientAPI<Option> extends {
65
65
  getSession: () => Promise<infer Res>;
66
66
  } ? Res extends {
67
+ data: infer S;
68
+ error: null;
69
+ } | {
67
70
  data: null;
68
71
  error: {
69
72
  message?: string | undefined;
70
73
  status: number;
71
74
  statusText: string;
72
75
  };
73
- } | {
74
- data: infer S;
75
- error: null;
76
76
  } ? S : Res extends Record<string, any> ? Res : never : never>;
77
77
  };
78
78
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -6,10 +6,10 @@ export * from '@better-fetch/fetch';
6
6
  import { DeepReadonly, Ref } from 'vue';
7
7
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.Dqj-g-Up.mjs';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CsQ1och7.mjs';
10
10
  import 'better-call';
11
11
  import 'zod';
12
- import '../../shared/better-auth.DNEJbRnE.mjs';
12
+ import '../../shared/better-auth.DBWo439a.mjs';
13
13
  import 'jose';
14
14
  import 'kysely';
15
15
  import 'better-sqlite3';
@@ -24,15 +24,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
24
24
  data: InferClientAPI<Option> extends {
25
25
  getSession: () => Promise<infer Res>;
26
26
  } ? Res extends {
27
+ data: infer S;
28
+ error: null;
29
+ } | {
27
30
  data: null;
28
31
  error: {
29
32
  message?: string | undefined;
30
33
  status: number;
31
34
  statusText: string;
32
35
  };
33
- } | {
34
- data: infer S;
35
- error: null;
36
36
  } ? S : Res extends Record<string, any> ? Res : never : never;
37
37
  isPending: boolean;
38
38
  isRefetching: boolean;
@@ -42,15 +42,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
42
42
  data: Ref<InferClientAPI<Option> extends {
43
43
  getSession: () => Promise<infer Res>;
44
44
  } ? Res extends {
45
+ data: infer S;
46
+ error: null;
47
+ } | {
45
48
  data: null;
46
49
  error: {
47
50
  message?: string | undefined;
48
51
  status: number;
49
52
  statusText: string;
50
53
  };
51
- } | {
52
- data: infer S;
53
- error: null;
54
54
  } ? S : Res extends Record<string, any> ? Res : never : never>;
55
55
  isPending: false;
56
56
  error: Ref<{
@@ -64,15 +64,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
64
64
  Session: NonNullable<InferClientAPI<Option> extends {
65
65
  getSession: () => Promise<infer Res>;
66
66
  } ? Res extends {
67
+ data: infer S;
68
+ error: null;
69
+ } | {
67
70
  data: null;
68
71
  error: {
69
72
  message?: string | undefined;
70
73
  status: number;
71
74
  statusText: string;
72
75
  };
73
- } | {
74
- data: infer S;
75
- error: null;
76
76
  } ? S : Res extends Record<string, any> ? Res : never : never>;
77
77
  };
78
78
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -6,10 +6,10 @@ export * from '@better-fetch/fetch';
6
6
  import { DeepReadonly, Ref } from 'vue';
7
7
  import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
8
8
  import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
9
- import { f as BASE_ERROR_CODES } from '../../shared/better-auth.DGCyfEhG.js';
9
+ import { f as BASE_ERROR_CODES } from '../../shared/better-auth.2c011wSD.js';
10
10
  import 'better-call';
11
11
  import 'zod';
12
- import '../../shared/better-auth.BTuiucL9.js';
12
+ import '../../shared/better-auth.BtW19y2I.js';
13
13
  import 'jose';
14
14
  import 'kysely';
15
15
  import 'better-sqlite3';
@@ -24,15 +24,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
24
24
  data: InferClientAPI<Option> extends {
25
25
  getSession: () => Promise<infer Res>;
26
26
  } ? Res extends {
27
+ data: infer S;
28
+ error: null;
29
+ } | {
27
30
  data: null;
28
31
  error: {
29
32
  message?: string | undefined;
30
33
  status: number;
31
34
  statusText: string;
32
35
  };
33
- } | {
34
- data: infer S;
35
- error: null;
36
36
  } ? S : Res extends Record<string, any> ? Res : never : never;
37
37
  isPending: boolean;
38
38
  isRefetching: boolean;
@@ -42,15 +42,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
42
42
  data: Ref<InferClientAPI<Option> extends {
43
43
  getSession: () => Promise<infer Res>;
44
44
  } ? Res extends {
45
+ data: infer S;
46
+ error: null;
47
+ } | {
45
48
  data: null;
46
49
  error: {
47
50
  message?: string | undefined;
48
51
  status: number;
49
52
  statusText: string;
50
53
  };
51
- } | {
52
- data: infer S;
53
- error: null;
54
54
  } ? S : Res extends Record<string, any> ? Res : never : never>;
55
55
  isPending: false;
56
56
  error: Ref<{
@@ -64,15 +64,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
64
64
  Session: NonNullable<InferClientAPI<Option> extends {
65
65
  getSession: () => Promise<infer Res>;
66
66
  } ? Res extends {
67
+ data: infer S;
68
+ error: null;
69
+ } | {
67
70
  data: null;
68
71
  error: {
69
72
  message?: string | undefined;
70
73
  status: number;
71
74
  statusText: string;
72
75
  };
73
- } | {
74
- data: infer S;
75
- error: null;
76
76
  } ? S : Res extends Record<string, any> ? Res : never : never>;
77
77
  };
78
78
  $fetch: _better_fetch_fetch.BetterFetch<{
@@ -1,8 +1,8 @@
1
1
  import 'better-call';
2
- export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.DwXCmEc7.cjs';
2
+ export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.CG4mEa-_.cjs';
3
3
  import '../shared/better-auth.Bi8FQwDD.cjs';
4
4
  import 'zod';
5
- import '../shared/better-auth.Dz9w_OUB.cjs';
5
+ import '../shared/better-auth.D2BKU1Zm.cjs';
6
6
  import 'jose';
7
7
  import 'kysely';
8
8
  import 'better-sqlite3';
@@ -1,8 +1,8 @@
1
1
  import 'better-call';
2
- export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.Dqj-g-Up.mjs';
2
+ export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.CsQ1och7.mjs';
3
3
  import '../shared/better-auth.Bi8FQwDD.mjs';
4
4
  import 'zod';
5
- import '../shared/better-auth.DNEJbRnE.mjs';
5
+ import '../shared/better-auth.DBWo439a.mjs';
6
6
  import 'jose';
7
7
  import 'kysely';
8
8
  import 'better-sqlite3';
@@ -1,8 +1,8 @@
1
1
  import 'better-call';
2
- export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.DGCyfEhG.js';
2
+ export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.2c011wSD.js';
3
3
  import '../shared/better-auth.Bi8FQwDD.js';
4
4
  import 'zod';
5
- import '../shared/better-auth.BTuiucL9.js';
5
+ import '../shared/better-auth.BtW19y2I.js';
6
6
  import 'jose';
7
7
  import 'kysely';
8
8
  import 'better-sqlite3';
package/dist/db/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const getMigration = require('../shared/better-auth.BnnLmpgJ.cjs');
3
+ const getMigration = require('../shared/better-auth.D-YyFqDB.cjs');
4
4
  const getTables = require('../shared/better-auth.BEphVDyL.cjs');
5
5
  const zod = require('zod');
6
6
  const schema = require('../shared/better-auth.DcWKCjjf.cjs');
@@ -24,11 +24,11 @@ require('@noble/hashes/utils');
24
24
  require('../shared/better-auth.CYeOI8C-.cjs');
25
25
  require('../shared/better-auth.GpOOav9x.cjs');
26
26
  require('../shared/better-auth.ANpbi45u.cjs');
27
- require('../shared/better-auth.xK-w0Rah.cjs');
27
+ require('../shared/better-auth.CfjgucJr.cjs');
28
28
  require('kysely');
29
- require('../shared/better-auth.Be27qhjB.cjs');
30
- require('../shared/better-auth.CUdxApHl.cjs');
31
- require('../shared/better-auth.CPnVs39B.cjs');
29
+ require('../shared/better-auth.DiXGV1jJ.cjs');
30
+ require('../shared/better-auth.h_UKC9xe.cjs');
31
+ require('../shared/better-auth.CJVe4By6.cjs');
32
32
 
33
33
  const createFieldAttribute = (type, config) => {
34
34
  return {
@@ -1,8 +1,8 @@
1
- import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, a1 as FieldAttribute, a2 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.DwXCmEc7.cjs';
2
- export { ae as BetterAuthDbSchema, a5 as FieldAttributeConfig, ad as InferFieldsFromOptions, ac as InferFieldsFromPlugins, a9 as InferFieldsInput, aa as InferFieldsInputClient, a8 as InferFieldsOutput, a7 as InferValueType, a4 as InternalAdapter, ab as PluginFieldAttribute, ag as accountSchema, a6 as createFieldAttribute, a3 as createInternalAdapter, al as getAllFields, af as getAuthTables, au as mergeSchema, as as parseAccountInput, an as parseAccountOutput, ar as parseAdditionalUserInput, ap as parseInputData, ak as parseOutputData, at as parseSessionInput, ao as parseSessionOutput, aq as parseUserInput, am as parseUserOutput, ai as sessionSchema, ah as userSchema, aj as verificationSchema } from '../shared/better-auth.DwXCmEc7.cjs';
1
+ import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, a1 as FieldAttribute, a2 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.CG4mEa-_.cjs';
2
+ export { ae as BetterAuthDbSchema, a5 as FieldAttributeConfig, ad as InferFieldsFromOptions, ac as InferFieldsFromPlugins, a9 as InferFieldsInput, aa as InferFieldsInputClient, a8 as InferFieldsOutput, a7 as InferValueType, a4 as InternalAdapter, ab as PluginFieldAttribute, ag as accountSchema, a6 as createFieldAttribute, a3 as createInternalAdapter, al as getAllFields, af as getAuthTables, au as mergeSchema, as as parseAccountInput, an as parseAccountOutput, ar as parseAdditionalUserInput, ap as parseInputData, ak as parseOutputData, at as parseSessionInput, ao as parseSessionOutput, aq as parseUserInput, am as parseUserOutput, ai as sessionSchema, ah as userSchema, aj as verificationSchema } from '../shared/better-auth.CG4mEa-_.cjs';
3
3
  import { z } from 'zod';
4
4
  import '../shared/better-auth.Bi8FQwDD.cjs';
5
- import '../shared/better-auth.Dz9w_OUB.cjs';
5
+ import '../shared/better-auth.D2BKU1Zm.cjs';
6
6
  import 'jose';
7
7
  import 'kysely';
8
8
  import 'better-call';
@@ -1,8 +1,8 @@
1
- import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, a1 as FieldAttribute, a2 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.Dqj-g-Up.mjs';
2
- export { ae as BetterAuthDbSchema, a5 as FieldAttributeConfig, ad as InferFieldsFromOptions, ac as InferFieldsFromPlugins, a9 as InferFieldsInput, aa as InferFieldsInputClient, a8 as InferFieldsOutput, a7 as InferValueType, a4 as InternalAdapter, ab as PluginFieldAttribute, ag as accountSchema, a6 as createFieldAttribute, a3 as createInternalAdapter, al as getAllFields, af as getAuthTables, au as mergeSchema, as as parseAccountInput, an as parseAccountOutput, ar as parseAdditionalUserInput, ap as parseInputData, ak as parseOutputData, at as parseSessionInput, ao as parseSessionOutput, aq as parseUserInput, am as parseUserOutput, ai as sessionSchema, ah as userSchema, aj as verificationSchema } from '../shared/better-auth.Dqj-g-Up.mjs';
1
+ import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, a1 as FieldAttribute, a2 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.CsQ1och7.mjs';
2
+ export { ae as BetterAuthDbSchema, a5 as FieldAttributeConfig, ad as InferFieldsFromOptions, ac as InferFieldsFromPlugins, a9 as InferFieldsInput, aa as InferFieldsInputClient, a8 as InferFieldsOutput, a7 as InferValueType, a4 as InternalAdapter, ab as PluginFieldAttribute, ag as accountSchema, a6 as createFieldAttribute, a3 as createInternalAdapter, al as getAllFields, af as getAuthTables, au as mergeSchema, as as parseAccountInput, an as parseAccountOutput, ar as parseAdditionalUserInput, ap as parseInputData, ak as parseOutputData, at as parseSessionInput, ao as parseSessionOutput, aq as parseUserInput, am as parseUserOutput, ai as sessionSchema, ah as userSchema, aj as verificationSchema } from '../shared/better-auth.CsQ1och7.mjs';
3
3
  import { z } from 'zod';
4
4
  import '../shared/better-auth.Bi8FQwDD.mjs';
5
- import '../shared/better-auth.DNEJbRnE.mjs';
5
+ import '../shared/better-auth.DBWo439a.mjs';
6
6
  import 'jose';
7
7
  import 'kysely';
8
8
  import 'better-call';
@@ -1,8 +1,8 @@
1
- import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, a1 as FieldAttribute, a2 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.DGCyfEhG.js';
2
- export { ae as BetterAuthDbSchema, a5 as FieldAttributeConfig, ad as InferFieldsFromOptions, ac as InferFieldsFromPlugins, a9 as InferFieldsInput, aa as InferFieldsInputClient, a8 as InferFieldsOutput, a7 as InferValueType, a4 as InternalAdapter, ab as PluginFieldAttribute, ag as accountSchema, a6 as createFieldAttribute, a3 as createInternalAdapter, al as getAllFields, af as getAuthTables, au as mergeSchema, as as parseAccountInput, an as parseAccountOutput, ar as parseAdditionalUserInput, ap as parseInputData, ak as parseOutputData, at as parseSessionInput, ao as parseSessionOutput, aq as parseUserInput, am as parseUserOutput, ai as sessionSchema, ah as userSchema, aj as verificationSchema } from '../shared/better-auth.DGCyfEhG.js';
1
+ import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, a1 as FieldAttribute, a2 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.2c011wSD.js';
2
+ export { ae as BetterAuthDbSchema, a5 as FieldAttributeConfig, ad as InferFieldsFromOptions, ac as InferFieldsFromPlugins, a9 as InferFieldsInput, aa as InferFieldsInputClient, a8 as InferFieldsOutput, a7 as InferValueType, a4 as InternalAdapter, ab as PluginFieldAttribute, ag as accountSchema, a6 as createFieldAttribute, a3 as createInternalAdapter, al as getAllFields, af as getAuthTables, au as mergeSchema, as as parseAccountInput, an as parseAccountOutput, ar as parseAdditionalUserInput, ap as parseInputData, ak as parseOutputData, at as parseSessionInput, ao as parseSessionOutput, aq as parseUserInput, am as parseUserOutput, ai as sessionSchema, ah as userSchema, aj as verificationSchema } from '../shared/better-auth.2c011wSD.js';
3
3
  import { z } from 'zod';
4
4
  import '../shared/better-auth.Bi8FQwDD.js';
5
- import '../shared/better-auth.BTuiucL9.js';
5
+ import '../shared/better-auth.BtW19y2I.js';
6
6
  import 'jose';
7
7
  import 'kysely';
8
8
  import 'better-call';
package/dist/db/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { d as convertFromDB, b as convertToDB, c as createInternalAdapter, a as getAdapter, e as getMigrations, f as getSchema, g as getWithHooks, m as matchType } from '../shared/better-auth.DCB35LVD.mjs';
1
+ export { d as convertFromDB, b as convertToDB, c as createInternalAdapter, a as getAdapter, e as getMigrations, f as getSchema, g as getWithHooks, m as matchType } from '../shared/better-auth.gs0ZuLWb.mjs';
2
2
  export { g as getAuthTables } from '../shared/better-auth.DORkW_Ge.mjs';
3
3
  import { z } from 'zod';
4
4
  export { a as accountSchema, g as getAllFields, m as mergeSchema, i as parseAccountInput, c as parseAccountOutput, h as parseAdditionalUserInput, e as parseInputData, p as parseOutputData, j as parseSessionInput, d as parseSessionOutput, f as parseUserInput, b as parseUserOutput, s as sessionSchema, u as userSchema, v as verificationSchema } from '../shared/better-auth.Cc72UxUH.mjs';
@@ -22,11 +22,11 @@ import '@noble/hashes/utils';
22
22
  import '../shared/better-auth.B4Qoxdgc.mjs';
23
23
  import '../shared/better-auth.Cqykj82J.mjs';
24
24
  import '../shared/better-auth.DdzSJf-n.mjs';
25
- import '../shared/better-auth.B-orlLFy.mjs';
25
+ import '../shared/better-auth.Cue6reJU.mjs';
26
26
  import 'kysely';
27
- import '../shared/better-auth.Dpv9J4ny.mjs';
28
- import '../shared/better-auth.0TC26uRi.mjs';
29
- import '../shared/better-auth.Bdaq9Lqn.mjs';
27
+ import '../shared/better-auth.WByh1Fkk.mjs';
28
+ import '../shared/better-auth.DGdvqtd1.mjs';
29
+ import '../shared/better-auth.CTsDOF_S.mjs';
30
30
 
31
31
  const createFieldAttribute = (type, config) => {
32
32
  return {
package/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  const api_index = require('./api/index.cjs');
4
4
  const defu = require('defu');
5
5
  const password = require('./shared/better-auth.YUF6P-PB.cjs');
6
- const getMigration = require('./shared/better-auth.BnnLmpgJ.cjs');
6
+ const getMigration = require('./shared/better-auth.D-YyFqDB.cjs');
7
7
  const getTables = require('./shared/better-auth.BEphVDyL.cjs');
8
8
  require('zod');
9
9
  require('./shared/better-auth.DcWKCjjf.cjs');
@@ -34,11 +34,11 @@ require('@noble/hashes/utils');
34
34
  require('./shared/better-auth.C1hdVENX.cjs');
35
35
  require('./shared/better-auth.D3mtHEZg.cjs');
36
36
  require('@better-auth/utils/random');
37
- require('./shared/better-auth.xK-w0Rah.cjs');
37
+ require('./shared/better-auth.CfjgucJr.cjs');
38
38
  require('kysely');
39
- require('./shared/better-auth.Be27qhjB.cjs');
40
- require('./shared/better-auth.CUdxApHl.cjs');
41
- require('./shared/better-auth.CPnVs39B.cjs');
39
+ require('./shared/better-auth.DiXGV1jJ.cjs');
40
+ require('./shared/better-auth.h_UKC9xe.cjs');
41
+ require('./shared/better-auth.CJVe4By6.cjs');
42
42
  require('@better-auth/utils/hmac');
43
43
  require('@better-fetch/fetch');
44
44
  require('./shared/better-auth.6XyKj7DG.cjs');