better-auth 1.4.20 → 1.4.22

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 (61) hide show
  1. package/dist/adapters/memory-adapter/memory-adapter.d.mts +2 -2
  2. package/dist/api/index.d.mts +99 -99
  3. package/dist/api/routes/account.d.mts +11 -11
  4. package/dist/api/routes/callback.d.mts +2 -2
  5. package/dist/api/routes/email-verification.d.mts +4 -4
  6. package/dist/api/routes/error.d.mts +2 -2
  7. package/dist/api/routes/ok.d.mts +2 -2
  8. package/dist/api/routes/password.d.mts +7 -7
  9. package/dist/api/routes/session.d.mts +14 -14
  10. package/dist/api/routes/sign-in.d.mts +4 -4
  11. package/dist/api/routes/sign-out.d.mts +2 -2
  12. package/dist/api/routes/sign-up.d.mts +3 -3
  13. package/dist/api/routes/update-user.d.mts +13 -13
  14. package/dist/client/lynx/index.d.mts +13 -13
  15. package/dist/client/react/index.d.mts +13 -13
  16. package/dist/client/solid/index.d.mts +13 -13
  17. package/dist/client/svelte/index.d.mts +15 -15
  18. package/dist/client/vanilla.d.mts +15 -15
  19. package/dist/client/vue/index.d.mts +15 -15
  20. package/dist/db/field.d.mts +3 -3
  21. package/dist/integrations/svelte-kit.d.mts +2 -2
  22. package/dist/integrations/tanstack-start-solid.d.mts +4 -4
  23. package/dist/integrations/tanstack-start.d.mts +4 -4
  24. package/dist/plugins/admin/admin.d.mts +3 -3
  25. package/dist/plugins/anonymous/index.d.mts +7 -7
  26. package/dist/plugins/api-key/index.d.mts +36 -36
  27. package/dist/plugins/bearer/index.d.mts +6 -6
  28. package/dist/plugins/captcha/index.d.mts +2 -2
  29. package/dist/plugins/custom-session/index.d.mts +5 -5
  30. package/dist/plugins/device-authorization/index.d.mts +6 -6
  31. package/dist/plugins/email-otp/index.d.mts +14 -14
  32. package/dist/plugins/generic-oauth/index.d.mts +5 -5
  33. package/dist/plugins/haveibeenpwned/index.d.mts +3 -3
  34. package/dist/plugins/jwt/client.d.mts +2 -2
  35. package/dist/plugins/jwt/index.d.mts +9 -9
  36. package/dist/plugins/last-login-method/index.d.mts +4 -4
  37. package/dist/plugins/magic-link/index.d.mts +4 -4
  38. package/dist/plugins/mcp/index.d.mts +10 -10
  39. package/dist/plugins/multi-session/index.d.mts +9 -9
  40. package/dist/plugins/oauth-proxy/index.d.mts +8 -8
  41. package/dist/plugins/oidc-provider/index.d.mts +13 -13
  42. package/dist/plugins/one-tap/client.d.mts +5 -5
  43. package/dist/plugins/one-tap/index.d.mts +2 -2
  44. package/dist/plugins/one-time-token/index.d.mts +5 -5
  45. package/dist/plugins/open-api/index.d.mts +3 -3
  46. package/dist/plugins/organization/adapter.d.mts +24 -24
  47. package/dist/plugins/organization/client.d.mts +9 -9
  48. package/dist/plugins/organization/organization.d.mts +3 -3
  49. package/dist/plugins/organization/routes/crud-access-control.d.mts +22 -22
  50. package/dist/plugins/organization/routes/crud-invites.d.mts +69 -69
  51. package/dist/plugins/organization/routes/crud-members.d.mts +67 -67
  52. package/dist/plugins/organization/routes/crud-org.d.mts +59 -59
  53. package/dist/plugins/organization/routes/crud-team.d.mts +79 -79
  54. package/dist/plugins/phone-number/index.d.mts +9 -9
  55. package/dist/plugins/siwe/index.d.mts +3 -3
  56. package/dist/plugins/two-factor/client.d.mts +2 -2
  57. package/dist/plugins/two-factor/index.d.mts +18 -18
  58. package/dist/plugins/username/index.d.mts +4 -4
  59. package/dist/plugins/username/schema.d.mts +3 -3
  60. package/dist/test-utils/test-instance.d.mts +312 -312
  61. package/package.json +3 -3
@@ -1,10 +1,10 @@
1
1
  import { ApiKey, ApiKeyOptions } from "./types.mjs";
2
- import * as _better_auth_core23 from "@better-auth/core";
3
- import * as _better_auth_core_db5 from "@better-auth/core/db";
2
+ import * as _better_auth_core22 from "@better-auth/core";
3
+ import * as _better_auth_core_db3 from "@better-auth/core/db";
4
4
  import * as _better_auth_core_env0 from "@better-auth/core/env";
5
5
  import * as _better_auth_core_oauth22 from "@better-auth/core/oauth2";
6
6
  import * as _better_auth_core_db_adapter0 from "@better-auth/core/db/adapter";
7
- import * as better_call264 from "better-call";
7
+ import * as better_call262 from "better-call";
8
8
  import * as zod530 from "zod";
9
9
  import * as zod_v4_core78 from "zod/v4/core";
10
10
 
@@ -69,8 +69,8 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
69
69
  };
70
70
  hooks: {
71
71
  before: {
72
- matcher: (ctx: _better_auth_core23.HookEndpointContext) => boolean;
73
- handler: (inputContext: better_call264.MiddlewareInputContext<better_call264.MiddlewareOptions>) => Promise<{
72
+ matcher: (ctx: _better_auth_core22.HookEndpointContext) => boolean;
73
+ handler: (inputContext: better_call262.MiddlewareInputContext<better_call262.MiddlewareOptions>) => Promise<{
74
74
  user: {
75
75
  id: string;
76
76
  createdAt: Date;
@@ -91,11 +91,11 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
91
91
  expiresAt: Date;
92
92
  };
93
93
  } | {
94
- context: better_call264.MiddlewareContext<better_call264.MiddlewareOptions, {
94
+ context: better_call262.MiddlewareContext<better_call262.MiddlewareOptions, {
95
95
  returned?: unknown | undefined;
96
96
  responseHeaders?: Headers | undefined;
97
- } & _better_auth_core23.PluginContext & _better_auth_core23.InfoContext & {
98
- options: _better_auth_core23.BetterAuthOptions;
97
+ } & _better_auth_core22.PluginContext & _better_auth_core22.InfoContext & {
98
+ options: _better_auth_core22.BetterAuthOptions;
99
99
  appName: string;
100
100
  baseURL: string;
101
101
  trustedOrigins: string[];
@@ -107,29 +107,29 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
107
107
  storeStateStrategy: "database" | "cookie";
108
108
  };
109
109
  newSession: {
110
- session: _better_auth_core_db5.Session & Record<string, any>;
111
- user: _better_auth_core_db5.User & Record<string, any>;
110
+ session: _better_auth_core_db3.Session & Record<string, any>;
111
+ user: _better_auth_core_db3.User & Record<string, any>;
112
112
  } | null;
113
113
  session: {
114
- session: _better_auth_core_db5.Session & Record<string, any>;
115
- user: _better_auth_core_db5.User & Record<string, any>;
114
+ session: _better_auth_core_db3.Session & Record<string, any>;
115
+ user: _better_auth_core_db3.User & Record<string, any>;
116
116
  } | null;
117
117
  setNewSession: (session: {
118
- session: _better_auth_core_db5.Session & Record<string, any>;
119
- user: _better_auth_core_db5.User & Record<string, any>;
118
+ session: _better_auth_core_db3.Session & Record<string, any>;
119
+ user: _better_auth_core_db3.User & Record<string, any>;
120
120
  } | null) => void;
121
121
  socialProviders: _better_auth_core_oauth22.OAuthProvider[];
122
- authCookies: _better_auth_core23.BetterAuthCookies;
122
+ authCookies: _better_auth_core22.BetterAuthCookies;
123
123
  logger: ReturnType<typeof _better_auth_core_env0.createLogger>;
124
124
  rateLimit: {
125
125
  enabled: boolean;
126
126
  window: number;
127
127
  max: number;
128
128
  storage: "memory" | "database" | "secondary-storage";
129
- } & Omit<_better_auth_core23.BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
130
- adapter: _better_auth_core_db_adapter0.DBAdapter<_better_auth_core23.BetterAuthOptions>;
131
- internalAdapter: _better_auth_core23.InternalAdapter<_better_auth_core23.BetterAuthOptions>;
132
- createAuthCookie: (cookieName: string, overrideAttributes?: Partial<better_call264.CookieOptions> | undefined) => _better_auth_core23.BetterAuthCookie;
129
+ } & Omit<_better_auth_core22.BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
130
+ adapter: _better_auth_core_db_adapter0.DBAdapter<_better_auth_core22.BetterAuthOptions>;
131
+ internalAdapter: _better_auth_core22.InternalAdapter<_better_auth_core22.BetterAuthOptions>;
132
+ createAuthCookie: (cookieName: string, overrideAttributes?: Partial<better_call262.CookieOptions> | undefined) => _better_auth_core22.BetterAuthCookie;
133
133
  secret: string;
134
134
  sessionConfig: {
135
135
  updateAge: number;
@@ -141,10 +141,10 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
141
141
  };
142
142
  };
143
143
  generateId: (options: {
144
- model: _better_auth_core_db5.ModelNames;
144
+ model: _better_auth_core_db3.ModelNames;
145
145
  size?: number | undefined;
146
146
  }) => string | false;
147
- secondaryStorage: _better_auth_core_db5.SecondaryStorage | undefined;
147
+ secondaryStorage: _better_auth_core_db3.SecondaryStorage | undefined;
148
148
  password: {
149
149
  hash: (password: string) => Promise<string>;
150
150
  verify: (data: {
@@ -155,9 +155,9 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
155
155
  minPasswordLength: number;
156
156
  maxPasswordLength: number;
157
157
  };
158
- checkPassword: (userId: string, ctx: _better_auth_core23.GenericEndpointContext<_better_auth_core23.BetterAuthOptions>) => Promise<boolean>;
158
+ checkPassword: (userId: string, ctx: _better_auth_core22.GenericEndpointContext<_better_auth_core22.BetterAuthOptions>) => Promise<boolean>;
159
159
  };
160
- tables: _better_auth_core_db5.BetterAuthDBSchema;
160
+ tables: _better_auth_core_db3.BetterAuthDBSchema;
161
161
  runMigrations: () => Promise<void>;
162
162
  publishTelemetry: (event: {
163
163
  type: string;
@@ -167,7 +167,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
167
167
  skipOriginCheck: boolean | string[];
168
168
  skipCSRFCheck: boolean;
169
169
  runInBackground: (promise: Promise<unknown>) => void;
170
- runInBackgroundOrAwait: (promise: Promise<unknown> | void) => _better_auth_core23.Awaitable<unknown>;
170
+ runInBackgroundOrAwait: (promise: Promise<unknown> | void) => _better_auth_core22.Awaitable<unknown>;
171
171
  }>;
172
172
  }>;
173
173
  }[];
@@ -188,7 +188,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
188
188
  *
189
189
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-create)
190
190
  */
191
- createApiKey: better_call264.StrictEndpoint<"/api-key/create", {
191
+ createApiKey: better_call262.StrictEndpoint<"/api-key/create", {
192
192
  method: "POST";
193
193
  body: zod530.ZodObject<{
194
194
  name: zod530.ZodOptional<zod530.ZodString>;
@@ -368,7 +368,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
368
368
  *
369
369
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-verify)
370
370
  */
371
- verifyApiKey: better_call264.StrictEndpoint<string, {
371
+ verifyApiKey: better_call262.StrictEndpoint<string, {
372
372
  method: "POST";
373
373
  body: zod530.ZodObject<{
374
374
  key: zod530.ZodString;
@@ -416,12 +416,12 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
416
416
  *
417
417
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-get)
418
418
  */
419
- getApiKey: better_call264.StrictEndpoint<"/api-key/get", {
419
+ getApiKey: better_call262.StrictEndpoint<"/api-key/get", {
420
420
  method: "GET";
421
421
  query: zod530.ZodObject<{
422
422
  id: zod530.ZodString;
423
423
  }, zod_v4_core78.$strip>;
424
- use: ((inputContext: better_call264.MiddlewareInputContext<better_call264.MiddlewareOptions>) => Promise<{
424
+ use: ((inputContext: better_call262.MiddlewareInputContext<better_call262.MiddlewareOptions>) => Promise<{
425
425
  session: {
426
426
  session: Record<string, any> & {
427
427
  id: string;
@@ -603,7 +603,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
603
603
  *
604
604
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-update)
605
605
  */
606
- updateApiKey: better_call264.StrictEndpoint<"/api-key/update", {
606
+ updateApiKey: better_call262.StrictEndpoint<"/api-key/update", {
607
607
  method: "POST";
608
608
  body: zod530.ZodObject<{
609
609
  keyId: zod530.ZodString;
@@ -779,12 +779,12 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
779
779
  *
780
780
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-delete)
781
781
  */
782
- deleteApiKey: better_call264.StrictEndpoint<"/api-key/delete", {
782
+ deleteApiKey: better_call262.StrictEndpoint<"/api-key/delete", {
783
783
  method: "POST";
784
784
  body: zod530.ZodObject<{
785
785
  keyId: zod530.ZodString;
786
786
  }, zod_v4_core78.$strip>;
787
- use: ((inputContext: better_call264.MiddlewareInputContext<better_call264.MiddlewareOptions>) => Promise<{
787
+ use: ((inputContext: better_call262.MiddlewareInputContext<better_call262.MiddlewareOptions>) => Promise<{
788
788
  session: {
789
789
  session: Record<string, any> & {
790
790
  id: string;
@@ -865,9 +865,9 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
865
865
  *
866
866
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-list)
867
867
  */
868
- listApiKeys: better_call264.StrictEndpoint<"/api-key/list", {
868
+ listApiKeys: better_call262.StrictEndpoint<"/api-key/list", {
869
869
  method: "GET";
870
- use: ((inputContext: better_call264.MiddlewareInputContext<better_call264.MiddlewareOptions>) => Promise<{
870
+ use: ((inputContext: better_call262.MiddlewareInputContext<better_call262.MiddlewareOptions>) => Promise<{
871
871
  session: {
872
872
  session: Record<string, any> & {
873
873
  id: string;
@@ -1049,7 +1049,7 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
1049
1049
  *
1050
1050
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/api-key#api-method-api-key-delete-all-expired-api-keys)
1051
1051
  */
1052
- deleteAllExpiredApiKeys: better_call264.StrictEndpoint<string, {
1052
+ deleteAllExpiredApiKeys: better_call262.StrictEndpoint<string, {
1053
1053
  method: "POST";
1054
1054
  }, {
1055
1055
  success: boolean;
@@ -1171,8 +1171,8 @@ declare const apiKey: (options?: ApiKeyOptions | undefined) => {
1171
1171
  required: false;
1172
1172
  input: true;
1173
1173
  transform: {
1174
- input(value: _better_auth_core_db5.DBPrimitive): string;
1175
- output(value: _better_auth_core_db5.DBPrimitive): any;
1174
+ input(value: _better_auth_core_db3.DBPrimitive): string;
1175
+ output(value: _better_auth_core_db3.DBPrimitive): any;
1176
1176
  };
1177
1177
  };
1178
1178
  };
@@ -1,5 +1,5 @@
1
- import * as _better_auth_core2 from "@better-auth/core";
2
- import * as better_call16 from "better-call";
1
+ import * as _better_auth_core4 from "@better-auth/core";
2
+ import * as better_call22 from "better-call";
3
3
 
4
4
  //#region src/plugins/bearer/index.d.ts
5
5
  interface BearerOptions {
@@ -19,16 +19,16 @@ declare const bearer: (options?: BearerOptions | undefined) => {
19
19
  id: "bearer";
20
20
  hooks: {
21
21
  before: {
22
- matcher(context: _better_auth_core2.HookEndpointContext): boolean;
23
- handler: (inputContext: better_call16.MiddlewareInputContext<better_call16.MiddlewareOptions>) => Promise<{
22
+ matcher(context: _better_auth_core4.HookEndpointContext): boolean;
23
+ handler: (inputContext: better_call22.MiddlewareInputContext<better_call22.MiddlewareOptions>) => Promise<{
24
24
  context: {
25
25
  headers: Headers;
26
26
  };
27
27
  } | undefined>;
28
28
  }[];
29
29
  after: {
30
- matcher(context: _better_auth_core2.HookEndpointContext): true;
31
- handler: (inputContext: better_call16.MiddlewareInputContext<better_call16.MiddlewareOptions>) => Promise<void>;
30
+ matcher(context: _better_auth_core4.HookEndpointContext): true;
31
+ handler: (inputContext: better_call22.MiddlewareInputContext<better_call22.MiddlewareOptions>) => Promise<void>;
32
32
  }[];
33
33
  };
34
34
  options: BearerOptions | undefined;
@@ -1,10 +1,10 @@
1
1
  import { BaseCaptchaOptions, CaptchaFoxOptions, CaptchaOptions, CloudflareTurnstileOptions, GoogleRecaptchaOptions, HCaptchaOptions, Provider } from "./types.mjs";
2
- import * as _better_auth_core4 from "@better-auth/core";
2
+ import * as _better_auth_core0 from "@better-auth/core";
3
3
 
4
4
  //#region src/plugins/captcha/index.d.ts
5
5
  declare const captcha: (options: CaptchaOptions) => {
6
6
  id: "captcha";
7
- onRequest: (request: Request, ctx: _better_auth_core4.AuthContext) => Promise<{
7
+ onRequest: (request: Request, ctx: _better_auth_core0.AuthContext) => Promise<{
8
8
  response: Response;
9
9
  } | undefined>;
10
10
  options: CaptchaOptions;
@@ -1,8 +1,8 @@
1
1
  import { InferSession, InferUser } from "../../types/models.mjs";
2
2
  import "../../types/index.mjs";
3
- import * as _better_auth_core8 from "@better-auth/core";
3
+ import * as _better_auth_core1 from "@better-auth/core";
4
4
  import { BetterAuthOptions, GenericEndpointContext } from "@better-auth/core";
5
- import * as better_call53 from "better-call";
5
+ import * as better_call7 from "better-call";
6
6
  import * as z from "zod";
7
7
 
8
8
  //#region src/plugins/custom-session/index.d.ts
@@ -20,12 +20,12 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
20
20
  id: "custom-session";
21
21
  hooks: {
22
22
  after: {
23
- matcher: (ctx: _better_auth_core8.HookEndpointContext) => boolean;
24
- handler: (inputContext: better_call53.MiddlewareInputContext<better_call53.MiddlewareOptions>) => Promise<Awaited<Returns>[] | undefined>;
23
+ matcher: (ctx: _better_auth_core1.HookEndpointContext) => boolean;
24
+ handler: (inputContext: better_call7.MiddlewareInputContext<better_call7.MiddlewareOptions>) => Promise<Awaited<Returns>[] | undefined>;
25
25
  }[];
26
26
  };
27
27
  endpoints: {
28
- getSession: better_call53.StrictEndpoint<"/get-session", {
28
+ getSession: better_call7.StrictEndpoint<"/get-session", {
29
29
  method: "GET";
30
30
  query: z.ZodOptional<z.ZodObject<{
31
31
  disableCookieCache: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>]>>;
@@ -1,5 +1,5 @@
1
1
  import { TimeString, ms, sec } from "../../utils/time.mjs";
2
- import * as better_call20 from "better-call";
2
+ import * as better_call10 from "better-call";
3
3
  import * as z from "zod";
4
4
 
5
5
  //#region src/plugins/device-authorization/index.d.ts
@@ -91,7 +91,7 @@ declare const deviceAuthorization: (options?: Partial<DeviceAuthorizationOptions
91
91
  };
92
92
  };
93
93
  endpoints: {
94
- deviceCode: better_call20.StrictEndpoint<"/device/code", {
94
+ deviceCode: better_call10.StrictEndpoint<"/device/code", {
95
95
  method: "POST";
96
96
  body: z.ZodObject<{
97
97
  client_id: z.ZodString;
@@ -176,7 +176,7 @@ declare const deviceAuthorization: (options?: Partial<DeviceAuthorizationOptions
176
176
  expires_in: number;
177
177
  interval: number;
178
178
  }>;
179
- deviceToken: better_call20.StrictEndpoint<"/device/token", {
179
+ deviceToken: better_call10.StrictEndpoint<"/device/token", {
180
180
  method: "POST";
181
181
  body: z.ZodObject<{
182
182
  grant_type: z.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
@@ -244,7 +244,7 @@ declare const deviceAuthorization: (options?: Partial<DeviceAuthorizationOptions
244
244
  expires_in: number;
245
245
  scope: string;
246
246
  }>;
247
- deviceVerify: better_call20.StrictEndpoint<"/device", {
247
+ deviceVerify: better_call10.StrictEndpoint<"/device", {
248
248
  method: "GET";
249
249
  query: z.ZodObject<{
250
250
  user_code: z.ZodString;
@@ -287,7 +287,7 @@ declare const deviceAuthorization: (options?: Partial<DeviceAuthorizationOptions
287
287
  user_code: string;
288
288
  status: string;
289
289
  }>;
290
- deviceApprove: better_call20.StrictEndpoint<"/device/approve", {
290
+ deviceApprove: better_call10.StrictEndpoint<"/device/approve", {
291
291
  method: "POST";
292
292
  body: z.ZodObject<{
293
293
  userCode: z.ZodString;
@@ -328,7 +328,7 @@ declare const deviceAuthorization: (options?: Partial<DeviceAuthorizationOptions
328
328
  }, {
329
329
  success: boolean;
330
330
  }>;
331
- deviceDeny: better_call20.StrictEndpoint<"/device/deny", {
331
+ deviceDeny: better_call10.StrictEndpoint<"/device/deny", {
332
332
  method: "POST";
333
333
  body: z.ZodObject<{
334
334
  userCode: z.ZodString;
@@ -1,14 +1,14 @@
1
1
  import { EmailOTPOptions } from "./types.mjs";
2
- import * as _better_auth_core5 from "@better-auth/core";
2
+ import * as _better_auth_core6 from "@better-auth/core";
3
3
  import * as _better_auth_core_db0 from "@better-auth/core/db";
4
- import * as better_call25 from "better-call";
4
+ import * as better_call26 from "better-call";
5
5
  import * as zod0 from "zod";
6
6
  import * as zod_v4_core0 from "zod/v4/core";
7
7
 
8
8
  //#region src/plugins/email-otp/index.d.ts
9
9
  declare const emailOTP: (options: EmailOTPOptions) => {
10
10
  id: "email-otp";
11
- init(ctx: _better_auth_core5.AuthContext): {
11
+ init(ctx: _better_auth_core6.AuthContext): {
12
12
  options: {
13
13
  emailVerification: {
14
14
  sendVerificationEmail(data: {
@@ -20,7 +20,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
20
20
  };
21
21
  } | undefined;
22
22
  endpoints: {
23
- sendVerificationOTP: better_call25.StrictEndpoint<"/email-otp/send-verification-otp", {
23
+ sendVerificationOTP: better_call26.StrictEndpoint<"/email-otp/send-verification-otp", {
24
24
  method: "POST";
25
25
  body: zod0.ZodObject<{
26
26
  email: zod0.ZodString;
@@ -56,7 +56,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
56
56
  }, {
57
57
  success: boolean;
58
58
  }>;
59
- createVerificationOTP: better_call25.StrictEndpoint<string, {
59
+ createVerificationOTP: better_call26.StrictEndpoint<string, {
60
60
  method: "POST";
61
61
  body: zod0.ZodObject<{
62
62
  email: zod0.ZodString;
@@ -85,7 +85,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
85
85
  };
86
86
  };
87
87
  }, string>;
88
- getVerificationOTP: better_call25.StrictEndpoint<string, {
88
+ getVerificationOTP: better_call26.StrictEndpoint<string, {
89
89
  method: "GET";
90
90
  query: zod0.ZodObject<{
91
91
  email: zod0.ZodString;
@@ -126,7 +126,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
126
126
  } | {
127
127
  otp: string;
128
128
  }>;
129
- checkVerificationOTP: better_call25.StrictEndpoint<"/email-otp/check-verification-otp", {
129
+ checkVerificationOTP: better_call26.StrictEndpoint<"/email-otp/check-verification-otp", {
130
130
  method: "POST";
131
131
  body: zod0.ZodObject<{
132
132
  email: zod0.ZodString;
@@ -163,7 +163,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
163
163
  }, {
164
164
  success: boolean;
165
165
  }>;
166
- verifyEmailOTP: better_call25.StrictEndpoint<"/email-otp/verify-email", {
166
+ verifyEmailOTP: better_call26.StrictEndpoint<"/email-otp/verify-email", {
167
167
  method: "POST";
168
168
  body: zod0.ZodObject<{
169
169
  email: zod0.ZodString;
@@ -227,7 +227,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
227
227
  image?: string | null | undefined;
228
228
  } & Record<string, any>;
229
229
  }>;
230
- signInEmailOTP: better_call25.StrictEndpoint<"/sign-in/email-otp", {
230
+ signInEmailOTP: better_call26.StrictEndpoint<"/sign-in/email-otp", {
231
231
  method: "POST";
232
232
  body: zod0.ZodObject<{
233
233
  email: zod0.ZodString;
@@ -273,7 +273,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
273
273
  image?: string | null | undefined;
274
274
  };
275
275
  }>;
276
- requestPasswordResetEmailOTP: better_call25.StrictEndpoint<"/email-otp/request-password-reset", {
276
+ requestPasswordResetEmailOTP: better_call26.StrictEndpoint<"/email-otp/request-password-reset", {
277
277
  method: "POST";
278
278
  body: zod0.ZodObject<{
279
279
  email: zod0.ZodString;
@@ -305,7 +305,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
305
305
  }, {
306
306
  success: boolean;
307
307
  }>;
308
- forgetPasswordEmailOTP: better_call25.StrictEndpoint<"/forget-password/email-otp", {
308
+ forgetPasswordEmailOTP: better_call26.StrictEndpoint<"/forget-password/email-otp", {
309
309
  method: "POST";
310
310
  body: zod0.ZodObject<{
311
311
  email: zod0.ZodString;
@@ -337,7 +337,7 @@ declare const emailOTP: (options: EmailOTPOptions) => {
337
337
  }, {
338
338
  success: boolean;
339
339
  }>;
340
- resetPasswordEmailOTP: better_call25.StrictEndpoint<"/email-otp/reset-password", {
340
+ resetPasswordEmailOTP: better_call26.StrictEndpoint<"/email-otp/reset-password", {
341
341
  method: "POST";
342
342
  body: zod0.ZodObject<{
343
343
  email: zod0.ZodString;
@@ -373,8 +373,8 @@ declare const emailOTP: (options: EmailOTPOptions) => {
373
373
  };
374
374
  hooks: {
375
375
  after: {
376
- matcher(context: _better_auth_core5.HookEndpointContext): boolean;
377
- handler: (inputContext: better_call25.MiddlewareInputContext<better_call25.MiddlewareOptions>) => Promise<void>;
376
+ matcher(context: _better_auth_core6.HookEndpointContext): boolean;
377
+ handler: (inputContext: better_call26.MiddlewareInputContext<better_call26.MiddlewareOptions>) => Promise<void>;
378
378
  }[];
379
379
  };
380
380
  $ERROR_CODES: {
@@ -12,7 +12,7 @@ import "./providers/index.mjs";
12
12
  import { AuthContext } from "@better-auth/core";
13
13
  import * as _better_auth_core_oauth20 from "@better-auth/core/oauth2";
14
14
  import { OAuthProvider } from "@better-auth/core/oauth2";
15
- import * as better_call36 from "better-call";
15
+ import * as better_call37 from "better-call";
16
16
  import * as zod26 from "zod";
17
17
  import * as zod_v4_core8 from "zod/v4/core";
18
18
 
@@ -36,7 +36,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
36
36
  };
37
37
  };
38
38
  endpoints: {
39
- signInWithOAuth2: better_call36.StrictEndpoint<"/sign-in/oauth2", {
39
+ signInWithOAuth2: better_call37.StrictEndpoint<"/sign-in/oauth2", {
40
40
  method: "POST";
41
41
  body: zod26.ZodObject<{
42
42
  providerId: zod26.ZodString;
@@ -77,7 +77,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
77
77
  url: string;
78
78
  redirect: boolean;
79
79
  }>;
80
- oAuth2Callback: better_call36.StrictEndpoint<"/oauth2/callback/:providerId", {
80
+ oAuth2Callback: better_call37.StrictEndpoint<"/oauth2/callback/:providerId", {
81
81
  method: "GET";
82
82
  query: zod26.ZodObject<{
83
83
  code: zod26.ZodOptional<zod26.ZodString>;
@@ -111,7 +111,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
111
111
  scope: "server";
112
112
  };
113
113
  }, void>;
114
- oAuth2LinkAccount: better_call36.StrictEndpoint<"/oauth2/link", {
114
+ oAuth2LinkAccount: better_call37.StrictEndpoint<"/oauth2/link", {
115
115
  method: "POST";
116
116
  body: zod26.ZodObject<{
117
117
  providerId: zod26.ZodString;
@@ -119,7 +119,7 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
119
119
  scopes: zod26.ZodOptional<zod26.ZodArray<zod26.ZodString>>;
120
120
  errorCallbackURL: zod26.ZodOptional<zod26.ZodString>;
121
121
  }, zod_v4_core8.$strip>;
122
- use: ((inputContext: better_call36.MiddlewareInputContext<better_call36.MiddlewareOptions>) => Promise<{
122
+ use: ((inputContext: better_call37.MiddlewareInputContext<better_call37.MiddlewareOptions>) => Promise<{
123
123
  session: {
124
124
  session: Record<string, any> & {
125
125
  id: string;
@@ -1,4 +1,4 @@
1
- import * as _better_auth_core18 from "@better-auth/core";
1
+ import * as _better_auth_core16 from "@better-auth/core";
2
2
 
3
3
  //#region src/plugins/haveibeenpwned/index.d.ts
4
4
  interface HaveIBeenPwnedOptions {
@@ -12,7 +12,7 @@ interface HaveIBeenPwnedOptions {
12
12
  }
13
13
  declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions | undefined) => {
14
14
  id: "haveIBeenPwned";
15
- init(ctx: _better_auth_core18.AuthContext): {
15
+ init(ctx: _better_auth_core16.AuthContext): {
16
16
  context: {
17
17
  password: {
18
18
  hash(password: string): Promise<string>;
@@ -24,7 +24,7 @@ declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions | undefined) => {
24
24
  minPasswordLength: number;
25
25
  maxPasswordLength: number;
26
26
  };
27
- checkPassword: (userId: string, ctx: _better_auth_core18.GenericEndpointContext<_better_auth_core18.BetterAuthOptions>) => Promise<boolean>;
27
+ checkPassword: (userId: string, ctx: _better_auth_core16.GenericEndpointContext<_better_auth_core16.BetterAuthOptions>) => Promise<boolean>;
28
28
  };
29
29
  };
30
30
  };
@@ -1,7 +1,7 @@
1
1
  import { JWKOptions, JWSAlgorithms, Jwk, JwtOptions } from "./types.mjs";
2
2
  import { jwt } from "./index.mjs";
3
3
  import { JSONWebKeySet } from "jose";
4
- import * as _better_fetch_fetch95 from "@better-fetch/fetch";
4
+ import * as _better_fetch_fetch111 from "@better-fetch/fetch";
5
5
 
6
6
  //#region src/plugins/jwt/client.d.ts
7
7
  interface JwtClientOptions {
@@ -21,7 +21,7 @@ declare const jwtClient: (options?: JwtClientOptions) => {
21
21
  pathMethods: {
22
22
  [x: string]: "GET";
23
23
  };
24
- getActions: ($fetch: _better_fetch_fetch95.BetterFetch) => {
24
+ getActions: ($fetch: _better_fetch_fetch111.BetterFetch) => {
25
25
  jwks: (fetchOptions?: any) => Promise<{
26
26
  data: null;
27
27
  error: {
@@ -2,8 +2,8 @@ import { JWKOptions, JWSAlgorithms, Jwk, JwtOptions } from "./types.mjs";
2
2
  import { getJwtToken, signJWT } from "./sign.mjs";
3
3
  import { createJwk, generateExportedKeyPair, toExpJWT } from "./utils.mjs";
4
4
  import { verifyJWT } from "./verify.mjs";
5
- import * as _better_auth_core7 from "@better-auth/core";
6
- import * as better_call41 from "better-call";
5
+ import * as _better_auth_core8 from "@better-auth/core";
6
+ import * as better_call42 from "better-call";
7
7
  import * as z from "zod";
8
8
  import { JSONWebKeySet, JWTPayload } from "jose";
9
9
 
@@ -12,7 +12,7 @@ declare const jwt: <O extends JwtOptions>(options?: O) => {
12
12
  id: "jwt";
13
13
  options: NoInfer<O>;
14
14
  endpoints: {
15
- getJwks: better_call41.StrictEndpoint<string, {
15
+ getJwks: better_call42.StrictEndpoint<string, {
16
16
  method: "GET";
17
17
  metadata: {
18
18
  openapi: {
@@ -89,10 +89,10 @@ declare const jwt: <O extends JwtOptions>(options?: O) => {
89
89
  };
90
90
  };
91
91
  }, JSONWebKeySet>;
92
- getToken: better_call41.StrictEndpoint<"/token", {
92
+ getToken: better_call42.StrictEndpoint<"/token", {
93
93
  method: "GET";
94
94
  requireHeaders: true;
95
- use: ((inputContext: better_call41.MiddlewareInputContext<better_call41.MiddlewareOptions>) => Promise<{
95
+ use: ((inputContext: better_call42.MiddlewareInputContext<better_call42.MiddlewareOptions>) => Promise<{
96
96
  session: {
97
97
  session: Record<string, any> & {
98
98
  id: string;
@@ -141,7 +141,7 @@ declare const jwt: <O extends JwtOptions>(options?: O) => {
141
141
  }, {
142
142
  token: string;
143
143
  }>;
144
- signJWT: better_call41.StrictEndpoint<string, {
144
+ signJWT: better_call42.StrictEndpoint<string, {
145
145
  method: "POST";
146
146
  metadata: {
147
147
  $Infer: {
@@ -158,7 +158,7 @@ declare const jwt: <O extends JwtOptions>(options?: O) => {
158
158
  }, {
159
159
  token: string;
160
160
  }>;
161
- verifyJWT: better_call41.StrictEndpoint<string, {
161
+ verifyJWT: better_call42.StrictEndpoint<string, {
162
162
  method: "POST";
163
163
  metadata: {
164
164
  $Infer: {
@@ -185,8 +185,8 @@ declare const jwt: <O extends JwtOptions>(options?: O) => {
185
185
  };
186
186
  hooks: {
187
187
  after: {
188
- matcher(context: _better_auth_core7.HookEndpointContext): boolean;
189
- handler: (inputContext: better_call41.MiddlewareInputContext<better_call41.MiddlewareOptions>) => Promise<void>;
188
+ matcher(context: _better_auth_core8.HookEndpointContext): boolean;
189
+ handler: (inputContext: better_call42.MiddlewareInputContext<better_call42.MiddlewareOptions>) => Promise<void>;
190
190
  }[];
191
191
  };
192
192
  schema: {
@@ -1,6 +1,6 @@
1
- import * as _better_auth_core22 from "@better-auth/core";
1
+ import * as _better_auth_core37 from "@better-auth/core";
2
2
  import { GenericEndpointContext } from "@better-auth/core";
3
- import * as better_call262 from "better-call";
3
+ import * as better_call688 from "better-call";
4
4
 
5
5
  //#region src/plugins/last-login-method/index.d.ts
6
6
  /**
@@ -43,7 +43,7 @@ interface LastLoginMethodOptions {
43
43
  */
44
44
  declare const lastLoginMethod: <O extends LastLoginMethodOptions>(userConfig?: O | undefined) => {
45
45
  id: "last-login-method";
46
- init(ctx: _better_auth_core22.AuthContext): {
46
+ init(ctx: _better_auth_core37.AuthContext): {
47
47
  options: {
48
48
  databaseHooks: {
49
49
  user: {
@@ -90,7 +90,7 @@ declare const lastLoginMethod: <O extends LastLoginMethodOptions>(userConfig?: O
90
90
  hooks: {
91
91
  after: {
92
92
  matcher(): true;
93
- handler: (inputContext: better_call262.MiddlewareInputContext<better_call262.MiddlewareOptions>) => Promise<void>;
93
+ handler: (inputContext: better_call688.MiddlewareInputContext<better_call688.MiddlewareOptions>) => Promise<void>;
94
94
  }[];
95
95
  };
96
96
  schema: O["storeInDatabase"] extends true ? {
@@ -1,5 +1,5 @@
1
1
  import { Awaitable, GenericEndpointContext } from "@better-auth/core";
2
- import * as better_call49 from "better-call";
2
+ import * as better_call75 from "better-call";
3
3
  import * as z from "zod";
4
4
 
5
5
  //#region src/plugins/magic-link/index.d.ts
@@ -68,7 +68,7 @@ declare const magicLink: (options: MagicLinkOptions) => {
68
68
  *
69
69
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/sign-in#api-method-sign-in-magic-link)
70
70
  */
71
- signInMagicLink: better_call49.StrictEndpoint<"/sign-in/magic-link", {
71
+ signInMagicLink: better_call75.StrictEndpoint<"/sign-in/magic-link", {
72
72
  method: "POST";
73
73
  requireHeaders: true;
74
74
  body: z.ZodObject<{
@@ -119,7 +119,7 @@ declare const magicLink: (options: MagicLinkOptions) => {
119
119
  *
120
120
  * @see [Read our docs to learn more.](https://better-auth.com/docs/plugins/magic-link#api-method-magic-link-verify)
121
121
  */
122
- magicLinkVerify: better_call49.StrictEndpoint<"/magic-link/verify", {
122
+ magicLinkVerify: better_call75.StrictEndpoint<"/magic-link/verify", {
123
123
  method: "GET";
124
124
  query: z.ZodObject<{
125
125
  token: z.ZodString;
@@ -127,7 +127,7 @@ declare const magicLink: (options: MagicLinkOptions) => {
127
127
  errorCallbackURL: z.ZodOptional<z.ZodString>;
128
128
  newUserCallbackURL: z.ZodOptional<z.ZodString>;
129
129
  }, z.core.$strip>;
130
- use: ((inputContext: better_call49.MiddlewareInputContext<better_call49.MiddlewareOptions>) => Promise<void>)[];
130
+ use: ((inputContext: better_call75.MiddlewareInputContext<better_call75.MiddlewareOptions>) => Promise<void>)[];
131
131
  requireHeaders: true;
132
132
  metadata: {
133
133
  openapi: {