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

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 (53) 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-CbhcAHOF.d.cts → auth-5vq2cwU_.d.cts} +47 -47
  12. package/dist/{auth-NHujeJMf.d.ts → auth-DXTYJS1g.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-BwdSU0WF.d.ts → index-B5OO_C31.d.ts} +8 -8
  22. package/dist/{index-CK3sHUOB.d.cts → index-o8ias2pI.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-6VKTmUTy.d.ts → state-2IP14aYo.d.ts} +1 -1
  40. package/dist/{state-CoKL3DyH.d.cts → state-mF7s1_xk.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.cjs +1 -1
  44. package/dist/svelte.d.cts +2 -2
  45. package/dist/svelte.d.ts +2 -2
  46. package/dist/svelte.js +1 -1
  47. package/dist/types.d.cts +4 -4
  48. package/dist/types.d.ts +4 -4
  49. package/dist/vue.d.cts +2 -2
  50. package/dist/vue.d.ts +2 -2
  51. package/package.json +1 -1
  52. package/dist/{index-CGq2kTts.d.ts → index-mRrWw8DZ.d.cts} +4 -4
  53. package/dist/{index-CGq2kTts.d.cts → index-mRrWw8DZ.d.ts} +4 -4
@@ -1,8 +1,8 @@
1
- import { A as Adapter } from '../auth-CbhcAHOF.cjs';
1
+ import { A as Adapter } from '../auth-5vq2cwU_.cjs';
2
2
  import 'node_modules/better-call/dist/router-Bn7zn81P';
3
3
  import 'zod';
4
4
  import 'kysely';
5
- import '../index-CGq2kTts.cjs';
5
+ import '../index-mRrWw8DZ.cjs';
6
6
  import 'better-call';
7
7
  import 'better-sqlite3';
8
8
 
@@ -1,8 +1,8 @@
1
- import { A as Adapter } from '../auth-NHujeJMf.js';
1
+ import { A as Adapter } from '../auth-DXTYJS1g.js';
2
2
  import 'node_modules/better-call/dist/router-Bn7zn81P';
3
3
  import 'zod';
4
4
  import 'kysely';
5
- import '../index-CGq2kTts.js';
5
+ import '../index-mRrWw8DZ.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-CbhcAHOF.cjs';
2
+ import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-5vq2cwU_.cjs';
3
3
  import 'node_modules/better-call/dist/router-Bn7zn81P';
4
4
  import 'zod';
5
- import '../index-CGq2kTts.cjs';
5
+ import '../index-mRrWw8DZ.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-NHujeJMf.js';
2
+ import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-DXTYJS1g.js';
3
3
  import 'node_modules/better-call/dist/router-Bn7zn81P';
4
4
  import 'zod';
5
- import '../index-CGq2kTts.js';
5
+ import '../index-mRrWw8DZ.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-CbhcAHOF.cjs';
6
+ import { W as Where } from '../auth-5vq2cwU_.cjs';
7
7
  import 'node_modules/better-call/dist/router-Bn7zn81P';
8
8
  import 'zod';
9
9
  import 'kysely';
10
- import '../index-CGq2kTts.cjs';
10
+ import '../index-mRrWw8DZ.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-NHujeJMf.js';
6
+ import { W as Where } from '../auth-DXTYJS1g.js';
7
7
  import 'node_modules/better-call/dist/router-Bn7zn81P';
8
8
  import 'zod';
9
9
  import 'kysely';
10
- import '../index-CGq2kTts.js';
10
+ import '../index-mRrWw8DZ.js';
11
11
  import 'better-call';
12
12
  import 'better-sqlite3';
13
13
 
@@ -1,8 +1,8 @@
1
- import { A as Adapter } from '../auth-CbhcAHOF.cjs';
1
+ import { A as Adapter } from '../auth-5vq2cwU_.cjs';
2
2
  import 'node_modules/better-call/dist/router-Bn7zn81P';
3
3
  import 'zod';
4
4
  import 'kysely';
5
- import '../index-CGq2kTts.cjs';
5
+ import '../index-mRrWw8DZ.cjs';
6
6
  import 'better-call';
7
7
  import 'better-sqlite3';
8
8
 
@@ -1,8 +1,8 @@
1
- import { A as Adapter } from '../auth-NHujeJMf.js';
1
+ import { A as Adapter } from '../auth-DXTYJS1g.js';
2
2
  import 'node_modules/better-call/dist/router-Bn7zn81P';
3
3
  import 'zod';
4
4
  import 'kysely';
5
- import '../index-CGq2kTts.js';
5
+ import '../index-mRrWw8DZ.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-CbhcAHOF.cjs';
3
- import './index-CGq2kTts.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-5vq2cwU_.cjs';
3
+ import './index-mRrWw8DZ.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-NHujeJMf.js';
3
- import './index-CGq2kTts.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-DXTYJS1g.js';
3
+ import './index-mRrWw8DZ.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-CGq2kTts.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-mRrWw8DZ.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;
147
146
  providerId: string;
148
147
  accountId: string;
149
- expiresAt?: Date | null | undefined;
148
+ userId: string;
150
149
  accessToken?: string | null | undefined;
151
150
  refreshToken?: string | null | undefined;
152
151
  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;
208
207
  providerId: string;
209
208
  accountId: string;
210
- expiresAt?: Date | null | undefined;
209
+ userId: string;
211
210
  accessToken?: string | null | undefined;
212
211
  refreshToken?: string | null | undefined;
213
212
  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;
233
232
  providerId: string;
234
233
  accountId: string;
235
- expiresAt?: Date | null | undefined;
234
+ userId: string;
236
235
  accessToken?: string | null | undefined;
237
236
  refreshToken?: string | null | undefined;
238
237
  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
- email: string;
1361
1360
  password: string;
1361
+ email: string;
1362
1362
  callbackURL?: string | undefined;
1363
1363
  dontRememberMe?: boolean | undefined;
1364
1364
  }, {
1365
- email: string;
1366
1365
  password: string;
1366
+ email: 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
- email: string;
1406
1405
  password: string;
1406
+ email: string;
1407
1407
  callbackURL?: string | undefined;
1408
1408
  dontRememberMe?: boolean | undefined;
1409
1409
  }, {
1410
- email: string;
1411
1410
  password: string;
1411
+ email: 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;
2952
2953
  email: string;
2953
2954
  name: string;
2954
- password: string;
2955
2955
  }, {
2956
+ password: string;
2956
2957
  email: string;
2957
2958
  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;
2974
2975
  email: string;
2975
2976
  name: string;
2976
- password: string;
2977
2977
  }, {
2978
+ password: string;
2978
2979
  email: string;
2979
2980
  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;
2996
2997
  email: string;
2997
2998
  name: string;
2998
- password: string;
2999
2999
  }, {
3000
+ password: string;
3000
3001
  email: string;
3001
3002
  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;
3050
3051
  email: string;
3051
3052
  name: string;
3052
- password: string;
3053
3053
  }, {
3054
+ password: string;
3054
3055
  email: string;
3055
3056
  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
- email: string;
3072
3071
  password: string;
3072
+ email: string;
3073
3073
  callbackURL?: string | undefined;
3074
3074
  dontRememberMe?: boolean | undefined;
3075
3075
  }, {
3076
- email: string;
3077
3076
  password: string;
3077
+ email: 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
- email: string;
3113
3112
  password: string;
3113
+ email: string;
3114
3114
  callbackURL?: string | undefined;
3115
3115
  dontRememberMe?: boolean | undefined;
3116
3116
  }, {
3117
- email: string;
3118
3117
  password: string;
3118
+ email: 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;
4347
4348
  email: string;
4348
4349
  name: string;
4349
- password: string;
4350
4350
  }, {
4351
+ password: string;
4351
4352
  email: string;
4352
4353
  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;
4369
4370
  email: string;
4370
4371
  name: string;
4371
- password: string;
4372
4372
  }, {
4373
+ password: string;
4373
4374
  email: string;
4374
4375
  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;
4391
4392
  email: string;
4392
4393
  name: string;
4393
- password: string;
4394
4394
  }, {
4395
+ password: string;
4395
4396
  email: string;
4396
4397
  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;
4445
4446
  email: string;
4446
4447
  name: string;
4447
- password: string;
4448
4448
  }, {
4449
+ password: string;
4449
4450
  email: string;
4450
4451
  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
- email: string;
4467
4466
  password: string;
4467
+ email: string;
4468
4468
  callbackURL?: string | undefined;
4469
4469
  dontRememberMe?: boolean | undefined;
4470
4470
  }, {
4471
- email: string;
4472
4471
  password: string;
4472
+ email: 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
- email: string;
4508
4507
  password: string;
4508
+ email: string;
4509
4509
  callbackURL?: string | undefined;
4510
4510
  dontRememberMe?: boolean | undefined;
4511
4511
  }, {
4512
- email: string;
4513
4512
  password: string;
4513
+ email: 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;
5744
5745
  email: string;
5745
5746
  name: string;
5746
- password: string;
5747
5747
  }, {
5748
+ password: string;
5748
5749
  email: string;
5749
5750
  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;
5766
5767
  email: string;
5767
5768
  name: string;
5768
- password: string;
5769
5769
  }, {
5770
+ password: string;
5770
5771
  email: string;
5771
5772
  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;
5788
5789
  email: string;
5789
5790
  name: string;
5790
- password: string;
5791
5791
  }, {
5792
+ password: string;
5792
5793
  email: string;
5793
5794
  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;
5842
5843
  email: string;
5843
5844
  name: string;
5844
- password: string;
5845
5845
  }, {
5846
+ password: string;
5846
5847
  email: string;
5847
5848
  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
- email: string;
5864
5863
  password: string;
5864
+ email: string;
5865
5865
  callbackURL?: string | undefined;
5866
5866
  dontRememberMe?: boolean | undefined;
5867
5867
  }, {
5868
- email: string;
5869
5868
  password: string;
5869
+ email: 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
- email: string;
5905
5904
  password: string;
5905
+ email: string;
5906
5906
  callbackURL?: string | undefined;
5907
5907
  dontRememberMe?: boolean | undefined;
5908
5908
  }, {
5909
- email: string;
5910
5909
  password: string;
5910
+ email: string;
5911
5911
  callbackURL?: string | undefined;
5912
5912
  dontRememberMe?: boolean | undefined;
5913
5913
  }>;