better-auth 1.2.6-beta.7 → 1.2.7-beta.1

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 (273) hide show
  1. package/dist/adapters/drizzle-adapter/index.cjs +186 -249
  2. package/dist/adapters/drizzle-adapter/index.d.cts +11 -49
  3. package/dist/adapters/drizzle-adapter/index.d.mts +11 -49
  4. package/dist/adapters/drizzle-adapter/index.d.ts +11 -49
  5. package/dist/adapters/drizzle-adapter/index.mjs +186 -249
  6. package/dist/adapters/index.cjs +26 -0
  7. package/dist/adapters/index.d.cts +17 -0
  8. package/dist/adapters/index.d.mts +17 -0
  9. package/dist/adapters/index.d.ts +17 -0
  10. package/dist/adapters/index.mjs +20 -0
  11. package/dist/adapters/kysely-adapter/index.cjs +7 -7
  12. package/dist/adapters/kysely-adapter/index.d.cts +17 -49
  13. package/dist/adapters/kysely-adapter/index.d.mts +17 -49
  14. package/dist/adapters/kysely-adapter/index.d.ts +17 -49
  15. package/dist/adapters/kysely-adapter/index.mjs +8 -8
  16. package/dist/adapters/memory-adapter/index.cjs +7 -8
  17. package/dist/adapters/memory-adapter/index.d.cts +9 -49
  18. package/dist/adapters/memory-adapter/index.d.mts +9 -49
  19. package/dist/adapters/memory-adapter/index.d.ts +9 -49
  20. package/dist/adapters/memory-adapter/index.mjs +8 -9
  21. package/dist/adapters/mongodb-adapter/index.cjs +2 -2
  22. package/dist/adapters/mongodb-adapter/index.d.cts +4 -4
  23. package/dist/adapters/mongodb-adapter/index.d.mts +4 -4
  24. package/dist/adapters/mongodb-adapter/index.d.ts +4 -4
  25. package/dist/adapters/mongodb-adapter/index.mjs +3 -3
  26. package/dist/adapters/prisma-adapter/index.cjs +130 -203
  27. package/dist/adapters/prisma-adapter/index.d.cts +17 -49
  28. package/dist/adapters/prisma-adapter/index.d.mts +17 -49
  29. package/dist/adapters/prisma-adapter/index.d.ts +17 -49
  30. package/dist/adapters/prisma-adapter/index.mjs +131 -204
  31. package/dist/adapters/test.cjs +710 -377
  32. package/dist/adapters/test.d.cts +64 -5
  33. package/dist/adapters/test.d.mts +64 -5
  34. package/dist/adapters/test.d.ts +64 -5
  35. package/dist/adapters/test.mjs +712 -380
  36. package/dist/api/index.cjs +61 -25
  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 +63 -27
  41. package/dist/client/index.d.cts +3 -3
  42. package/dist/client/index.d.mts +3 -3
  43. package/dist/client/index.d.ts +3 -3
  44. package/dist/client/plugins/index.cjs +13 -15
  45. package/dist/client/plugins/index.d.cts +80 -19
  46. package/dist/client/plugins/index.d.mts +80 -19
  47. package/dist/client/plugins/index.d.ts +80 -19
  48. package/dist/client/plugins/index.mjs +13 -16
  49. package/dist/client/react/index.cjs +4 -4
  50. package/dist/client/react/index.d.cts +3 -3
  51. package/dist/client/react/index.d.mts +3 -3
  52. package/dist/client/react/index.d.ts +3 -3
  53. package/dist/client/solid/index.d.cts +3 -3
  54. package/dist/client/solid/index.d.mts +3 -3
  55. package/dist/client/solid/index.d.ts +3 -3
  56. package/dist/client/svelte/index.d.cts +3 -3
  57. package/dist/client/svelte/index.d.mts +3 -3
  58. package/dist/client/svelte/index.d.ts +3 -3
  59. package/dist/client/vue/index.d.cts +3 -3
  60. package/dist/client/vue/index.d.mts +3 -3
  61. package/dist/client/vue/index.d.ts +3 -3
  62. package/dist/cookies/index.cjs +13 -2
  63. package/dist/cookies/index.d.cts +3 -3
  64. package/dist/cookies/index.d.mts +3 -3
  65. package/dist/cookies/index.d.ts +3 -3
  66. package/dist/cookies/index.mjs +13 -2
  67. package/dist/db/index.cjs +6 -5
  68. package/dist/db/index.d.cts +4 -4
  69. package/dist/db/index.d.mts +4 -4
  70. package/dist/db/index.d.ts +4 -4
  71. package/dist/db/index.mjs +7 -6
  72. package/dist/index.cjs +11 -7
  73. package/dist/index.d.cts +4 -4
  74. package/dist/index.d.mts +4 -4
  75. package/dist/index.d.ts +4 -4
  76. package/dist/index.mjs +14 -10
  77. package/dist/integrations/next-js.cjs +4 -5
  78. package/dist/integrations/next-js.d.cts +3 -3
  79. package/dist/integrations/next-js.d.mts +3 -3
  80. package/dist/integrations/next-js.d.ts +3 -3
  81. package/dist/integrations/next-js.mjs +5 -6
  82. package/dist/integrations/node.d.cts +3 -3
  83. package/dist/integrations/node.d.mts +3 -3
  84. package/dist/integrations/node.d.ts +3 -3
  85. package/dist/integrations/react-start.cjs +5 -6
  86. package/dist/integrations/react-start.d.cts +3 -3
  87. package/dist/integrations/react-start.d.mts +3 -3
  88. package/dist/integrations/react-start.d.ts +3 -3
  89. package/dist/integrations/react-start.mjs +6 -7
  90. package/dist/integrations/svelte-kit.d.cts +3 -3
  91. package/dist/integrations/svelte-kit.d.mts +3 -3
  92. package/dist/integrations/svelte-kit.d.ts +3 -3
  93. package/dist/oauth2/index.d.cts +5 -5
  94. package/dist/oauth2/index.d.mts +5 -5
  95. package/dist/oauth2/index.d.ts +5 -5
  96. package/dist/plugins/access/index.d.cts +1 -1
  97. package/dist/plugins/access/index.d.mts +1 -1
  98. package/dist/plugins/access/index.d.ts +1 -1
  99. package/dist/plugins/admin/access/index.d.cts +1 -1
  100. package/dist/plugins/admin/access/index.d.mts +1 -1
  101. package/dist/plugins/admin/access/index.d.ts +1 -1
  102. package/dist/plugins/admin/index.cjs +4 -4
  103. package/dist/plugins/admin/index.d.cts +74 -14
  104. package/dist/plugins/admin/index.d.mts +74 -14
  105. package/dist/plugins/admin/index.d.ts +74 -14
  106. package/dist/plugins/admin/index.mjs +5 -5
  107. package/dist/plugins/anonymous/index.cjs +4 -5
  108. package/dist/plugins/anonymous/index.d.cts +3 -3
  109. package/dist/plugins/anonymous/index.d.mts +3 -3
  110. package/dist/plugins/anonymous/index.d.ts +3 -3
  111. package/dist/plugins/anonymous/index.mjs +5 -6
  112. package/dist/plugins/bearer/index.cjs +2 -2
  113. package/dist/plugins/bearer/index.d.cts +3 -3
  114. package/dist/plugins/bearer/index.d.mts +3 -3
  115. package/dist/plugins/bearer/index.d.ts +3 -3
  116. package/dist/plugins/bearer/index.mjs +3 -3
  117. package/dist/plugins/captcha/index.cjs +110 -45
  118. package/dist/plugins/captcha/index.d.cts +26 -6
  119. package/dist/plugins/captcha/index.d.mts +26 -6
  120. package/dist/plugins/captcha/index.d.ts +26 -6
  121. package/dist/plugins/captcha/index.mjs +110 -45
  122. package/dist/plugins/custom-session/index.cjs +24 -5
  123. package/dist/plugins/custom-session/index.d.cts +25 -6
  124. package/dist/plugins/custom-session/index.d.mts +25 -6
  125. package/dist/plugins/custom-session/index.d.ts +25 -6
  126. package/dist/plugins/custom-session/index.mjs +25 -6
  127. package/dist/plugins/email-otp/index.cjs +96 -30
  128. package/dist/plugins/email-otp/index.d.cts +33 -10
  129. package/dist/plugins/email-otp/index.d.mts +33 -10
  130. package/dist/plugins/email-otp/index.d.ts +33 -10
  131. package/dist/plugins/email-otp/index.mjs +97 -31
  132. package/dist/plugins/generic-oauth/index.cjs +81 -20
  133. package/dist/plugins/generic-oauth/index.d.cts +46 -3
  134. package/dist/plugins/generic-oauth/index.d.mts +46 -3
  135. package/dist/plugins/generic-oauth/index.d.ts +46 -3
  136. package/dist/plugins/generic-oauth/index.mjs +82 -21
  137. package/dist/plugins/haveibeenpwned/index.cjs +98 -0
  138. package/dist/plugins/haveibeenpwned/index.d.cts +36 -0
  139. package/dist/plugins/haveibeenpwned/index.d.mts +36 -0
  140. package/dist/plugins/haveibeenpwned/index.d.ts +36 -0
  141. package/dist/plugins/haveibeenpwned/index.mjs +96 -0
  142. package/dist/plugins/index.cjs +583 -19
  143. package/dist/plugins/index.d.cts +7 -5
  144. package/dist/plugins/index.d.mts +7 -5
  145. package/dist/plugins/index.d.ts +7 -5
  146. package/dist/plugins/index.mjs +583 -21
  147. package/dist/plugins/jwt/index.cjs +45 -21
  148. package/dist/plugins/jwt/index.d.cts +52 -6
  149. package/dist/plugins/jwt/index.d.mts +52 -6
  150. package/dist/plugins/jwt/index.d.ts +52 -6
  151. package/dist/plugins/jwt/index.mjs +46 -22
  152. package/dist/plugins/magic-link/index.cjs +3 -3
  153. package/dist/plugins/magic-link/index.mjs +4 -4
  154. package/dist/plugins/multi-session/index.cjs +3 -3
  155. package/dist/plugins/multi-session/index.d.cts +3 -3
  156. package/dist/plugins/multi-session/index.d.mts +3 -3
  157. package/dist/plugins/multi-session/index.d.ts +3 -3
  158. package/dist/plugins/multi-session/index.mjs +4 -4
  159. package/dist/plugins/oauth-proxy/index.cjs +4 -4
  160. package/dist/plugins/oauth-proxy/index.d.cts +3 -3
  161. package/dist/plugins/oauth-proxy/index.d.mts +3 -3
  162. package/dist/plugins/oauth-proxy/index.d.ts +3 -3
  163. package/dist/plugins/oauth-proxy/index.mjs +5 -5
  164. package/dist/plugins/oidc-provider/index.cjs +227 -8
  165. package/dist/plugins/oidc-provider/index.d.cts +215 -3
  166. package/dist/plugins/oidc-provider/index.d.mts +215 -3
  167. package/dist/plugins/oidc-provider/index.d.ts +215 -3
  168. package/dist/plugins/oidc-provider/index.mjs +228 -9
  169. package/dist/plugins/one-tap/index.cjs +5 -5
  170. package/dist/plugins/one-tap/index.mjs +6 -6
  171. package/dist/plugins/one-time-token/index.cjs +119 -0
  172. package/dist/plugins/one-time-token/index.d.cts +134 -0
  173. package/dist/plugins/one-time-token/index.d.mts +134 -0
  174. package/dist/plugins/one-time-token/index.d.ts +134 -0
  175. package/dist/plugins/one-time-token/index.mjs +117 -0
  176. package/dist/plugins/open-api/index.cjs +3 -3
  177. package/dist/plugins/open-api/index.d.cts +3 -3
  178. package/dist/plugins/open-api/index.d.mts +3 -3
  179. package/dist/plugins/open-api/index.d.ts +3 -3
  180. package/dist/plugins/open-api/index.mjs +4 -4
  181. package/dist/plugins/organization/access/index.d.cts +1 -1
  182. package/dist/plugins/organization/access/index.d.mts +1 -1
  183. package/dist/plugins/organization/access/index.d.ts +1 -1
  184. package/dist/plugins/organization/index.cjs +4 -4
  185. package/dist/plugins/organization/index.d.cts +708 -55
  186. package/dist/plugins/organization/index.d.mts +708 -55
  187. package/dist/plugins/organization/index.d.ts +708 -55
  188. package/dist/plugins/organization/index.mjs +5 -5
  189. package/dist/plugins/passkey/index.cjs +82 -8
  190. package/dist/plugins/passkey/index.d.cts +72 -3
  191. package/dist/plugins/passkey/index.d.mts +72 -3
  192. package/dist/plugins/passkey/index.d.ts +72 -3
  193. package/dist/plugins/passkey/index.mjs +83 -9
  194. package/dist/plugins/phone-number/index.cjs +194 -26
  195. package/dist/plugins/phone-number/index.d.cts +132 -8
  196. package/dist/plugins/phone-number/index.d.mts +132 -8
  197. package/dist/plugins/phone-number/index.d.ts +132 -8
  198. package/dist/plugins/phone-number/index.mjs +195 -27
  199. package/dist/plugins/sso/index.cjs +190 -7
  200. package/dist/plugins/sso/index.d.cts +181 -15
  201. package/dist/plugins/sso/index.d.mts +181 -15
  202. package/dist/plugins/sso/index.d.ts +181 -15
  203. package/dist/plugins/sso/index.mjs +191 -8
  204. package/dist/plugins/two-factor/index.cjs +443 -92
  205. package/dist/plugins/two-factor/index.d.cts +230 -396
  206. package/dist/plugins/two-factor/index.d.mts +230 -396
  207. package/dist/plugins/two-factor/index.d.ts +230 -396
  208. package/dist/plugins/two-factor/index.mjs +431 -80
  209. package/dist/plugins/username/index.cjs +34 -31
  210. package/dist/plugins/username/index.d.cts +15 -12
  211. package/dist/plugins/username/index.d.mts +15 -12
  212. package/dist/plugins/username/index.d.ts +15 -12
  213. package/dist/plugins/username/index.mjs +35 -32
  214. package/dist/shared/better-auth.1DR6suCQ.mjs +307 -0
  215. package/dist/shared/{better-auth.BSsp73pg.cjs → better-auth.B7cZ2juS.cjs} +15 -14
  216. package/dist/shared/{better-auth.bKwabe3I.d.mts → better-auth.B88xucNq.d.mts} +529 -39
  217. package/dist/shared/{better-auth.CApEjVDP.cjs → better-auth.BW8BpneG.cjs} +4 -1
  218. package/dist/shared/{better-auth.BiQsvaIP.d.cts → better-auth.BcU1Kjyq.d.cts} +2051 -518
  219. package/dist/shared/better-auth.BfG24BjZ.cjs +118 -0
  220. package/dist/shared/{better-auth.A3TjrU8G.mjs → better-auth.Bk5IMdhM.mjs} +32 -12
  221. package/dist/shared/{better-auth.D9VnBkRI.mjs → better-auth.Bm9HxIzE.mjs} +47 -24
  222. package/dist/shared/{better-auth.BRf6Iynu.d.ts → better-auth.Bwc-6kOr.d.ts} +1 -1
  223. package/dist/shared/{better-auth.D-oLmHIj.d.mts → better-auth.CA2hFK4N.d.ts} +2051 -518
  224. package/dist/shared/{better-auth.Dmhe30iW.d.mts → better-auth.CGukGrxT.d.cts} +1 -1
  225. package/dist/shared/{better-auth.CsSpq0zL.cjs → better-auth.CHUzBidy.cjs} +46 -23
  226. package/dist/shared/{better-auth.DWRligF8.d.cts → better-auth.CT9J6rD-.d.cts} +539 -7
  227. package/dist/shared/better-auth.CVCo5Z2T.cjs +310 -0
  228. package/dist/shared/{better-auth.D4jH-sJA.mjs → better-auth.CWwVo_61.mjs} +458 -118
  229. package/dist/shared/{better-auth.Bi8FQwDD.d.cts → better-auth.CYegVoq1.d.cts} +1 -1
  230. package/dist/shared/{better-auth.Bi8FQwDD.d.mts → better-auth.CYegVoq1.d.mts} +1 -1
  231. package/dist/shared/{better-auth.Bi8FQwDD.d.ts → better-auth.CYegVoq1.d.ts} +1 -1
  232. package/dist/shared/{better-auth.CepcSj5H.mjs → better-auth.Cc72UxUH.mjs} +1 -2
  233. package/dist/shared/{better-auth.BWp5dztg.d.ts → better-auth.CmN4mlPh.d.ts} +539 -7
  234. package/dist/shared/{better-auth.DH3YjMQH.mjs → better-auth.Cqykj82J.mjs} +1 -1
  235. package/dist/shared/{better-auth.wcdMj2cT.d.mts → better-auth.DIt2e3lu.d.mts} +539 -7
  236. package/dist/shared/{better-auth.BANAxdkL.d.ts → better-auth.DNTAFSt1.d.ts} +529 -39
  237. package/dist/shared/{better-auth.DU2QNVc_.d.ts → better-auth.DQ7OSJbI.d.mts} +2051 -518
  238. package/dist/shared/{better-auth.DLTzKoOS.cjs → better-auth.DSVbLSt7.cjs} +4 -1
  239. package/dist/shared/{better-auth.B2Fw1vhH.d.cts → better-auth.DTiSPWEk.d.cts} +529 -39
  240. package/dist/shared/better-auth.DURsStt9.mjs +116 -0
  241. package/dist/shared/{better-auth.BIjcZ_vt.cjs → better-auth.DYoLD99C.cjs} +31 -11
  242. package/dist/shared/{better-auth.CV1L7TPV.cjs → better-auth.D_ZIX1O8.cjs} +317 -47
  243. package/dist/shared/{better-auth.C5H9XEzZ.cjs → better-auth.DcWKCjjf.cjs} +1 -2
  244. package/dist/shared/{better-auth.BDYXUcLv.cjs → better-auth.Dg0siV5C.cjs} +457 -117
  245. package/dist/shared/better-auth.DjryM8pE.cjs +760 -0
  246. package/dist/shared/{better-auth.DPBQN9Fs.mjs → better-auth.Dn_Ms1Uf.mjs} +318 -48
  247. package/dist/shared/{better-auth.DiG4KL2x.mjs → better-auth.OuYYTHC7.mjs} +4 -1
  248. package/dist/shared/{better-auth.DtC8i3pf.d.cts → better-auth.S1jimRbX.d.mts} +1 -1
  249. package/dist/shared/better-auth.SPmq4a4z.d.mts +344 -0
  250. package/dist/shared/{better-auth.cOCrlspr.mjs → better-auth.bkwPl2G4.mjs} +4 -1
  251. package/dist/shared/better-auth.cp2rC2iM.d.ts +344 -0
  252. package/dist/shared/better-auth.eVy4DZvP.d.cts +344 -0
  253. package/dist/shared/{better-auth.BrOpzmqo.mjs → better-auth.iKoUsdFE.mjs} +15 -14
  254. package/dist/shared/better-auth.rSYJCd3o.mjs +758 -0
  255. package/dist/social-providers/index.cjs +75 -3
  256. package/dist/social-providers/index.d.cts +2 -2
  257. package/dist/social-providers/index.d.mts +2 -2
  258. package/dist/social-providers/index.d.ts +2 -2
  259. package/dist/social-providers/index.mjs +77 -6
  260. package/dist/types/index.d.cts +4 -4
  261. package/dist/types/index.d.mts +4 -4
  262. package/dist/types/index.d.ts +4 -4
  263. package/package.json +42 -5
  264. package/dist/chunks/server.cjs +0 -905
  265. package/dist/chunks/server.mjs +0 -895
  266. package/dist/shared/better-auth.BcoSd9tC.mjs +0 -10
  267. package/dist/shared/better-auth.BnRFp-t0.mjs +0 -405
  268. package/dist/shared/better-auth.C1-vpKly.cjs +0 -12
  269. package/dist/shared/better-auth.ClTSOgiD.mjs +0 -140
  270. package/dist/shared/better-auth.DC8JQbiE.mjs +0 -173
  271. package/dist/shared/better-auth.DWHWPllD.cjs +0 -175
  272. package/dist/shared/better-auth.DqLjzBlO.cjs +0 -408
  273. package/dist/shared/better-auth.m575EIBC.cjs +0 -144
@@ -98,7 +98,7 @@ const apple = (options) => {
98
98
  if (!profile) {
99
99
  return null;
100
100
  }
101
- const name = profile.user ? `${profile.user.name.firstName} ${profile.user.name.lastName}` : profile.email;
101
+ const name = token.user ? `${token.user.name?.firstName} ${token.user.name?.lastName}` : profile.name || profile.email;
102
102
  const userMap = await options.mapProfileToUser?.(profile);
103
103
  return {
104
104
  user: {
@@ -219,7 +219,10 @@ const facebook = (options) => {
219
219
  scopes: _scopes,
220
220
  state,
221
221
  redirectURI,
222
- loginHint
222
+ loginHint,
223
+ additionalParams: options.configId ? {
224
+ config_id: options.configId
225
+ } : {}
223
226
  });
224
227
  },
225
228
  validateAuthorizationCode: async ({ code, redirectURI }) => {
@@ -1457,6 +1460,73 @@ const kick = (options) => {
1457
1460
  };
1458
1461
  };
1459
1462
 
1463
+ const zoom = (userOptions) => {
1464
+ const options = {
1465
+ pkce: true,
1466
+ ...userOptions
1467
+ };
1468
+ return {
1469
+ id: "zoom",
1470
+ name: "Zoom",
1471
+ createAuthorizationURL: async ({ state, redirectURI, codeVerifier }) => {
1472
+ const params = new URLSearchParams({
1473
+ response_type: "code",
1474
+ redirect_uri: options.redirectURI ? options.redirectURI : redirectURI,
1475
+ client_id: options.clientId,
1476
+ state
1477
+ });
1478
+ if (options.pkce) {
1479
+ const codeChallenge = await refreshAccessToken.generateCodeChallenge(codeVerifier);
1480
+ params.set("code_challenge_method", "S256");
1481
+ params.set("code_challenge", codeChallenge);
1482
+ }
1483
+ const url = new URL("https://zoom.us/oauth/authorize");
1484
+ url.search = params.toString();
1485
+ return url;
1486
+ },
1487
+ validateAuthorizationCode: async ({ code, redirectURI, codeVerifier }) => {
1488
+ return refreshAccessToken.validateAuthorizationCode({
1489
+ code,
1490
+ redirectURI: options.redirectURI || redirectURI,
1491
+ codeVerifier,
1492
+ options,
1493
+ tokenEndpoint: "https://zoom.us/oauth/token",
1494
+ authentication: "post"
1495
+ });
1496
+ },
1497
+ async getUserInfo(token) {
1498
+ if (options.getUserInfo) {
1499
+ return options.getUserInfo(token);
1500
+ }
1501
+ const { data: profile, error } = await fetch.betterFetch(
1502
+ "https://api.zoom.us/v2/users/me",
1503
+ {
1504
+ headers: {
1505
+ authorization: `Bearer ${token.accessToken}`
1506
+ }
1507
+ }
1508
+ );
1509
+ if (error) {
1510
+ return null;
1511
+ }
1512
+ const userMap = await options.mapProfileToUser?.(profile);
1513
+ return {
1514
+ user: {
1515
+ id: profile.id,
1516
+ name: profile.display_name,
1517
+ image: profile.pic_url,
1518
+ email: profile.email,
1519
+ emailVerified: Boolean(profile.verified),
1520
+ ...userMap
1521
+ },
1522
+ data: {
1523
+ ...profile
1524
+ }
1525
+ };
1526
+ }
1527
+ };
1528
+ };
1529
+
1460
1530
  const socialProviders = {
1461
1531
  apple,
1462
1532
  discord,
@@ -1474,7 +1544,8 @@ const socialProviders = {
1474
1544
  tiktok,
1475
1545
  reddit,
1476
1546
  roblox,
1477
- vk
1547
+ vk,
1548
+ zoom
1478
1549
  };
1479
1550
  const socialProviderList = Object.keys(socialProviders);
1480
1551
  const SocialProviderListEnum = zod.z.enum(socialProviderList, {
@@ -1503,3 +1574,4 @@ exports.tiktok = tiktok;
1503
1574
  exports.twitch = twitch;
1504
1575
  exports.twitter = twitter;
1505
1576
  exports.vk = vk;
1577
+ exports.zoom = zoom;
@@ -1,4 +1,4 @@
1
- export { k as AppleNonConformUser, l as AppleOptions, A as AppleProfile, q as DiscordOptions, D as DiscordProfile, I as DropboxOptions, H as DropboxProfile, y as FacebookOptions, F as FacebookProfile, f as GithubOptions, G as GithubProfile, R as GitlabOptions, Q as GitlabProfile, i as GoogleOptions, h as GoogleProfile, a7 as KickOptions, a6 as KickProfile, a3 as LANG, K as LinkedInOptions, L as LinkedInProfile, M as MicrosoftEntraIDProfile, o as MicrosoftOptions, Z as RedditOptions, Y as RedditProfile, a0 as RobloxOptions, $ as RobloxProfile, e as SocialProvider, b as SocialProviderList, d as SocialProviderListEnum, S as SocialProviders, u as SpotifyOptions, t as SpotifyProfile, W as TiktokOptions, V as TiktokProfile, w as TwitchOptions, T as TwitchProfile, C as TwitterOption, B as TwitterProfile, a4 as VkOption, a2 as VkProfile, m as apple, r as discord, J as dropbox, z as facebook, n as getApplePublicKey, g as github, U as gitlab, j as google, a8 as kick, N as linkedin, p as microsoft, _ as reddit, a1 as roblox, c as socialProviderList, s as socialProviders, v as spotify, X as tiktok, x as twitch, E as twitter, a5 as vk } from '../shared/better-auth.B2Fw1vhH.cjs';
2
- import '../shared/better-auth.Bi8FQwDD.cjs';
1
+ export { a7 as AccountStatus, k as AppleNonConformUser, l as AppleOptions, A as AppleProfile, q as DiscordOptions, D as DiscordProfile, I as DropboxOptions, H as DropboxProfile, y as FacebookOptions, F as FacebookProfile, f as GithubOptions, G as GithubProfile, R as GitlabOptions, Q as GitlabProfile, i as GoogleOptions, h as GoogleProfile, ae as KickOptions, ad as KickProfile, a3 as LANG, K as LinkedInOptions, L as LinkedInProfile, a6 as LoginType, M as MicrosoftEntraIDProfile, o as MicrosoftOptions, a9 as PhoneNumber, a8 as PronounOption, Z as RedditOptions, Y as RedditProfile, a0 as RobloxOptions, $ as RobloxProfile, e as SocialProvider, b as SocialProviderList, d as SocialProviderListEnum, S as SocialProviders, u as SpotifyOptions, t as SpotifyProfile, W as TiktokOptions, V as TiktokProfile, w as TwitchOptions, T as TwitchProfile, C as TwitterOption, B as TwitterProfile, a4 as VkOption, a2 as VkProfile, ab as ZoomOptions, aa as ZoomProfile, m as apple, r as discord, J as dropbox, z as facebook, n as getApplePublicKey, g as github, U as gitlab, j as google, af as kick, N as linkedin, p as microsoft, _ as reddit, a1 as roblox, c as socialProviderList, s as socialProviders, v as spotify, X as tiktok, x as twitch, E as twitter, a5 as vk, ac as zoom } from '../shared/better-auth.DTiSPWEk.cjs';
2
+ import '../shared/better-auth.CYegVoq1.cjs';
3
3
  import 'zod';
4
4
  import 'jose';
@@ -1,4 +1,4 @@
1
- export { k as AppleNonConformUser, l as AppleOptions, A as AppleProfile, q as DiscordOptions, D as DiscordProfile, I as DropboxOptions, H as DropboxProfile, y as FacebookOptions, F as FacebookProfile, f as GithubOptions, G as GithubProfile, R as GitlabOptions, Q as GitlabProfile, i as GoogleOptions, h as GoogleProfile, a7 as KickOptions, a6 as KickProfile, a3 as LANG, K as LinkedInOptions, L as LinkedInProfile, M as MicrosoftEntraIDProfile, o as MicrosoftOptions, Z as RedditOptions, Y as RedditProfile, a0 as RobloxOptions, $ as RobloxProfile, e as SocialProvider, b as SocialProviderList, d as SocialProviderListEnum, S as SocialProviders, u as SpotifyOptions, t as SpotifyProfile, W as TiktokOptions, V as TiktokProfile, w as TwitchOptions, T as TwitchProfile, C as TwitterOption, B as TwitterProfile, a4 as VkOption, a2 as VkProfile, m as apple, r as discord, J as dropbox, z as facebook, n as getApplePublicKey, g as github, U as gitlab, j as google, a8 as kick, N as linkedin, p as microsoft, _ as reddit, a1 as roblox, c as socialProviderList, s as socialProviders, v as spotify, X as tiktok, x as twitch, E as twitter, a5 as vk } from '../shared/better-auth.bKwabe3I.mjs';
2
- import '../shared/better-auth.Bi8FQwDD.mjs';
1
+ export { a7 as AccountStatus, k as AppleNonConformUser, l as AppleOptions, A as AppleProfile, q as DiscordOptions, D as DiscordProfile, I as DropboxOptions, H as DropboxProfile, y as FacebookOptions, F as FacebookProfile, f as GithubOptions, G as GithubProfile, R as GitlabOptions, Q as GitlabProfile, i as GoogleOptions, h as GoogleProfile, ae as KickOptions, ad as KickProfile, a3 as LANG, K as LinkedInOptions, L as LinkedInProfile, a6 as LoginType, M as MicrosoftEntraIDProfile, o as MicrosoftOptions, a9 as PhoneNumber, a8 as PronounOption, Z as RedditOptions, Y as RedditProfile, a0 as RobloxOptions, $ as RobloxProfile, e as SocialProvider, b as SocialProviderList, d as SocialProviderListEnum, S as SocialProviders, u as SpotifyOptions, t as SpotifyProfile, W as TiktokOptions, V as TiktokProfile, w as TwitchOptions, T as TwitchProfile, C as TwitterOption, B as TwitterProfile, a4 as VkOption, a2 as VkProfile, ab as ZoomOptions, aa as ZoomProfile, m as apple, r as discord, J as dropbox, z as facebook, n as getApplePublicKey, g as github, U as gitlab, j as google, af as kick, N as linkedin, p as microsoft, _ as reddit, a1 as roblox, c as socialProviderList, s as socialProviders, v as spotify, X as tiktok, x as twitch, E as twitter, a5 as vk, ac as zoom } from '../shared/better-auth.B88xucNq.mjs';
2
+ import '../shared/better-auth.CYegVoq1.mjs';
3
3
  import 'zod';
4
4
  import 'jose';
@@ -1,4 +1,4 @@
1
- export { k as AppleNonConformUser, l as AppleOptions, A as AppleProfile, q as DiscordOptions, D as DiscordProfile, I as DropboxOptions, H as DropboxProfile, y as FacebookOptions, F as FacebookProfile, f as GithubOptions, G as GithubProfile, R as GitlabOptions, Q as GitlabProfile, i as GoogleOptions, h as GoogleProfile, a7 as KickOptions, a6 as KickProfile, a3 as LANG, K as LinkedInOptions, L as LinkedInProfile, M as MicrosoftEntraIDProfile, o as MicrosoftOptions, Z as RedditOptions, Y as RedditProfile, a0 as RobloxOptions, $ as RobloxProfile, e as SocialProvider, b as SocialProviderList, d as SocialProviderListEnum, S as SocialProviders, u as SpotifyOptions, t as SpotifyProfile, W as TiktokOptions, V as TiktokProfile, w as TwitchOptions, T as TwitchProfile, C as TwitterOption, B as TwitterProfile, a4 as VkOption, a2 as VkProfile, m as apple, r as discord, J as dropbox, z as facebook, n as getApplePublicKey, g as github, U as gitlab, j as google, a8 as kick, N as linkedin, p as microsoft, _ as reddit, a1 as roblox, c as socialProviderList, s as socialProviders, v as spotify, X as tiktok, x as twitch, E as twitter, a5 as vk } from '../shared/better-auth.BANAxdkL.js';
2
- import '../shared/better-auth.Bi8FQwDD.js';
1
+ export { a7 as AccountStatus, k as AppleNonConformUser, l as AppleOptions, A as AppleProfile, q as DiscordOptions, D as DiscordProfile, I as DropboxOptions, H as DropboxProfile, y as FacebookOptions, F as FacebookProfile, f as GithubOptions, G as GithubProfile, R as GitlabOptions, Q as GitlabProfile, i as GoogleOptions, h as GoogleProfile, ae as KickOptions, ad as KickProfile, a3 as LANG, K as LinkedInOptions, L as LinkedInProfile, a6 as LoginType, M as MicrosoftEntraIDProfile, o as MicrosoftOptions, a9 as PhoneNumber, a8 as PronounOption, Z as RedditOptions, Y as RedditProfile, a0 as RobloxOptions, $ as RobloxProfile, e as SocialProvider, b as SocialProviderList, d as SocialProviderListEnum, S as SocialProviders, u as SpotifyOptions, t as SpotifyProfile, W as TiktokOptions, V as TiktokProfile, w as TwitchOptions, T as TwitchProfile, C as TwitterOption, B as TwitterProfile, a4 as VkOption, a2 as VkProfile, ab as ZoomOptions, aa as ZoomProfile, m as apple, r as discord, J as dropbox, z as facebook, n as getApplePublicKey, g as github, U as gitlab, j as google, af as kick, N as linkedin, p as microsoft, _ as reddit, a1 as roblox, c as socialProviderList, s as socialProviders, v as spotify, X as tiktok, x as twitch, E as twitter, a5 as vk, ac as zoom } from '../shared/better-auth.DNTAFSt1.js';
2
+ import '../shared/better-auth.CYegVoq1.js';
3
3
  import 'zod';
4
4
  import 'jose';
@@ -1,7 +1,7 @@
1
1
  import { betterFetch } from '@better-fetch/fetch';
2
2
  import { APIError } from 'better-call';
3
3
  import { decodeJwt, decodeProtectedHeader, jwtVerify, importJWK, createRemoteJWKSet } from 'jose';
4
- import { r as refreshAccessToken, v as validateAuthorizationCode, c as createAuthorizationURL, b as getOAuth2Tokens } from '../shared/better-auth.DCVeP5-W.mjs';
4
+ import { r as refreshAccessToken, v as validateAuthorizationCode, c as createAuthorizationURL, b as getOAuth2Tokens, g as generateCodeChallenge } from '../shared/better-auth.DCVeP5-W.mjs';
5
5
  import '@better-auth/utils/hash';
6
6
  import { base64 } from '@better-auth/utils/base64';
7
7
  import { z } from 'zod';
@@ -14,7 +14,7 @@ import '@better-auth/utils/hex';
14
14
  import '@noble/hashes/utils';
15
15
  import '../shared/better-auth.B4Qoxdgc.mjs';
16
16
  import { B as BetterAuthError } from '../shared/better-auth.DdzSJf-n.mjs';
17
- import { a as logger } from '../shared/better-auth.DH3YjMQH.mjs';
17
+ import { l as logger } from '../shared/better-auth.Cqykj82J.mjs';
18
18
  import '@better-auth/utils/random';
19
19
  import '../shared/better-auth.CW6D9eSx.mjs';
20
20
 
@@ -96,7 +96,7 @@ const apple = (options) => {
96
96
  if (!profile) {
97
97
  return null;
98
98
  }
99
- const name = profile.user ? `${profile.user.name.firstName} ${profile.user.name.lastName}` : profile.email;
99
+ const name = token.user ? `${token.user.name?.firstName} ${token.user.name?.lastName}` : profile.name || profile.email;
100
100
  const userMap = await options.mapProfileToUser?.(profile);
101
101
  return {
102
102
  user: {
@@ -217,7 +217,10 @@ const facebook = (options) => {
217
217
  scopes: _scopes,
218
218
  state,
219
219
  redirectURI,
220
- loginHint
220
+ loginHint,
221
+ additionalParams: options.configId ? {
222
+ config_id: options.configId
223
+ } : {}
221
224
  });
222
225
  },
223
226
  validateAuthorizationCode: async ({ code, redirectURI }) => {
@@ -1455,6 +1458,73 @@ const kick = (options) => {
1455
1458
  };
1456
1459
  };
1457
1460
 
1461
+ const zoom = (userOptions) => {
1462
+ const options = {
1463
+ pkce: true,
1464
+ ...userOptions
1465
+ };
1466
+ return {
1467
+ id: "zoom",
1468
+ name: "Zoom",
1469
+ createAuthorizationURL: async ({ state, redirectURI, codeVerifier }) => {
1470
+ const params = new URLSearchParams({
1471
+ response_type: "code",
1472
+ redirect_uri: options.redirectURI ? options.redirectURI : redirectURI,
1473
+ client_id: options.clientId,
1474
+ state
1475
+ });
1476
+ if (options.pkce) {
1477
+ const codeChallenge = await generateCodeChallenge(codeVerifier);
1478
+ params.set("code_challenge_method", "S256");
1479
+ params.set("code_challenge", codeChallenge);
1480
+ }
1481
+ const url = new URL("https://zoom.us/oauth/authorize");
1482
+ url.search = params.toString();
1483
+ return url;
1484
+ },
1485
+ validateAuthorizationCode: async ({ code, redirectURI, codeVerifier }) => {
1486
+ return validateAuthorizationCode({
1487
+ code,
1488
+ redirectURI: options.redirectURI || redirectURI,
1489
+ codeVerifier,
1490
+ options,
1491
+ tokenEndpoint: "https://zoom.us/oauth/token",
1492
+ authentication: "post"
1493
+ });
1494
+ },
1495
+ async getUserInfo(token) {
1496
+ if (options.getUserInfo) {
1497
+ return options.getUserInfo(token);
1498
+ }
1499
+ const { data: profile, error } = await betterFetch(
1500
+ "https://api.zoom.us/v2/users/me",
1501
+ {
1502
+ headers: {
1503
+ authorization: `Bearer ${token.accessToken}`
1504
+ }
1505
+ }
1506
+ );
1507
+ if (error) {
1508
+ return null;
1509
+ }
1510
+ const userMap = await options.mapProfileToUser?.(profile);
1511
+ return {
1512
+ user: {
1513
+ id: profile.id,
1514
+ name: profile.display_name,
1515
+ image: profile.pic_url,
1516
+ email: profile.email,
1517
+ emailVerified: Boolean(profile.verified),
1518
+ ...userMap
1519
+ },
1520
+ data: {
1521
+ ...profile
1522
+ }
1523
+ };
1524
+ }
1525
+ };
1526
+ };
1527
+
1458
1528
  const socialProviders = {
1459
1529
  apple,
1460
1530
  discord,
@@ -1472,11 +1542,12 @@ const socialProviders = {
1472
1542
  tiktok,
1473
1543
  reddit,
1474
1544
  roblox,
1475
- vk
1545
+ vk,
1546
+ zoom
1476
1547
  };
1477
1548
  const socialProviderList = Object.keys(socialProviders);
1478
1549
  const SocialProviderListEnum = z.enum(socialProviderList, {
1479
1550
  description: "OAuth2 provider to use"
1480
1551
  });
1481
1552
 
1482
- export { LANG, SocialProviderListEnum, apple, discord, dropbox, facebook, getApplePublicKey, github, gitlab, google, kick, linkedin, microsoft, reddit, roblox, socialProviderList, socialProviders, spotify, tiktok, twitch, twitter, vk };
1553
+ export { LANG, SocialProviderListEnum, apple, discord, dropbox, facebook, getApplePublicKey, github, gitlab, google, kick, linkedin, microsoft, reddit, roblox, socialProviderList, socialProviders, spotify, tiktok, twitch, twitter, vk, zoom };
@@ -1,11 +1,11 @@
1
- import { B as BetterAuthPlugin, a3 as InferFieldsInputClient, a1 as InferFieldsOutput, U as User, S as Session, i as Auth } from '../shared/better-auth.BiQsvaIP.cjs';
2
- export { u as Account, g as Adapter, x as AdapterInstance, w as AdapterSchemaCreation, r as AdditionalSessionFieldsInput, s as AdditionalSessionFieldsOutput, p as AdditionalUserFieldsInput, q as AdditionalUserFieldsOutput, j as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, z as FilterActions, F as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, D as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, t as InferPluginTypes, l as InferSession, C as InferSessionAPI, k as InferUser, M as Models, R as RateLimit, y as SecondaryStorage, V as Verification, W as Where, v as init } from '../shared/better-auth.BiQsvaIP.cjs';
1
+ import { B as BetterAuthPlugin, a5 as InferFieldsInputClient, a3 as InferFieldsOutput, U as User, S as Session, k as Auth } from '../shared/better-auth.BcU1Kjyq.cjs';
2
+ export { x as Account, g as Adapter, z as AdapterInstance, i as AdapterSchemaCreation, u as AdditionalSessionFieldsInput, v as AdditionalSessionFieldsOutput, s as AdditionalUserFieldsInput, t as AdditionalUserFieldsOutput, l as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, E as FilterActions, D as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, L as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, w as InferPluginTypes, n as InferSession, J as InferSessionAPI, m as InferUser, M as Models, R as RateLimit, C as SecondaryStorage, V as Verification, W as Where, y as init } from '../shared/better-auth.BcU1Kjyq.cjs';
3
3
  import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
4
4
  import { WritableAtom, Atom } from 'nanostores';
5
- import { U as UnionToIntersection, H as HasRequiredKeys, b as Prettify, L as LiteralString, S as StripEmptyObjects } from '../shared/better-auth.Bi8FQwDD.cjs';
5
+ import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, L as LiteralString, S as StripEmptyObjects } from '../shared/better-auth.CYegVoq1.cjs';
6
6
  import { Endpoint, InputContext } from 'better-call';
7
7
  import 'zod';
8
- import '../shared/better-auth.B2Fw1vhH.cjs';
8
+ import '../shared/better-auth.DTiSPWEk.cjs';
9
9
  import 'jose';
10
10
  import 'kysely';
11
11
  import 'better-sqlite3';
@@ -1,11 +1,11 @@
1
- import { B as BetterAuthPlugin, a3 as InferFieldsInputClient, a1 as InferFieldsOutput, U as User, S as Session, i as Auth } from '../shared/better-auth.D-oLmHIj.mjs';
2
- export { u as Account, g as Adapter, x as AdapterInstance, w as AdapterSchemaCreation, r as AdditionalSessionFieldsInput, s as AdditionalSessionFieldsOutput, p as AdditionalUserFieldsInput, q as AdditionalUserFieldsOutput, j as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, z as FilterActions, F as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, D as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, t as InferPluginTypes, l as InferSession, C as InferSessionAPI, k as InferUser, M as Models, R as RateLimit, y as SecondaryStorage, V as Verification, W as Where, v as init } from '../shared/better-auth.D-oLmHIj.mjs';
1
+ import { B as BetterAuthPlugin, a5 as InferFieldsInputClient, a3 as InferFieldsOutput, U as User, S as Session, k as Auth } from '../shared/better-auth.DQ7OSJbI.mjs';
2
+ export { x as Account, g as Adapter, z as AdapterInstance, i as AdapterSchemaCreation, u as AdditionalSessionFieldsInput, v as AdditionalSessionFieldsOutput, s as AdditionalUserFieldsInput, t as AdditionalUserFieldsOutput, l as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, E as FilterActions, D as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, L as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, w as InferPluginTypes, n as InferSession, J as InferSessionAPI, m as InferUser, M as Models, R as RateLimit, C as SecondaryStorage, V as Verification, W as Where, y as init } from '../shared/better-auth.DQ7OSJbI.mjs';
3
3
  import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
4
4
  import { WritableAtom, Atom } from 'nanostores';
5
- import { U as UnionToIntersection, H as HasRequiredKeys, b as Prettify, L as LiteralString, S as StripEmptyObjects } from '../shared/better-auth.Bi8FQwDD.mjs';
5
+ import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, L as LiteralString, S as StripEmptyObjects } from '../shared/better-auth.CYegVoq1.mjs';
6
6
  import { Endpoint, InputContext } from 'better-call';
7
7
  import 'zod';
8
- import '../shared/better-auth.bKwabe3I.mjs';
8
+ import '../shared/better-auth.B88xucNq.mjs';
9
9
  import 'jose';
10
10
  import 'kysely';
11
11
  import 'better-sqlite3';
@@ -1,11 +1,11 @@
1
- import { B as BetterAuthPlugin, a3 as InferFieldsInputClient, a1 as InferFieldsOutput, U as User, S as Session, i as Auth } from '../shared/better-auth.DU2QNVc_.js';
2
- export { u as Account, g as Adapter, x as AdapterInstance, w as AdapterSchemaCreation, r as AdditionalSessionFieldsInput, s as AdditionalSessionFieldsOutput, p as AdditionalUserFieldsInput, q as AdditionalUserFieldsOutput, j as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, z as FilterActions, F as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, D as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, t as InferPluginTypes, l as InferSession, C as InferSessionAPI, k as InferUser, M as Models, R as RateLimit, y as SecondaryStorage, V as Verification, W as Where, v as init } from '../shared/better-auth.DU2QNVc_.js';
1
+ import { B as BetterAuthPlugin, a5 as InferFieldsInputClient, a3 as InferFieldsOutput, U as User, S as Session, k as Auth } from '../shared/better-auth.CA2hFK4N.js';
2
+ export { x as Account, g as Adapter, z as AdapterInstance, i as AdapterSchemaCreation, u as AdditionalSessionFieldsInput, v as AdditionalSessionFieldsOutput, s as AdditionalUserFieldsInput, t as AdditionalUserFieldsOutput, l as AuthContext, A as AuthPluginSchema, f as BetterAuthOptions, E as FilterActions, D as FilteredAPI, G as GenericEndpointContext, H as HookEndpointContext, L as InferAPI, I as InferOptionSchema, a as InferPluginErrorCodes, w as InferPluginTypes, n as InferSession, J as InferSessionAPI, m as InferUser, M as Models, R as RateLimit, C as SecondaryStorage, V as Verification, W as Where, y as init } from '../shared/better-auth.CA2hFK4N.js';
3
3
  import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
4
4
  import { WritableAtom, Atom } from 'nanostores';
5
- import { U as UnionToIntersection, H as HasRequiredKeys, b as Prettify, L as LiteralString, S as StripEmptyObjects } from '../shared/better-auth.Bi8FQwDD.js';
5
+ import { U as UnionToIntersection, H as HasRequiredKeys, P as Prettify, L as LiteralString, S as StripEmptyObjects } from '../shared/better-auth.CYegVoq1.js';
6
6
  import { Endpoint, InputContext } from 'better-call';
7
7
  import 'zod';
8
- import '../shared/better-auth.BANAxdkL.js';
8
+ import '../shared/better-auth.DNTAFSt1.js';
9
9
  import 'jose';
10
10
  import 'kysely';
11
11
  import 'better-sqlite3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-auth",
3
- "version": "1.2.6-beta.7",
3
+ "version": "1.2.7-beta.1",
4
4
  "description": "The most comprehensive authentication library for TypeScript.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -261,6 +261,16 @@
261
261
  "default": "./dist/adapters/test.cjs"
262
262
  }
263
263
  },
264
+ "./adapters": {
265
+ "import": {
266
+ "types": "./dist/adapters/index.d.ts",
267
+ "default": "./dist/adapters/index.mjs"
268
+ },
269
+ "require": {
270
+ "types": "./dist/adapters/index.d.cts",
271
+ "default": "./dist/adapters/index.cjs"
272
+ }
273
+ },
264
274
  "./plugins/access": {
265
275
  "import": {
266
276
  "types": "./dist/plugins/access/index.d.ts",
@@ -351,6 +361,16 @@
351
361
  "default": "./dist/plugins/jwt/index.cjs"
352
362
  }
353
363
  },
364
+ "./plugins/haveibeenpwned": {
365
+ "import": {
366
+ "types": "./dist/plugins/haveibeenpwned/index.d.ts",
367
+ "default": "./dist/plugins/haveibeenpwned/index.mjs"
368
+ },
369
+ "require": {
370
+ "types": "./dist/plugins/haveibeenpwned/index.d.cts",
371
+ "default": "./dist/plugins/haveibeenpwned/index.cjs"
372
+ }
373
+ },
354
374
  "./plugins/sso": {
355
375
  "import": {
356
376
  "types": "./dist/plugins/sso/index.d.ts",
@@ -421,6 +441,16 @@
421
441
  "default": "./dist/plugins/organization/access/index.cjs"
422
442
  }
423
443
  },
444
+ "./plugins/one-time-token": {
445
+ "import": {
446
+ "types": "./dist/plugins/one-time-token/index.d.ts",
447
+ "default": "./dist/plugins/one-time-token/index.mjs"
448
+ },
449
+ "require": {
450
+ "types": "./dist/plugins/one-time-token/index.d.cts",
451
+ "default": "./dist/plugins/one-time-token/index.cjs"
452
+ }
453
+ },
424
454
  "./plugins/passkey": {
425
455
  "import": {
426
456
  "types": "./dist/plugins/passkey/index.d.ts",
@@ -557,9 +587,15 @@
557
587
  "plugins/generic-oauth": [
558
588
  "./dist/plugins/generic-oauth/index.d.ts"
559
589
  ],
590
+ "plugins/haveibeenpwned": [
591
+ "./dist/plugins/haveibeenpwned/index.d.ts"
592
+ ],
560
593
  "plugins/oauth-proxy": [
561
594
  "./dist/plugins/oauth-proxy/index.d.ts"
562
595
  ],
596
+ "plugins/one-time-token": [
597
+ "./dist/plugins/one-time-token/index.d.ts"
598
+ ],
563
599
  "plugins/sso": [
564
600
  "./dist/plugins/sso/index.d.ts"
565
601
  ],
@@ -627,7 +663,7 @@
627
663
  "@noble/hashes": "^1.6.1",
628
664
  "@simplewebauthn/browser": "^13.0.0",
629
665
  "@simplewebauthn/server": "^13.0.0",
630
- "better-call": "^1.0.7",
666
+ "better-call": "^1.0.8",
631
667
  "defu": "^6.1.4",
632
668
  "jose": "^5.9.6",
633
669
  "kysely": "^0.27.6",
@@ -646,9 +682,10 @@
646
682
  "dev:types": "tsc --project tsconfig.declarations.json --watch",
647
683
  "build:types": "tsc --project tsconfig.declarations.json",
648
684
  "stub": "unbuild --stub",
649
- "test": "pnpm prisma:push && vitest",
650
- "prisma:push": "prisma db push --schema src/adapters/prisma-adapter/test/schema.prisma",
651
- "test:adapters": "pnpm prisma:push && vitest adapters",
685
+ "pretest": "pnpm prisma:normal:push && pnpm prisma:number-id:push",
686
+ "test": "vitest",
687
+ "prisma:normal:push": "prisma db push --schema src/adapters/prisma-adapter/test/normal-tests/schema.prisma",
688
+ "prisma:number-id:push": "prisma db push --schema src/adapters/prisma-adapter/test/number-id-tests/schema.prisma",
652
689
  "bump": "bumpp",
653
690
  "typecheck": "tsc --noEmit --project tsconfig.declarations.json"
654
691
  }