better-auth 0.7.5-beta.6 → 0.7.5-beta.7

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 (51) hide show
  1. package/dist/adapters/drizzle.d.cts +2 -2
  2. package/dist/adapters/drizzle.d.ts +2 -2
  3. package/dist/adapters/kysely.d.cts +2 -2
  4. package/dist/adapters/kysely.d.ts +2 -2
  5. package/dist/adapters/mongodb.d.cts +2 -2
  6. package/dist/adapters/mongodb.d.ts +2 -2
  7. package/dist/adapters/prisma.d.cts +2 -2
  8. package/dist/adapters/prisma.d.ts +2 -2
  9. package/dist/api.d.cts +2 -2
  10. package/dist/api.d.ts +2 -2
  11. package/dist/{auth-5vq2cwU_.d.cts → auth-CbhcAHOF.d.cts} +47 -47
  12. package/dist/{auth-DXTYJS1g.d.ts → auth-NHujeJMf.d.ts} +47 -47
  13. package/dist/client/plugins.d.cts +4 -4
  14. package/dist/client/plugins.d.ts +4 -4
  15. package/dist/client.d.cts +2 -2
  16. package/dist/client.d.ts +2 -2
  17. package/dist/cookies.d.cts +2 -2
  18. package/dist/cookies.d.ts +2 -2
  19. package/dist/db.d.cts +3 -3
  20. package/dist/db.d.ts +3 -3
  21. package/dist/{index-B5OO_C31.d.ts → index-BwdSU0WF.d.ts} +8 -8
  22. package/dist/{index-o8ias2pI.d.cts → index-CK3sHUOB.d.cts} +8 -8
  23. package/dist/index.d.cts +3 -3
  24. package/dist/index.d.ts +3 -3
  25. package/dist/node.d.cts +2 -2
  26. package/dist/node.d.ts +2 -2
  27. package/dist/oauth2.d.cts +4 -4
  28. package/dist/oauth2.d.ts +4 -4
  29. package/dist/plugins.d.cts +10 -10
  30. package/dist/plugins.d.ts +10 -10
  31. package/dist/react.d.cts +2 -2
  32. package/dist/react.d.ts +2 -2
  33. package/dist/social.d.cts +1 -1
  34. package/dist/social.d.ts +1 -1
  35. package/dist/solid-start.d.cts +2 -2
  36. package/dist/solid-start.d.ts +2 -2
  37. package/dist/solid.d.cts +2 -2
  38. package/dist/solid.d.ts +2 -2
  39. package/dist/{state-2IP14aYo.d.ts → state-6VKTmUTy.d.ts} +1 -1
  40. package/dist/{state-mF7s1_xk.d.cts → state-CoKL3DyH.d.cts} +1 -1
  41. package/dist/svelte-kit.d.cts +2 -2
  42. package/dist/svelte-kit.d.ts +2 -2
  43. package/dist/svelte.d.cts +2 -2
  44. package/dist/svelte.d.ts +2 -2
  45. package/dist/types.d.cts +4 -4
  46. package/dist/types.d.ts +4 -4
  47. package/dist/vue.d.cts +2 -2
  48. package/dist/vue.d.ts +2 -2
  49. package/package.json +2 -2
  50. package/dist/{index-mRrWw8DZ.d.ts → index-CGq2kTts.d.cts} +4 -4
  51. package/dist/{index-mRrWw8DZ.d.cts → index-CGq2kTts.d.ts} +4 -4
@@ -1,8 +1,8 @@
1
- import { A as Adapter } from '../auth-5vq2cwU_.cjs';
1
+ import { A as Adapter } from '../auth-CbhcAHOF.cjs';
2
2
  import 'node_modules/better-call/dist/router-Bn7zn81P';
3
3
  import 'zod';
4
4
  import 'kysely';
5
- import '../index-mRrWw8DZ.cjs';
5
+ import '../index-CGq2kTts.cjs';
6
6
  import 'better-call';
7
7
  import 'better-sqlite3';
8
8
 
@@ -1,8 +1,8 @@
1
- import { A as Adapter } from '../auth-DXTYJS1g.js';
1
+ import { A as Adapter } from '../auth-NHujeJMf.js';
2
2
  import 'node_modules/better-call/dist/router-Bn7zn81P';
3
3
  import 'zod';
4
4
  import 'kysely';
5
- import '../index-mRrWw8DZ.js';
5
+ import '../index-CGq2kTts.js';
6
6
  import 'better-call';
7
7
  import 'better-sqlite3';
8
8
 
@@ -1,8 +1,8 @@
1
1
  import { Kysely } from 'kysely';
2
- import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-5vq2cwU_.cjs';
2
+ import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-CbhcAHOF.cjs';
3
3
  import 'node_modules/better-call/dist/router-Bn7zn81P';
4
4
  import 'zod';
5
- import '../index-mRrWw8DZ.cjs';
5
+ import '../index-CGq2kTts.cjs';
6
6
  import 'better-call';
7
7
  import 'better-sqlite3';
8
8
 
@@ -1,8 +1,8 @@
1
1
  import { Kysely } from 'kysely';
2
- import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-DXTYJS1g.js';
2
+ import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-NHujeJMf.js';
3
3
  import 'node_modules/better-call/dist/router-Bn7zn81P';
4
4
  import 'zod';
5
- import '../index-mRrWw8DZ.js';
5
+ import '../index-CGq2kTts.js';
6
6
  import 'better-call';
7
7
  import 'better-sqlite3';
8
8
 
@@ -3,11 +3,11 @@ import { EventEmitter } from 'events';
3
3
  import { TcpNetConnectOpts } from 'net';
4
4
  import { Readable } from 'stream';
5
5
  import { ConnectionOptions as ConnectionOptions$1, TLSSocketOptions } from 'tls';
6
- import { W as Where } from '../auth-5vq2cwU_.cjs';
6
+ import { W as Where } from '../auth-CbhcAHOF.cjs';
7
7
  import 'node_modules/better-call/dist/router-Bn7zn81P';
8
8
  import 'zod';
9
9
  import 'kysely';
10
- import '../index-mRrWw8DZ.cjs';
10
+ import '../index-CGq2kTts.cjs';
11
11
  import 'better-call';
12
12
  import 'better-sqlite3';
13
13
 
@@ -3,11 +3,11 @@ import { EventEmitter } from 'events';
3
3
  import { TcpNetConnectOpts } from 'net';
4
4
  import { Readable } from 'stream';
5
5
  import { ConnectionOptions as ConnectionOptions$1, TLSSocketOptions } from 'tls';
6
- import { W as Where } from '../auth-DXTYJS1g.js';
6
+ import { W as Where } from '../auth-NHujeJMf.js';
7
7
  import 'node_modules/better-call/dist/router-Bn7zn81P';
8
8
  import 'zod';
9
9
  import 'kysely';
10
- import '../index-mRrWw8DZ.js';
10
+ import '../index-CGq2kTts.js';
11
11
  import 'better-call';
12
12
  import 'better-sqlite3';
13
13
 
@@ -1,8 +1,8 @@
1
- import { A as Adapter } from '../auth-5vq2cwU_.cjs';
1
+ import { A as Adapter } from '../auth-CbhcAHOF.cjs';
2
2
  import 'node_modules/better-call/dist/router-Bn7zn81P';
3
3
  import 'zod';
4
4
  import 'kysely';
5
- import '../index-mRrWw8DZ.cjs';
5
+ import '../index-CGq2kTts.cjs';
6
6
  import 'better-call';
7
7
  import 'better-sqlite3';
8
8
 
@@ -1,8 +1,8 @@
1
- import { A as Adapter } from '../auth-DXTYJS1g.js';
1
+ import { A as Adapter } from '../auth-NHujeJMf.js';
2
2
  import 'node_modules/better-call/dist/router-Bn7zn81P';
3
3
  import 'zod';
4
4
  import 'kysely';
5
- import '../index-mRrWw8DZ.js';
5
+ import '../index-CGq2kTts.js';
6
6
  import 'better-call';
7
7
  import 'better-sqlite3';
8
8
 
package/dist/api.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'node_modules/better-call/dist/router-Bn7zn81P';
2
- export { x as AuthEndpoint, y as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, w as createAuthEndpoint, v as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, u as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInSocial, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-5vq2cwU_.cjs';
3
- import './index-mRrWw8DZ.cjs';
2
+ export { x as AuthEndpoint, y as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, w as createAuthEndpoint, v as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, u as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInSocial, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-CbhcAHOF.cjs';
3
+ import './index-CGq2kTts.cjs';
4
4
  export { APIError } from 'better-call';
5
5
  import 'zod';
6
6
  import 'kysely';
package/dist/api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'node_modules/better-call/dist/router-Bn7zn81P';
2
- export { x as AuthEndpoint, y as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, w as createAuthEndpoint, v as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, u as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInSocial, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-DXTYJS1g.js';
3
- import './index-mRrWw8DZ.js';
2
+ export { x as AuthEndpoint, y as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, w as createAuthEndpoint, v as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, u as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInSocial, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-NHujeJMf.js';
3
+ import './index-CGq2kTts.js';
4
4
  export { APIError } from 'better-call';
5
5
  import 'zod';
6
6
  import 'kysely';
@@ -2,7 +2,7 @@ import * as node_modules_better_call_dist_router_Bn7zn81P from 'node_modules/bet
2
2
  import * as zod from 'zod';
3
3
  import { ZodSchema, z, ZodObject, ZodOptional, ZodString } from 'zod';
4
4
  import { Kysely, Migration, PostgresPool, MysqlPool, Dialect } from 'kysely';
5
- import { a as User, A as Account, S as Session, V as Verification, e as OAuthProvider, L as LiteralString, D as DeepPartial, U as UnionToIntersection, c as StripEmptyObjects, f as SocialProviders, g as SocialProviderList, P as Prettify } from './index-mRrWw8DZ.cjs';
5
+ import { a as User, A as Account, S as Session, V as Verification, e as OAuthProvider, L as LiteralString, D as DeepPartial, U as UnionToIntersection, c as StripEmptyObjects, f as SocialProviders, g as SocialProviderList, P as Prettify } from './index-CGq2kTts.cjs';
6
6
  import * as better_call from 'better-call';
7
7
  import { ContextTools, CookieOptions, Endpoint, EndpointResponse, Context, Prettify as Prettify$1 } from 'better-call';
8
8
  import { Database } from 'better-sqlite3';
@@ -143,13 +143,13 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
143
143
  }>;
144
144
  createAccount: <T>(account: Omit<Account, "id" | "createdAt" | "updatedAt"> & Partial<Account> & Record<string, any>) => Promise<T & {
145
145
  id: string;
146
+ userId: string;
146
147
  providerId: string;
147
148
  accountId: string;
148
- userId: string;
149
+ expiresAt?: Date | null | undefined;
149
150
  accessToken?: string | null | undefined;
150
151
  refreshToken?: string | null | undefined;
151
152
  idToken?: string | null | undefined;
152
- expiresAt?: Date | null | undefined;
153
153
  password?: string | null | undefined;
154
154
  }>;
155
155
  listSessions: (userId: string) => Promise<{
@@ -204,13 +204,13 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
204
204
  };
205
205
  accounts: {
206
206
  id: string;
207
+ userId: string;
207
208
  providerId: string;
208
209
  accountId: string;
209
- userId: string;
210
+ expiresAt?: Date | null | undefined;
210
211
  accessToken?: string | null | undefined;
211
212
  refreshToken?: string | null | undefined;
212
213
  idToken?: string | null | undefined;
213
- expiresAt?: Date | null | undefined;
214
214
  password?: string | null | undefined;
215
215
  }[];
216
216
  } | null>;
@@ -229,13 +229,13 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
229
229
  updatePassword: (userId: string, password: string) => Promise<any>;
230
230
  findAccounts: (userId: string) => Promise<{
231
231
  id: string;
232
+ userId: string;
232
233
  providerId: string;
233
234
  accountId: string;
234
- userId: string;
235
+ expiresAt?: Date | null | undefined;
235
236
  accessToken?: string | null | undefined;
236
237
  refreshToken?: string | null | undefined;
237
238
  idToken?: string | null | undefined;
238
- expiresAt?: Date | null | undefined;
239
239
  password?: string | null | undefined;
240
240
  }[]>;
241
241
  updateAccount: (accountId: string, data: Partial<Account>) => Promise<any>;
@@ -1357,13 +1357,13 @@ declare const signInEmail: {
1357
1357
  */
1358
1358
  dontRememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1359
1359
  }, "strip", z.ZodTypeAny, {
1360
- password: string;
1361
1360
  email: string;
1361
+ password: string;
1362
1362
  callbackURL?: string | undefined;
1363
1363
  dontRememberMe?: boolean | undefined;
1364
1364
  }, {
1365
- password: string;
1366
1365
  email: string;
1366
+ password: string;
1367
1367
  callbackURL?: string | undefined;
1368
1368
  dontRememberMe?: boolean | undefined;
1369
1369
  }>;
@@ -1402,13 +1402,13 @@ declare const signInEmail: {
1402
1402
  */
1403
1403
  dontRememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1404
1404
  }, "strip", z.ZodTypeAny, {
1405
- password: string;
1406
1405
  email: string;
1406
+ password: string;
1407
1407
  callbackURL?: string | undefined;
1408
1408
  dontRememberMe?: boolean | undefined;
1409
1409
  }, {
1410
- password: string;
1411
1410
  email: string;
1411
+ password: string;
1412
1412
  callbackURL?: string | undefined;
1413
1413
  dontRememberMe?: boolean | undefined;
1414
1414
  }>;
@@ -2949,13 +2949,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2949
2949
  email: zod.ZodString;
2950
2950
  password: zod.ZodString;
2951
2951
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
2952
- password: string;
2953
2952
  email: string;
2954
2953
  name: string;
2955
- }, {
2956
2954
  password: string;
2955
+ }, {
2957
2956
  email: string;
2958
2957
  name: string;
2958
+ password: string;
2959
2959
  }> & toZod<AdditionalUserFieldsInput<Option>>;
2960
2960
  }>> extends true ? [better_call.Context<"/sign-up/email", {
2961
2961
  method: "POST";
@@ -2971,13 +2971,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2971
2971
  email: zod.ZodString;
2972
2972
  password: zod.ZodString;
2973
2973
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
2974
- password: string;
2975
2974
  email: string;
2976
2975
  name: string;
2977
- }, {
2978
2976
  password: string;
2977
+ }, {
2979
2978
  email: string;
2980
2979
  name: string;
2980
+ password: string;
2981
2981
  }> & toZod<AdditionalUserFieldsInput<Option>>;
2982
2982
  }>] : [(better_call.Context<"/sign-up/email", {
2983
2983
  method: "POST";
@@ -2993,13 +2993,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2993
2993
  email: zod.ZodString;
2994
2994
  password: zod.ZodString;
2995
2995
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
2996
- password: string;
2997
2996
  email: string;
2998
2997
  name: string;
2999
- }, {
3000
2998
  password: string;
2999
+ }, {
3001
3000
  email: string;
3002
3001
  name: string;
3002
+ password: string;
3003
3003
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3004
3004
  }> | undefined)?]>(...ctx: C_1): Promise<C_1 extends [{
3005
3005
  asResponse: true;
@@ -3047,13 +3047,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3047
3047
  email: zod.ZodString;
3048
3048
  password: zod.ZodString;
3049
3049
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3050
- password: string;
3051
3050
  email: string;
3052
3051
  name: string;
3053
- }, {
3054
3052
  password: string;
3053
+ }, {
3055
3054
  email: string;
3056
3055
  name: string;
3056
+ password: string;
3057
3057
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3058
3058
  };
3059
3059
  method: better_call.Method | better_call.Method[];
@@ -3068,13 +3068,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3068
3068
  callbackURL: zod.ZodOptional<zod.ZodString>;
3069
3069
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
3070
3070
  }, "strip", zod.ZodTypeAny, {
3071
- password: string;
3072
3071
  email: string;
3072
+ password: string;
3073
3073
  callbackURL?: string | undefined;
3074
3074
  dontRememberMe?: boolean | undefined;
3075
3075
  }, {
3076
- password: string;
3077
3076
  email: string;
3077
+ password: string;
3078
3078
  callbackURL?: string | undefined;
3079
3079
  dontRememberMe?: boolean | undefined;
3080
3080
  }>;
@@ -3109,13 +3109,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3109
3109
  callbackURL: zod.ZodOptional<zod.ZodString>;
3110
3110
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
3111
3111
  }, "strip", zod.ZodTypeAny, {
3112
- password: string;
3113
3112
  email: string;
3113
+ password: string;
3114
3114
  callbackURL?: string | undefined;
3115
3115
  dontRememberMe?: boolean | undefined;
3116
3116
  }, {
3117
- password: string;
3118
3117
  email: string;
3118
+ password: string;
3119
3119
  callbackURL?: string | undefined;
3120
3120
  dontRememberMe?: boolean | undefined;
3121
3121
  }>;
@@ -4344,13 +4344,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4344
4344
  email: zod.ZodString;
4345
4345
  password: zod.ZodString;
4346
4346
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4347
- password: string;
4348
4347
  email: string;
4349
4348
  name: string;
4350
- }, {
4351
4349
  password: string;
4350
+ }, {
4352
4351
  email: string;
4353
4352
  name: string;
4353
+ password: string;
4354
4354
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4355
4355
  }>> extends true ? [better_call.Context<"/sign-up/email", {
4356
4356
  method: "POST";
@@ -4366,13 +4366,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4366
4366
  email: zod.ZodString;
4367
4367
  password: zod.ZodString;
4368
4368
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4369
- password: string;
4370
4369
  email: string;
4371
4370
  name: string;
4372
- }, {
4373
4371
  password: string;
4372
+ }, {
4374
4373
  email: string;
4375
4374
  name: string;
4375
+ password: string;
4376
4376
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4377
4377
  }>] : [(better_call.Context<"/sign-up/email", {
4378
4378
  method: "POST";
@@ -4388,13 +4388,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4388
4388
  email: zod.ZodString;
4389
4389
  password: zod.ZodString;
4390
4390
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4391
- password: string;
4392
4391
  email: string;
4393
4392
  name: string;
4394
- }, {
4395
4393
  password: string;
4394
+ }, {
4396
4395
  email: string;
4397
4396
  name: string;
4397
+ password: string;
4398
4398
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4399
4399
  }> | undefined)?]>(...ctx: C_1): Promise<C_1 extends [{
4400
4400
  asResponse: true;
@@ -4442,13 +4442,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4442
4442
  email: zod.ZodString;
4443
4443
  password: zod.ZodString;
4444
4444
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4445
- password: string;
4446
4445
  email: string;
4447
4446
  name: string;
4448
- }, {
4449
4447
  password: string;
4448
+ }, {
4450
4449
  email: string;
4451
4450
  name: string;
4451
+ password: string;
4452
4452
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4453
4453
  };
4454
4454
  method: better_call.Method | better_call.Method[];
@@ -4463,13 +4463,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4463
4463
  callbackURL: zod.ZodOptional<zod.ZodString>;
4464
4464
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
4465
4465
  }, "strip", zod.ZodTypeAny, {
4466
- password: string;
4467
4466
  email: string;
4467
+ password: string;
4468
4468
  callbackURL?: string | undefined;
4469
4469
  dontRememberMe?: boolean | undefined;
4470
4470
  }, {
4471
- password: string;
4472
4471
  email: string;
4472
+ password: string;
4473
4473
  callbackURL?: string | undefined;
4474
4474
  dontRememberMe?: boolean | undefined;
4475
4475
  }>;
@@ -4504,13 +4504,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4504
4504
  callbackURL: zod.ZodOptional<zod.ZodString>;
4505
4505
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
4506
4506
  }, "strip", zod.ZodTypeAny, {
4507
- password: string;
4508
4507
  email: string;
4508
+ password: string;
4509
4509
  callbackURL?: string | undefined;
4510
4510
  dontRememberMe?: boolean | undefined;
4511
4511
  }, {
4512
- password: string;
4513
4512
  email: string;
4513
+ password: string;
4514
4514
  callbackURL?: string | undefined;
4515
4515
  dontRememberMe?: boolean | undefined;
4516
4516
  }>;
@@ -5741,13 +5741,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5741
5741
  email: zod.ZodString;
5742
5742
  password: zod.ZodString;
5743
5743
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
5744
- password: string;
5745
5744
  email: string;
5746
5745
  name: string;
5747
- }, {
5748
5746
  password: string;
5747
+ }, {
5749
5748
  email: string;
5750
5749
  name: string;
5750
+ password: string;
5751
5751
  }> & toZod<AdditionalUserFieldsInput<O>>;
5752
5752
  }>> extends true ? [better_call.Context<"/sign-up/email", {
5753
5753
  method: "POST";
@@ -5763,13 +5763,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5763
5763
  email: zod.ZodString;
5764
5764
  password: zod.ZodString;
5765
5765
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
5766
- password: string;
5767
5766
  email: string;
5768
5767
  name: string;
5769
- }, {
5770
5768
  password: string;
5769
+ }, {
5771
5770
  email: string;
5772
5771
  name: string;
5772
+ password: string;
5773
5773
  }> & toZod<AdditionalUserFieldsInput<O>>;
5774
5774
  }>] : [(better_call.Context<"/sign-up/email", {
5775
5775
  method: "POST";
@@ -5785,13 +5785,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5785
5785
  email: zod.ZodString;
5786
5786
  password: zod.ZodString;
5787
5787
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
5788
- password: string;
5789
5788
  email: string;
5790
5789
  name: string;
5791
- }, {
5792
5790
  password: string;
5791
+ }, {
5793
5792
  email: string;
5794
5793
  name: string;
5794
+ password: string;
5795
5795
  }> & toZod<AdditionalUserFieldsInput<O>>;
5796
5796
  }> | undefined)?]>(...ctx: C): Promise<C extends [{
5797
5797
  asResponse: true;
@@ -5839,13 +5839,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5839
5839
  email: zod.ZodString;
5840
5840
  password: zod.ZodString;
5841
5841
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
5842
- password: string;
5843
5842
  email: string;
5844
5843
  name: string;
5845
- }, {
5846
5844
  password: string;
5845
+ }, {
5847
5846
  email: string;
5848
5847
  name: string;
5848
+ password: string;
5849
5849
  }> & toZod<AdditionalUserFieldsInput<O>>;
5850
5850
  };
5851
5851
  method: better_call.Method | better_call.Method[];
@@ -5860,13 +5860,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5860
5860
  callbackURL: zod.ZodOptional<zod.ZodString>;
5861
5861
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
5862
5862
  }, "strip", zod.ZodTypeAny, {
5863
- password: string;
5864
5863
  email: string;
5864
+ password: string;
5865
5865
  callbackURL?: string | undefined;
5866
5866
  dontRememberMe?: boolean | undefined;
5867
5867
  }, {
5868
- password: string;
5869
5868
  email: string;
5869
+ password: string;
5870
5870
  callbackURL?: string | undefined;
5871
5871
  dontRememberMe?: boolean | undefined;
5872
5872
  }>;
@@ -5901,13 +5901,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5901
5901
  callbackURL: zod.ZodOptional<zod.ZodString>;
5902
5902
  dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
5903
5903
  }, "strip", zod.ZodTypeAny, {
5904
- password: string;
5905
5904
  email: string;
5905
+ password: string;
5906
5906
  callbackURL?: string | undefined;
5907
5907
  dontRememberMe?: boolean | undefined;
5908
5908
  }, {
5909
- password: string;
5910
5909
  email: string;
5910
+ password: string;
5911
5911
  callbackURL?: string | undefined;
5912
5912
  dontRememberMe?: boolean | undefined;
5913
5913
  }>;