better-auth 1.1.16 → 1.1.17-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/adapters/drizzle.d.cts +1 -1
  2. package/dist/adapters/drizzle.d.ts +1 -1
  3. package/dist/adapters/kysely.d.cts +1 -1
  4. package/dist/adapters/kysely.d.ts +1 -1
  5. package/dist/adapters/memory.d.cts +1 -1
  6. package/dist/adapters/memory.d.ts +1 -1
  7. package/dist/adapters/mongodb.d.cts +1 -1
  8. package/dist/adapters/mongodb.d.ts +1 -1
  9. package/dist/adapters/prisma.d.cts +1 -1
  10. package/dist/adapters/prisma.d.ts +1 -1
  11. package/dist/adapters/test.d.cts +1 -1
  12. package/dist/adapters/test.d.ts +1 -1
  13. package/dist/api.cjs +40 -40
  14. package/dist/api.d.cts +1 -1
  15. package/dist/api.d.ts +1 -1
  16. package/dist/api.js +1 -1
  17. package/dist/{auth-DMS7IE-x.d.ts → auth-DY_qCjtR.d.ts} +1 -1
  18. package/dist/{auth-B-qaajUS.d.cts → auth-DoaT0L8W.d.cts} +1 -1
  19. package/dist/{chunk-WWS35IQ5.js → chunk-25EL2ZHI.js} +1 -1
  20. package/dist/{chunk-KV4SNX2L.js → chunk-2C6SMP6F.js} +1 -1
  21. package/dist/{chunk-WTPPCBCB.js → chunk-2ZPDVDXY.js} +1 -1
  22. package/dist/{chunk-DWIBVZAJ.cjs → chunk-3EEFLA4L.cjs} +25 -25
  23. package/dist/{chunk-3S4MCLJF.js → chunk-3SL4CXEV.js} +1 -1
  24. package/dist/{chunk-NXTEU5CV.cjs → chunk-4H2HYI3Y.cjs} +5 -5
  25. package/dist/{chunk-M4FOYSWF.js → chunk-4MLWJAX2.js} +25 -3
  26. package/dist/{chunk-QEOAQYXY.js → chunk-6RWMHOZO.js} +1 -1
  27. package/dist/{chunk-4TKRQO77.js → chunk-7F35TT74.js} +1 -1
  28. package/dist/{chunk-4MW4FLQO.cjs → chunk-BHVEK3VE.cjs} +4 -4
  29. package/dist/{chunk-N2JWTSOT.js → chunk-ESTNR3OP.js} +1 -1
  30. package/dist/{chunk-25OX57IG.cjs → chunk-GAVLBDSC.cjs} +25 -25
  31. package/dist/{chunk-V5DC4R7E.cjs → chunk-GOYMBBTZ.cjs} +25 -3
  32. package/dist/{chunk-YHTMYMLS.cjs → chunk-JVB6LKY7.cjs} +5 -5
  33. package/dist/{chunk-ZCUY7VHE.js → chunk-KBTNII7B.js} +1 -1
  34. package/dist/{chunk-4LNTX2KF.js → chunk-KNH43U3W.js} +1 -1
  35. package/dist/{chunk-ON24SVIB.cjs → chunk-KVAKZTFY.cjs} +4 -4
  36. package/dist/{chunk-FI5XMOGG.cjs → chunk-LDCEL5AD.cjs} +4 -4
  37. package/dist/{chunk-BY6ZZTPU.js → chunk-MIRMXZDN.js} +1 -1
  38. package/dist/{chunk-PXJ6233U.cjs → chunk-MSVYQRR5.cjs} +20 -20
  39. package/dist/{chunk-CN2LV6PW.cjs → chunk-N6FDQIK2.cjs} +28 -28
  40. package/dist/{chunk-GHHWLGIX.cjs → chunk-OHRDLDIP.cjs} +10 -10
  41. package/dist/{chunk-MIR5DFB2.js → chunk-PTNJABER.js} +1 -1
  42. package/dist/{chunk-VGGKTP7O.cjs → chunk-T3Y3U76P.cjs} +45 -45
  43. package/dist/{chunk-4DIGUJQK.js → chunk-TRYDSYMO.js} +1 -1
  44. package/dist/{chunk-57NGNHTE.cjs → chunk-U5TF5OVR.cjs} +11 -11
  45. package/dist/{chunk-HRBIFPSE.js → chunk-VENGU37X.js} +1 -1
  46. package/dist/{chunk-ZGMOK3WQ.cjs → chunk-VQHEX2T6.cjs} +4 -4
  47. package/dist/{chunk-6VQT5NVA.js → chunk-WCN6AJE4.js} +1 -1
  48. package/dist/{chunk-XVTNPLK2.cjs → chunk-WXL6N7VZ.cjs} +2 -2
  49. package/dist/{chunk-NNDNY74C.cjs → chunk-X5QQOS6A.cjs} +3 -3
  50. package/dist/{chunk-OTLBOAKV.js → chunk-XMTBEHLG.js} +1 -1
  51. package/dist/{chunk-N7ZW5J2G.cjs → chunk-Z7XQ2DGU.cjs} +6 -6
  52. package/dist/{chunk-43CWVRBA.js → chunk-ZE2J5DX3.js} +1 -1
  53. package/dist/client/plugins.d.cts +2 -2
  54. package/dist/client/plugins.d.ts +2 -2
  55. package/dist/client.d.cts +1 -1
  56. package/dist/client.d.ts +1 -1
  57. package/dist/cookies.d.cts +1 -1
  58. package/dist/cookies.d.ts +1 -1
  59. package/dist/db.d.cts +2 -2
  60. package/dist/db.d.ts +2 -2
  61. package/dist/{index-DFOetPxx.d.ts → index-BlbchYIs.d.ts} +1 -1
  62. package/dist/{index-CV9NQllQ.d.cts → index-Cp__pYSB.d.cts} +1 -1
  63. package/dist/index.cjs +4 -4
  64. package/dist/index.d.cts +2 -2
  65. package/dist/index.d.ts +2 -2
  66. package/dist/index.js +1 -1
  67. package/dist/next-js.d.cts +1 -1
  68. package/dist/next-js.d.ts +1 -1
  69. package/dist/node.d.cts +1 -1
  70. package/dist/node.d.ts +1 -1
  71. package/dist/oauth2.d.cts +2 -2
  72. package/dist/oauth2.d.ts +2 -2
  73. package/dist/plugin/custom-session.cjs +3 -3
  74. package/dist/plugin/custom-session.d.cts +1 -1
  75. package/dist/plugin/custom-session.d.ts +1 -1
  76. package/dist/plugin/custom-session.js +2 -2
  77. package/dist/plugins/admin.cjs +3 -3
  78. package/dist/plugins/admin.d.cts +1 -1
  79. package/dist/plugins/admin.d.ts +1 -1
  80. package/dist/plugins/admin.js +2 -2
  81. package/dist/plugins/anonymous.cjs +3 -3
  82. package/dist/plugins/anonymous.d.cts +1 -1
  83. package/dist/plugins/anonymous.d.ts +1 -1
  84. package/dist/plugins/anonymous.js +2 -2
  85. package/dist/plugins/bearer.cjs +3 -3
  86. package/dist/plugins/bearer.d.cts +1 -1
  87. package/dist/plugins/bearer.d.ts +1 -1
  88. package/dist/plugins/bearer.js +2 -2
  89. package/dist/plugins/email-otp.cjs +3 -3
  90. package/dist/plugins/email-otp.d.cts +1 -1
  91. package/dist/plugins/email-otp.d.ts +1 -1
  92. package/dist/plugins/email-otp.js +2 -2
  93. package/dist/plugins/generic-oauth.cjs +3 -3
  94. package/dist/plugins/generic-oauth.d.cts +1 -1
  95. package/dist/plugins/generic-oauth.d.ts +1 -1
  96. package/dist/plugins/generic-oauth.js +2 -2
  97. package/dist/plugins/jwt.cjs +3 -3
  98. package/dist/plugins/jwt.d.cts +1 -1
  99. package/dist/plugins/jwt.d.ts +1 -1
  100. package/dist/plugins/jwt.js +2 -2
  101. package/dist/plugins/magic-link.cjs +3 -3
  102. package/dist/plugins/magic-link.js +2 -2
  103. package/dist/plugins/multi-session.cjs +3 -3
  104. package/dist/plugins/multi-session.d.cts +1 -1
  105. package/dist/plugins/multi-session.d.ts +1 -1
  106. package/dist/plugins/multi-session.js +2 -2
  107. package/dist/plugins/oidc-provider.cjs +3 -3
  108. package/dist/plugins/oidc-provider.d.cts +1 -1
  109. package/dist/plugins/oidc-provider.d.ts +1 -1
  110. package/dist/plugins/oidc-provider.js +2 -2
  111. package/dist/plugins/one-tap.cjs +3 -3
  112. package/dist/plugins/one-tap.js +2 -2
  113. package/dist/plugins/open-api.cjs +3 -3
  114. package/dist/plugins/open-api.d.cts +1 -1
  115. package/dist/plugins/open-api.d.ts +1 -1
  116. package/dist/plugins/open-api.js +2 -2
  117. package/dist/plugins/organization.cjs +3 -3
  118. package/dist/plugins/organization.d.cts +2 -2
  119. package/dist/plugins/organization.d.ts +2 -2
  120. package/dist/plugins/organization.js +2 -2
  121. package/dist/plugins/passkey.cjs +14 -14
  122. package/dist/plugins/passkey.d.cts +1 -1
  123. package/dist/plugins/passkey.d.ts +1 -1
  124. package/dist/plugins/passkey.js +1 -1
  125. package/dist/plugins/phone-number.cjs +3 -3
  126. package/dist/plugins/phone-number.d.cts +1 -1
  127. package/dist/plugins/phone-number.d.ts +1 -1
  128. package/dist/plugins/phone-number.js +2 -2
  129. package/dist/plugins/sso.cjs +9 -9
  130. package/dist/plugins/sso.d.cts +1 -1
  131. package/dist/plugins/sso.d.ts +1 -1
  132. package/dist/plugins/sso.js +1 -1
  133. package/dist/plugins/two-factor.cjs +3 -3
  134. package/dist/plugins/two-factor.d.cts +1 -1
  135. package/dist/plugins/two-factor.d.ts +1 -1
  136. package/dist/plugins/two-factor.js +2 -2
  137. package/dist/plugins/username.cjs +3 -3
  138. package/dist/plugins/username.d.cts +1 -1
  139. package/dist/plugins/username.d.ts +1 -1
  140. package/dist/plugins/username.js +2 -2
  141. package/dist/plugins.cjs +40 -40
  142. package/dist/plugins.d.cts +3 -3
  143. package/dist/plugins.d.ts +3 -3
  144. package/dist/plugins.js +18 -18
  145. package/dist/react.d.cts +1 -1
  146. package/dist/react.d.ts +1 -1
  147. package/dist/solid.d.cts +1 -1
  148. package/dist/solid.d.ts +1 -1
  149. package/dist/{state-Q0mqknPB.d.cts → state-Cjc7R2hX.d.cts} +1 -1
  150. package/dist/{state-H8vmLqdK.d.ts → state-D3c5bw0l.d.ts} +1 -1
  151. package/dist/svelte-kit.d.cts +1 -1
  152. package/dist/svelte-kit.d.ts +1 -1
  153. package/dist/svelte.d.cts +1 -1
  154. package/dist/svelte.d.ts +1 -1
  155. package/dist/types.d.cts +2 -2
  156. package/dist/types.d.ts +2 -2
  157. package/dist/vue.d.cts +1 -1
  158. package/dist/vue.d.ts +1 -1
  159. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-B-qaajUS.cjs';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-DoaT0L8W.cjs';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-DMS7IE-x.js';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-DY_qCjtR.js';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
@@ -1,5 +1,5 @@
1
1
  import { Kysely } from 'kysely';
2
- import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-B-qaajUS.cjs';
2
+ import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-DoaT0L8W.cjs';
3
3
  import 'better-call';
4
4
  import 'zod';
5
5
  import '../helper-Bi8FQwDD.cjs';
@@ -1,5 +1,5 @@
1
1
  import { Kysely } from 'kysely';
2
- import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-DMS7IE-x.js';
2
+ import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-DY_qCjtR.js';
3
3
  import 'better-call';
4
4
  import 'zod';
5
5
  import '../helper-Bi8FQwDD.js';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-B-qaajUS.cjs';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-DoaT0L8W.cjs';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-DMS7IE-x.js';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-DY_qCjtR.js';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
@@ -1,5 +1,5 @@
1
1
  import { Db } from 'mongodb';
2
- import { B as BetterAuthOptions, W as Where } from '../auth-B-qaajUS.cjs';
2
+ import { B as BetterAuthOptions, W as Where } from '../auth-DoaT0L8W.cjs';
3
3
  import 'kysely';
4
4
  import 'better-call';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
1
  import { Db } from 'mongodb';
2
- import { B as BetterAuthOptions, W as Where } from '../auth-DMS7IE-x.js';
2
+ import { B as BetterAuthOptions, W as Where } from '../auth-DY_qCjtR.js';
3
3
  import 'kysely';
4
4
  import 'better-call';
5
5
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-B-qaajUS.cjs';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-DoaT0L8W.cjs';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-DMS7IE-x.js';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-DY_qCjtR.js';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, A as Adapter } from '../auth-B-qaajUS.cjs';
1
+ import { B as BetterAuthOptions, A as Adapter } from '../auth-DoaT0L8W.cjs';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, A as Adapter } from '../auth-DMS7IE-x.js';
1
+ import { B as BetterAuthOptions, A as Adapter } from '../auth-DY_qCjtR.js';
2
2
  import 'kysely';
3
3
  import 'better-call';
4
4
  import 'zod';
package/dist/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkV5DC4R7E_cjs = require('./chunk-V5DC4R7E.cjs');
3
+ var chunkGOYMBBTZ_cjs = require('./chunk-GOYMBBTZ.cjs');
4
4
  require('./chunk-I36VKITU.cjs');
5
5
  require('./chunk-V6RGXSG4.cjs');
6
6
  require('./chunk-S5UORXJH.cjs');
@@ -19,157 +19,157 @@ require('./chunk-PEZRSDZS.cjs');
19
19
 
20
20
  Object.defineProperty(exports, "APIError", {
21
21
  enumerable: true,
22
- get: function () { return chunkV5DC4R7E_cjs.APIError; }
22
+ get: function () { return chunkGOYMBBTZ_cjs.APIError; }
23
23
  });
24
24
  Object.defineProperty(exports, "callbackOAuth", {
25
25
  enumerable: true,
26
- get: function () { return chunkV5DC4R7E_cjs.callbackOAuth; }
26
+ get: function () { return chunkGOYMBBTZ_cjs.callbackOAuth; }
27
27
  });
28
28
  Object.defineProperty(exports, "changeEmail", {
29
29
  enumerable: true,
30
- get: function () { return chunkV5DC4R7E_cjs.changeEmail; }
30
+ get: function () { return chunkGOYMBBTZ_cjs.changeEmail; }
31
31
  });
32
32
  Object.defineProperty(exports, "changePassword", {
33
33
  enumerable: true,
34
- get: function () { return chunkV5DC4R7E_cjs.changePassword; }
34
+ get: function () { return chunkGOYMBBTZ_cjs.changePassword; }
35
35
  });
36
36
  Object.defineProperty(exports, "createAuthEndpoint", {
37
37
  enumerable: true,
38
- get: function () { return chunkV5DC4R7E_cjs.createAuthEndpoint; }
38
+ get: function () { return chunkGOYMBBTZ_cjs.createAuthEndpoint; }
39
39
  });
40
40
  Object.defineProperty(exports, "createAuthMiddleware", {
41
41
  enumerable: true,
42
- get: function () { return chunkV5DC4R7E_cjs.createAuthMiddleware; }
42
+ get: function () { return chunkGOYMBBTZ_cjs.createAuthMiddleware; }
43
43
  });
44
44
  Object.defineProperty(exports, "createEmailVerificationToken", {
45
45
  enumerable: true,
46
- get: function () { return chunkV5DC4R7E_cjs.createEmailVerificationToken; }
46
+ get: function () { return chunkGOYMBBTZ_cjs.createEmailVerificationToken; }
47
47
  });
48
48
  Object.defineProperty(exports, "deleteUser", {
49
49
  enumerable: true,
50
- get: function () { return chunkV5DC4R7E_cjs.deleteUser; }
50
+ get: function () { return chunkGOYMBBTZ_cjs.deleteUser; }
51
51
  });
52
52
  Object.defineProperty(exports, "deleteUserCallback", {
53
53
  enumerable: true,
54
- get: function () { return chunkV5DC4R7E_cjs.deleteUserCallback; }
54
+ get: function () { return chunkGOYMBBTZ_cjs.deleteUserCallback; }
55
55
  });
56
56
  Object.defineProperty(exports, "error", {
57
57
  enumerable: true,
58
- get: function () { return chunkV5DC4R7E_cjs.error; }
58
+ get: function () { return chunkGOYMBBTZ_cjs.error; }
59
59
  });
60
60
  Object.defineProperty(exports, "forgetPassword", {
61
61
  enumerable: true,
62
- get: function () { return chunkV5DC4R7E_cjs.forgetPassword; }
62
+ get: function () { return chunkGOYMBBTZ_cjs.forgetPassword; }
63
63
  });
64
64
  Object.defineProperty(exports, "forgetPasswordCallback", {
65
65
  enumerable: true,
66
- get: function () { return chunkV5DC4R7E_cjs.forgetPasswordCallback; }
66
+ get: function () { return chunkGOYMBBTZ_cjs.forgetPasswordCallback; }
67
67
  });
68
68
  Object.defineProperty(exports, "freshSessionMiddleware", {
69
69
  enumerable: true,
70
- get: function () { return chunkV5DC4R7E_cjs.freshSessionMiddleware; }
70
+ get: function () { return chunkGOYMBBTZ_cjs.freshSessionMiddleware; }
71
71
  });
72
72
  Object.defineProperty(exports, "getEndpoints", {
73
73
  enumerable: true,
74
- get: function () { return chunkV5DC4R7E_cjs.getEndpoints; }
74
+ get: function () { return chunkGOYMBBTZ_cjs.getEndpoints; }
75
75
  });
76
76
  Object.defineProperty(exports, "getSession", {
77
77
  enumerable: true,
78
- get: function () { return chunkV5DC4R7E_cjs.getSession; }
78
+ get: function () { return chunkGOYMBBTZ_cjs.getSession; }
79
79
  });
80
80
  Object.defineProperty(exports, "getSessionFromCtx", {
81
81
  enumerable: true,
82
- get: function () { return chunkV5DC4R7E_cjs.getSessionFromCtx; }
82
+ get: function () { return chunkGOYMBBTZ_cjs.getSessionFromCtx; }
83
83
  });
84
84
  Object.defineProperty(exports, "linkSocialAccount", {
85
85
  enumerable: true,
86
- get: function () { return chunkV5DC4R7E_cjs.linkSocialAccount; }
86
+ get: function () { return chunkGOYMBBTZ_cjs.linkSocialAccount; }
87
87
  });
88
88
  Object.defineProperty(exports, "listSessions", {
89
89
  enumerable: true,
90
- get: function () { return chunkV5DC4R7E_cjs.listSessions; }
90
+ get: function () { return chunkGOYMBBTZ_cjs.listSessions; }
91
91
  });
92
92
  Object.defineProperty(exports, "listUserAccounts", {
93
93
  enumerable: true,
94
- get: function () { return chunkV5DC4R7E_cjs.listUserAccounts; }
94
+ get: function () { return chunkGOYMBBTZ_cjs.listUserAccounts; }
95
95
  });
96
96
  Object.defineProperty(exports, "ok", {
97
97
  enumerable: true,
98
- get: function () { return chunkV5DC4R7E_cjs.ok; }
98
+ get: function () { return chunkGOYMBBTZ_cjs.ok; }
99
99
  });
100
100
  Object.defineProperty(exports, "optionsMiddleware", {
101
101
  enumerable: true,
102
- get: function () { return chunkV5DC4R7E_cjs.optionsMiddleware; }
102
+ get: function () { return chunkGOYMBBTZ_cjs.optionsMiddleware; }
103
103
  });
104
104
  Object.defineProperty(exports, "originCheck", {
105
105
  enumerable: true,
106
- get: function () { return chunkV5DC4R7E_cjs.originCheck; }
106
+ get: function () { return chunkGOYMBBTZ_cjs.originCheck; }
107
107
  });
108
108
  Object.defineProperty(exports, "originCheckMiddleware", {
109
109
  enumerable: true,
110
- get: function () { return chunkV5DC4R7E_cjs.originCheckMiddleware; }
110
+ get: function () { return chunkGOYMBBTZ_cjs.originCheckMiddleware; }
111
111
  });
112
112
  Object.defineProperty(exports, "resetPassword", {
113
113
  enumerable: true,
114
- get: function () { return chunkV5DC4R7E_cjs.resetPassword; }
114
+ get: function () { return chunkGOYMBBTZ_cjs.resetPassword; }
115
115
  });
116
116
  Object.defineProperty(exports, "revokeOtherSessions", {
117
117
  enumerable: true,
118
- get: function () { return chunkV5DC4R7E_cjs.revokeOtherSessions; }
118
+ get: function () { return chunkGOYMBBTZ_cjs.revokeOtherSessions; }
119
119
  });
120
120
  Object.defineProperty(exports, "revokeSession", {
121
121
  enumerable: true,
122
- get: function () { return chunkV5DC4R7E_cjs.revokeSession; }
122
+ get: function () { return chunkGOYMBBTZ_cjs.revokeSession; }
123
123
  });
124
124
  Object.defineProperty(exports, "revokeSessions", {
125
125
  enumerable: true,
126
- get: function () { return chunkV5DC4R7E_cjs.revokeSessions; }
126
+ get: function () { return chunkGOYMBBTZ_cjs.revokeSessions; }
127
127
  });
128
128
  Object.defineProperty(exports, "router", {
129
129
  enumerable: true,
130
- get: function () { return chunkV5DC4R7E_cjs.router; }
130
+ get: function () { return chunkGOYMBBTZ_cjs.router; }
131
131
  });
132
132
  Object.defineProperty(exports, "sendVerificationEmail", {
133
133
  enumerable: true,
134
- get: function () { return chunkV5DC4R7E_cjs.sendVerificationEmail; }
134
+ get: function () { return chunkGOYMBBTZ_cjs.sendVerificationEmail; }
135
135
  });
136
136
  Object.defineProperty(exports, "sendVerificationEmailFn", {
137
137
  enumerable: true,
138
- get: function () { return chunkV5DC4R7E_cjs.sendVerificationEmailFn; }
138
+ get: function () { return chunkGOYMBBTZ_cjs.sendVerificationEmailFn; }
139
139
  });
140
140
  Object.defineProperty(exports, "sessionMiddleware", {
141
141
  enumerable: true,
142
- get: function () { return chunkV5DC4R7E_cjs.sessionMiddleware; }
142
+ get: function () { return chunkGOYMBBTZ_cjs.sessionMiddleware; }
143
143
  });
144
144
  Object.defineProperty(exports, "setPassword", {
145
145
  enumerable: true,
146
- get: function () { return chunkV5DC4R7E_cjs.setPassword; }
146
+ get: function () { return chunkGOYMBBTZ_cjs.setPassword; }
147
147
  });
148
148
  Object.defineProperty(exports, "signInEmail", {
149
149
  enumerable: true,
150
- get: function () { return chunkV5DC4R7E_cjs.signInEmail; }
150
+ get: function () { return chunkGOYMBBTZ_cjs.signInEmail; }
151
151
  });
152
152
  Object.defineProperty(exports, "signInSocial", {
153
153
  enumerable: true,
154
- get: function () { return chunkV5DC4R7E_cjs.signInSocial; }
154
+ get: function () { return chunkGOYMBBTZ_cjs.signInSocial; }
155
155
  });
156
156
  Object.defineProperty(exports, "signOut", {
157
157
  enumerable: true,
158
- get: function () { return chunkV5DC4R7E_cjs.signOut; }
158
+ get: function () { return chunkGOYMBBTZ_cjs.signOut; }
159
159
  });
160
160
  Object.defineProperty(exports, "signUpEmail", {
161
161
  enumerable: true,
162
- get: function () { return chunkV5DC4R7E_cjs.signUpEmail; }
162
+ get: function () { return chunkGOYMBBTZ_cjs.signUpEmail; }
163
163
  });
164
164
  Object.defineProperty(exports, "unlinkAccount", {
165
165
  enumerable: true,
166
- get: function () { return chunkV5DC4R7E_cjs.unlinkAccount; }
166
+ get: function () { return chunkGOYMBBTZ_cjs.unlinkAccount; }
167
167
  });
168
168
  Object.defineProperty(exports, "updateUser", {
169
169
  enumerable: true,
170
- get: function () { return chunkV5DC4R7E_cjs.updateUser; }
170
+ get: function () { return chunkGOYMBBTZ_cjs.updateUser; }
171
171
  });
172
172
  Object.defineProperty(exports, "verifyEmail", {
173
173
  enumerable: true,
174
- get: function () { return chunkV5DC4R7E_cjs.verifyEmail; }
174
+ get: function () { return chunkGOYMBBTZ_cjs.verifyEmail; }
175
175
  });
package/dist/api.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as AuthEndpoint, j as AuthMiddleware, aF as callbackOAuth, a$ as changeEmail, aX as changePassword, h as createAuthEndpoint, g as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aC as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aI as sessionMiddleware, aY as setPassword, aE as signInEmail, aD as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from './auth-B-qaajUS.cjs';
1
+ export { i as AuthEndpoint, j as AuthMiddleware, aF as callbackOAuth, a$ as changeEmail, aX as changePassword, h as createAuthEndpoint, g as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aC as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aI as sessionMiddleware, aY as setPassword, aE as signInEmail, aD as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from './auth-DoaT0L8W.cjs';
2
2
  import './helper-Bi8FQwDD.cjs';
3
3
  export { APIError } from 'better-call';
4
4
  import 'zod';
package/dist/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as AuthEndpoint, j as AuthMiddleware, aF as callbackOAuth, a$ as changeEmail, aX as changePassword, h as createAuthEndpoint, g as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aC as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aI as sessionMiddleware, aY as setPassword, aE as signInEmail, aD as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from './auth-DMS7IE-x.js';
1
+ export { i as AuthEndpoint, j as AuthMiddleware, aF as callbackOAuth, a$ as changeEmail, aX as changePassword, h as createAuthEndpoint, g as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b7 as originCheck, b6 as originCheckMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aC as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aI as sessionMiddleware, aY as setPassword, aE as signInEmail, aD as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from './auth-DY_qCjtR.js';
2
2
  import './helper-Bi8FQwDD.js';
3
3
  export { APIError } from 'better-call';
4
4
  import 'zod';
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- export { APIError, callbackOAuth, changeEmail, changePassword, createAuthEndpoint, createAuthMiddleware, createEmailVerificationToken, deleteUser, deleteUserCallback, error, forgetPassword, forgetPasswordCallback, freshSessionMiddleware, getEndpoints, getSession, getSessionFromCtx, linkSocialAccount, listSessions, listUserAccounts, ok, optionsMiddleware, originCheck, originCheckMiddleware, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, sendVerificationEmailFn, sessionMiddleware, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail } from './chunk-M4FOYSWF.js';
1
+ export { APIError, callbackOAuth, changeEmail, changePassword, createAuthEndpoint, createAuthMiddleware, createEmailVerificationToken, deleteUser, deleteUserCallback, error, forgetPassword, forgetPasswordCallback, freshSessionMiddleware, getEndpoints, getSession, getSessionFromCtx, linkSocialAccount, listSessions, listUserAccounts, ok, optionsMiddleware, originCheck, originCheckMiddleware, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, sendVerificationEmailFn, sessionMiddleware, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail } from './chunk-4MLWJAX2.js';
2
2
  import './chunk-PZHXSDZK.js';
3
3
  import './chunk-GTQM7JU7.js';
4
4
  import './chunk-XFCIANZX.js';
@@ -575,7 +575,7 @@ type InferPluginErrorCodes<O extends BetterAuthOptions> = O["plugins"] extends A
575
575
  */
576
576
  type Where = {
577
577
  operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "contains" | "starts_with" | "ends_with";
578
- value: string | number | boolean | string[] | number[];
578
+ value: string | number | boolean | string[] | number[] | Date | null;
579
579
  field: string;
580
580
  connector?: "AND" | "OR";
581
581
  };
@@ -575,7 +575,7 @@ type InferPluginErrorCodes<O extends BetterAuthOptions> = O["plugins"] extends A
575
575
  */
576
576
  type Where = {
577
577
  operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "contains" | "starts_with" | "ends_with";
578
- value: string | number | boolean | string[] | number[];
578
+ value: string | number | boolean | string[] | number[] | Date | null;
579
579
  field: string;
580
580
  connector?: "AND" | "OR";
581
581
  };
@@ -1,5 +1,5 @@
1
1
  import { TWO_FACTOR_ERROR_CODES } from './chunk-WMXBA6LX.js';
2
- import { createAuthEndpoint, sendVerificationEmailFn, BASE_ERROR_CODES } from './chunk-M4FOYSWF.js';
2
+ import { createAuthEndpoint, sendVerificationEmailFn, BASE_ERROR_CODES } from './chunk-4MLWJAX2.js';
3
3
  import { setSessionCookie } from './chunk-QQGZ3XGI.js';
4
4
  import { mergeSchema } from './chunk-HZBNUY7E.js';
5
5
  import { z } from 'zod';
@@ -1,4 +1,4 @@
1
- import { createAuthEndpoint, sessionMiddleware, APIError, createAuthMiddleware } from './chunk-M4FOYSWF.js';
1
+ import { createAuthEndpoint, sessionMiddleware, APIError, createAuthMiddleware } from './chunk-4MLWJAX2.js';
2
2
  import { parseCookies, setSessionCookie, deleteSessionCookie, parseSetCookieHeader } from './chunk-QQGZ3XGI.js';
3
3
  import { z } from 'zod';
4
4
 
@@ -1,4 +1,4 @@
1
- import { createAuthEndpoint, getSessionFromCtx } from './chunk-M4FOYSWF.js';
1
+ import { createAuthEndpoint, getSessionFromCtx } from './chunk-4MLWJAX2.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  var customSession = (fn, options) => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkV5DC4R7E_cjs = require('./chunk-V5DC4R7E.cjs');
3
+ var chunkGOYMBBTZ_cjs = require('./chunk-GOYMBBTZ.cjs');
4
4
  var chunkV6HE2MP7_cjs = require('./chunk-V6HE2MP7.cjs');
5
5
  var chunkG2LZ73E2_cjs = require('./chunk-G2LZ73E2.cjs');
6
6
  var chunk2HPSCSV7_cjs = require('./chunk-2HPSCSV7.cjs');
@@ -22,7 +22,7 @@ var emailOTP = (options) => {
22
22
  return {
23
23
  id: "email-otp",
24
24
  endpoints: {
25
- sendVerificationOTP: chunkV5DC4R7E_cjs.createAuthEndpoint(
25
+ sendVerificationOTP: chunkGOYMBBTZ_cjs.createAuthEndpoint(
26
26
  "/email-otp/send-verification-otp",
27
27
  {
28
28
  method: "POST",
@@ -62,14 +62,14 @@ var emailOTP = (options) => {
62
62
  ctx.context.logger.error(
63
63
  "send email verification is not implemented"
64
64
  );
65
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
65
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
66
66
  message: "send email verification is not implemented"
67
67
  });
68
68
  }
69
69
  const email = ctx.body.email;
70
70
  const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
71
71
  if (!emailRegex.test(email)) {
72
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
72
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
73
73
  message: ERROR_CODES.INVALID_EMAIL
74
74
  });
75
75
  }
@@ -109,7 +109,7 @@ var emailOTP = (options) => {
109
109
  });
110
110
  }
111
111
  ),
112
- createVerificationOTP: chunkV5DC4R7E_cjs.createAuthEndpoint(
112
+ createVerificationOTP: chunkGOYMBBTZ_cjs.createAuthEndpoint(
113
113
  "/email-otp/create-verification-otp",
114
114
  {
115
115
  method: "POST",
@@ -151,7 +151,7 @@ var emailOTP = (options) => {
151
151
  return otp;
152
152
  }
153
153
  ),
154
- getVerificationOTP: chunkV5DC4R7E_cjs.createAuthEndpoint(
154
+ getVerificationOTP: chunkGOYMBBTZ_cjs.createAuthEndpoint(
155
155
  "/email-otp/get-verification-otp",
156
156
  {
157
157
  method: "GET",
@@ -200,7 +200,7 @@ var emailOTP = (options) => {
200
200
  });
201
201
  }
202
202
  ),
203
- verifyEmailOTP: chunkV5DC4R7E_cjs.createAuthEndpoint(
203
+ verifyEmailOTP: chunkGOYMBBTZ_cjs.createAuthEndpoint(
204
204
  "/email-otp/verify-email",
205
205
  {
206
206
  method: "POST",
@@ -239,7 +239,7 @@ var emailOTP = (options) => {
239
239
  const email = ctx.body.email;
240
240
  const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
241
241
  if (!emailRegex.test(email)) {
242
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
242
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
243
243
  message: ERROR_CODES.INVALID_EMAIL
244
244
  });
245
245
  }
@@ -247,7 +247,7 @@ var emailOTP = (options) => {
247
247
  `email-verification-otp-${email}`
248
248
  );
249
249
  if (!verificationValue) {
250
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
250
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
251
251
  message: ERROR_CODES.INVALID_OTP
252
252
  });
253
253
  }
@@ -255,13 +255,13 @@ var emailOTP = (options) => {
255
255
  await ctx.context.internalAdapter.deleteVerificationValue(
256
256
  verificationValue.id
257
257
  );
258
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
258
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
259
259
  message: ERROR_CODES.OTP_EXPIRED
260
260
  });
261
261
  }
262
262
  const otp = ctx.body.otp;
263
263
  if (verificationValue.value !== otp) {
264
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
264
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
265
265
  message: ERROR_CODES.INVALID_OTP
266
266
  });
267
267
  }
@@ -270,7 +270,7 @@ var emailOTP = (options) => {
270
270
  );
271
271
  const user = await ctx.context.internalAdapter.findUserByEmail(email);
272
272
  if (!user) {
273
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
273
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
274
274
  message: ERROR_CODES.USER_NOT_FOUND
275
275
  });
276
276
  }
@@ -319,7 +319,7 @@ var emailOTP = (options) => {
319
319
  });
320
320
  }
321
321
  ),
322
- signInEmailOTP: chunkV5DC4R7E_cjs.createAuthEndpoint(
322
+ signInEmailOTP: chunkGOYMBBTZ_cjs.createAuthEndpoint(
323
323
  "/sign-in/email-otp",
324
324
  {
325
325
  method: "POST",
@@ -363,7 +363,7 @@ var emailOTP = (options) => {
363
363
  `sign-in-otp-${email}`
364
364
  );
365
365
  if (!verificationValue) {
366
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
366
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
367
367
  message: ERROR_CODES.INVALID_OTP
368
368
  });
369
369
  }
@@ -371,13 +371,13 @@ var emailOTP = (options) => {
371
371
  await ctx.context.internalAdapter.deleteVerificationValue(
372
372
  verificationValue.id
373
373
  );
374
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
374
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
375
375
  message: ERROR_CODES.OTP_EXPIRED
376
376
  });
377
377
  }
378
378
  const otp = ctx.body.otp;
379
379
  if (verificationValue.value !== otp) {
380
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
380
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
381
381
  message: ERROR_CODES.INVALID_OTP
382
382
  });
383
383
  }
@@ -387,7 +387,7 @@ var emailOTP = (options) => {
387
387
  const user = await ctx.context.internalAdapter.findUserByEmail(email);
388
388
  if (!user) {
389
389
  if (opts.disableSignUp) {
390
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
390
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
391
391
  message: ERROR_CODES.USER_NOT_FOUND
392
392
  });
393
393
  }
@@ -444,7 +444,7 @@ var emailOTP = (options) => {
444
444
  });
445
445
  }
446
446
  ),
447
- forgetPasswordEmailOTP: chunkV5DC4R7E_cjs.createAuthEndpoint(
447
+ forgetPasswordEmailOTP: chunkGOYMBBTZ_cjs.createAuthEndpoint(
448
448
  "/forget-password/email-otp",
449
449
  {
450
450
  method: "POST",
@@ -480,7 +480,7 @@ var emailOTP = (options) => {
480
480
  const email = ctx.body.email;
481
481
  const user = await ctx.context.internalAdapter.findUserByEmail(email);
482
482
  if (!user) {
483
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
483
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
484
484
  message: ERROR_CODES.USER_NOT_FOUND
485
485
  });
486
486
  }
@@ -503,7 +503,7 @@ var emailOTP = (options) => {
503
503
  });
504
504
  }
505
505
  ),
506
- resetPasswordEmailOTP: chunkV5DC4R7E_cjs.createAuthEndpoint(
506
+ resetPasswordEmailOTP: chunkGOYMBBTZ_cjs.createAuthEndpoint(
507
507
  "/email-otp/reset-password",
508
508
  {
509
509
  method: "POST",
@@ -550,7 +550,7 @@ var emailOTP = (options) => {
550
550
  }
551
551
  );
552
552
  if (!user) {
553
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
553
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
554
554
  message: ERROR_CODES.USER_NOT_FOUND
555
555
  });
556
556
  }
@@ -558,7 +558,7 @@ var emailOTP = (options) => {
558
558
  `forget-password-otp-${email}`
559
559
  );
560
560
  if (!verificationValue) {
561
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
561
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
562
562
  message: ERROR_CODES.INVALID_OTP
563
563
  });
564
564
  }
@@ -566,13 +566,13 @@ var emailOTP = (options) => {
566
566
  await ctx.context.internalAdapter.deleteVerificationValue(
567
567
  verificationValue.id
568
568
  );
569
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
569
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
570
570
  message: ERROR_CODES.OTP_EXPIRED
571
571
  });
572
572
  }
573
573
  const otp = ctx.body.otp;
574
574
  if (verificationValue.value !== otp) {
575
- throw new chunkV5DC4R7E_cjs.APIError("BAD_REQUEST", {
575
+ throw new chunkGOYMBBTZ_cjs.APIError("BAD_REQUEST", {
576
576
  message: ERROR_CODES.INVALID_OTP
577
577
  });
578
578
  }
@@ -612,7 +612,7 @@ var emailOTP = (options) => {
612
612
  },
613
613
  async handler(ctx) {
614
614
  const response = ctx.context.returned;
615
- if (response instanceof chunkV5DC4R7E_cjs.APIError) {
615
+ if (response instanceof chunkGOYMBBTZ_cjs.APIError) {
616
616
  return;
617
617
  }
618
618
  const email = response && "email" in response ? response.email : response instanceof Response ? response.status === 200 ? ctx.body.email : null : null;
@@ -1,4 +1,4 @@
1
- import { createAuthEndpoint, sessionMiddleware, APIError, getSessionFromCtx } from './chunk-M4FOYSWF.js';
1
+ import { createAuthEndpoint, sessionMiddleware, APIError, getSessionFromCtx } from './chunk-4MLWJAX2.js';
2
2
  import { parseSetCookieHeader } from './chunk-QQGZ3XGI.js';
3
3
  import { generateRandomString } from './chunk-DBPOZRMS.js';
4
4
  import { SignJWT } from 'jose';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkV5DC4R7E_cjs = require('./chunk-V5DC4R7E.cjs');
3
+ var chunkGOYMBBTZ_cjs = require('./chunk-GOYMBBTZ.cjs');
4
4
  var chunkV6HE2MP7_cjs = require('./chunk-V6HE2MP7.cjs');
5
5
  var chunkG2LZ73E2_cjs = require('./chunk-G2LZ73E2.cjs');
6
6
  var zod = require('zod');
@@ -10,7 +10,7 @@ var magicLink = (options) => {
10
10
  return {
11
11
  id: "magic-link",
12
12
  endpoints: {
13
- signInMagicLink: chunkV5DC4R7E_cjs.createAuthEndpoint(
13
+ signInMagicLink: chunkGOYMBBTZ_cjs.createAuthEndpoint(
14
14
  "/sign-in/magic-link",
15
15
  {
16
16
  method: "POST",
@@ -55,7 +55,7 @@ var magicLink = (options) => {
55
55
  const user = await ctx.context.internalAdapter.findUserByEmail(email);
56
56
  if (!user) {
57
57
  throw new betterCall.APIError("BAD_REQUEST", {
58
- message: chunkV5DC4R7E_cjs.BASE_ERROR_CODES.USER_NOT_FOUND
58
+ message: chunkGOYMBBTZ_cjs.BASE_ERROR_CODES.USER_NOT_FOUND
59
59
  });
60
60
  }
61
61
  }
@@ -81,7 +81,7 @@ var magicLink = (options) => {
81
81
  });
82
82
  }
83
83
  ),
84
- magicLinkVerify: chunkV5DC4R7E_cjs.createAuthEndpoint(
84
+ magicLinkVerify: chunkGOYMBBTZ_cjs.createAuthEndpoint(
85
85
  "/magic-link/verify",
86
86
  {
87
87
  method: "GET",
@@ -93,7 +93,7 @@ var magicLink = (options) => {
93
93
  description: "URL to redirect after magic link verification, if not provided will return session"
94
94
  }).optional()
95
95
  }),
96
- use: [chunkV5DC4R7E_cjs.originCheck((ctx) => ctx.query.callbackURL)],
96
+ use: [chunkGOYMBBTZ_cjs.originCheck((ctx) => ctx.query.callbackURL)],
97
97
  requireHeaders: true,
98
98
  metadata: {
99
99
  openapi: {