better-auth 0.8.3-beta.4 → 0.8.3-beta.5

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 +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/api.d.cts +1 -1
  12. package/dist/api.d.ts +1 -1
  13. package/dist/client/plugins.d.cts +6 -6
  14. package/dist/client/plugins.d.ts +6 -6
  15. package/dist/client.d.cts +1 -1
  16. package/dist/client.d.ts +1 -1
  17. package/dist/cookies.d.cts +1 -1
  18. package/dist/cookies.d.ts +1 -1
  19. package/dist/db.d.cts +2 -2
  20. package/dist/db.d.ts +2 -2
  21. package/dist/{index-DbSanUJ5.d.ts → index-uHjME6mS.d.ts} +28 -37
  22. package/dist/{index-v9In9L_y.d.cts → index-xSdbpM4W.d.cts} +28 -37
  23. package/dist/index.d.cts +2 -2
  24. package/dist/index.d.ts +2 -2
  25. package/dist/next-js.d.cts +1 -1
  26. package/dist/next-js.d.ts +1 -1
  27. package/dist/node.d.cts +1 -1
  28. package/dist/node.d.ts +1 -1
  29. package/dist/oauth2.d.cts +2 -2
  30. package/dist/oauth2.d.ts +2 -2
  31. package/dist/plugins.cjs +5 -5
  32. package/dist/plugins.d.cts +9 -9
  33. package/dist/plugins.d.ts +9 -9
  34. package/dist/plugins.js +4 -4
  35. package/dist/react.d.cts +1 -1
  36. package/dist/react.d.ts +1 -1
  37. package/dist/solid-start.d.cts +1 -1
  38. package/dist/solid-start.d.ts +1 -1
  39. package/dist/solid.d.cts +1 -1
  40. package/dist/solid.d.ts +1 -1
  41. package/dist/{state-B-02czHC.d.ts → state-5tKc556n.d.ts} +1 -1
  42. package/dist/{state-D_ITqPUS.d.cts → state-BZ0Z8cQD.d.cts} +1 -1
  43. package/dist/svelte-kit.d.cts +1 -1
  44. package/dist/svelte-kit.d.ts +1 -1
  45. package/dist/svelte.d.cts +1 -1
  46. package/dist/svelte.d.ts +1 -1
  47. package/dist/types.d.cts +2 -2
  48. package/dist/types.d.ts +2 -2
  49. package/dist/vue.d.cts +1 -1
  50. package/dist/vue.d.ts +1 -1
  51. package/package.json +1 -1
  52. package/dist/{auth-rfAcL_Rw.d.cts → auth-A5nkNoqm.d.cts} +84 -84
  53. package/dist/{auth-miD4FiAv.d.ts → auth-B2oRhuJ8.d.ts} +84 -84
@@ -25,23 +25,23 @@ declare const accountSchema: z.ZodObject<{
25
25
  password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  }, "strip", z.ZodTypeAny, {
27
27
  id: string;
28
- userId: string;
29
28
  providerId: string;
30
29
  accountId: string;
31
- expiresAt?: Date | null | undefined;
30
+ userId: string;
32
31
  accessToken?: string | null | undefined;
33
32
  refreshToken?: string | null | undefined;
34
33
  idToken?: string | null | undefined;
34
+ expiresAt?: Date | null | undefined;
35
35
  password?: string | null | undefined;
36
36
  }, {
37
37
  id: string;
38
- userId: string;
39
38
  providerId: string;
40
39
  accountId: string;
41
- expiresAt?: Date | null | undefined;
40
+ userId: string;
42
41
  accessToken?: string | null | undefined;
43
42
  refreshToken?: string | null | undefined;
44
43
  idToken?: string | null | undefined;
44
+ expiresAt?: Date | null | undefined;
45
45
  password?: string | null | undefined;
46
46
  }>;
47
47
  declare const userSchema: z.ZodObject<{
@@ -1200,13 +1200,13 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
1200
1200
  }>;
1201
1201
  createAccount: <T>(account: Omit<Account, "id" | "createdAt" | "updatedAt"> & Partial<Account> & Record<string, any>) => Promise<T & {
1202
1202
  id: string;
1203
- userId: string;
1204
1203
  providerId: string;
1205
1204
  accountId: string;
1206
- expiresAt?: Date | null | undefined;
1205
+ userId: string;
1207
1206
  accessToken?: string | null | undefined;
1208
1207
  refreshToken?: string | null | undefined;
1209
1208
  idToken?: string | null | undefined;
1209
+ expiresAt?: Date | null | undefined;
1210
1210
  password?: string | null | undefined;
1211
1211
  }>;
1212
1212
  listSessions: (userId: string) => Promise<{
@@ -1261,13 +1261,13 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
1261
1261
  };
1262
1262
  accounts: {
1263
1263
  id: string;
1264
- userId: string;
1265
1264
  providerId: string;
1266
1265
  accountId: string;
1267
- expiresAt?: Date | null | undefined;
1266
+ userId: string;
1268
1267
  accessToken?: string | null | undefined;
1269
1268
  refreshToken?: string | null | undefined;
1270
1269
  idToken?: string | null | undefined;
1270
+ expiresAt?: Date | null | undefined;
1271
1271
  password?: string | null | undefined;
1272
1272
  }[];
1273
1273
  } | null>;
@@ -1286,24 +1286,24 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
1286
1286
  updatePassword: (userId: string, password: string) => Promise<any>;
1287
1287
  findAccounts: (userId: string) => Promise<{
1288
1288
  id: string;
1289
- userId: string;
1290
1289
  providerId: string;
1291
1290
  accountId: string;
1292
- expiresAt?: Date | null | undefined;
1291
+ userId: string;
1293
1292
  accessToken?: string | null | undefined;
1294
1293
  refreshToken?: string | null | undefined;
1295
1294
  idToken?: string | null | undefined;
1295
+ expiresAt?: Date | null | undefined;
1296
1296
  password?: string | null | undefined;
1297
1297
  }[]>;
1298
1298
  findAccount: (accountId: string) => Promise<{
1299
1299
  id: string;
1300
- userId: string;
1301
1300
  providerId: string;
1302
1301
  accountId: string;
1303
- expiresAt?: Date | null | undefined;
1302
+ userId: string;
1304
1303
  accessToken?: string | null | undefined;
1305
1304
  refreshToken?: string | null | undefined;
1306
1305
  idToken?: string | null | undefined;
1306
+ expiresAt?: Date | null | undefined;
1307
1307
  password?: string | null | undefined;
1308
1308
  } | null>;
1309
1309
  updateAccount: (accountId: string, data: Partial<Account>) => Promise<any>;
@@ -1532,24 +1532,24 @@ declare const signInSocial: {
1532
1532
  expiresAt: z.ZodOptional<z.ZodNumber>;
1533
1533
  }, "strip", z.ZodTypeAny, {
1534
1534
  token: string;
1535
- expiresAt?: number | undefined;
1536
1535
  accessToken?: string | undefined;
1537
1536
  refreshToken?: string | undefined;
1537
+ expiresAt?: number | undefined;
1538
1538
  nonce?: string | undefined;
1539
1539
  }, {
1540
1540
  token: string;
1541
- expiresAt?: number | undefined;
1542
1541
  accessToken?: string | undefined;
1543
1542
  refreshToken?: string | undefined;
1543
+ expiresAt?: number | undefined;
1544
1544
  nonce?: string | undefined;
1545
1545
  }>>;
1546
1546
  }, "strip", z.ZodTypeAny, {
1547
1547
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1548
1548
  idToken?: {
1549
1549
  token: string;
1550
- expiresAt?: number | undefined;
1551
1550
  accessToken?: string | undefined;
1552
1551
  refreshToken?: string | undefined;
1552
+ expiresAt?: number | undefined;
1553
1553
  nonce?: string | undefined;
1554
1554
  } | undefined;
1555
1555
  callbackURL?: string | undefined;
@@ -1557,9 +1557,9 @@ declare const signInSocial: {
1557
1557
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1558
1558
  idToken?: {
1559
1559
  token: string;
1560
- expiresAt?: number | undefined;
1561
1560
  accessToken?: string | undefined;
1562
1561
  refreshToken?: string | undefined;
1562
+ expiresAt?: number | undefined;
1563
1563
  nonce?: string | undefined;
1564
1564
  } | undefined;
1565
1565
  callbackURL?: string | undefined;
@@ -1627,24 +1627,24 @@ declare const signInSocial: {
1627
1627
  expiresAt: z.ZodOptional<z.ZodNumber>;
1628
1628
  }, "strip", z.ZodTypeAny, {
1629
1629
  token: string;
1630
- expiresAt?: number | undefined;
1631
1630
  accessToken?: string | undefined;
1632
1631
  refreshToken?: string | undefined;
1632
+ expiresAt?: number | undefined;
1633
1633
  nonce?: string | undefined;
1634
1634
  }, {
1635
1635
  token: string;
1636
- expiresAt?: number | undefined;
1637
1636
  accessToken?: string | undefined;
1638
1637
  refreshToken?: string | undefined;
1638
+ expiresAt?: number | undefined;
1639
1639
  nonce?: string | undefined;
1640
1640
  }>>;
1641
1641
  }, "strip", z.ZodTypeAny, {
1642
1642
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1643
1643
  idToken?: {
1644
1644
  token: string;
1645
- expiresAt?: number | undefined;
1646
1645
  accessToken?: string | undefined;
1647
1646
  refreshToken?: string | undefined;
1647
+ expiresAt?: number | undefined;
1648
1648
  nonce?: string | undefined;
1649
1649
  } | undefined;
1650
1650
  callbackURL?: string | undefined;
@@ -1652,9 +1652,9 @@ declare const signInSocial: {
1652
1652
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1653
1653
  idToken?: {
1654
1654
  token: string;
1655
- expiresAt?: number | undefined;
1656
1655
  accessToken?: string | undefined;
1657
1656
  refreshToken?: string | undefined;
1657
+ expiresAt?: number | undefined;
1658
1658
  nonce?: string | undefined;
1659
1659
  } | undefined;
1660
1660
  callbackURL?: string | undefined;
@@ -1676,13 +1676,13 @@ declare const signInEmail: {
1676
1676
  */
1677
1677
  rememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1678
1678
  }, "strip", z.ZodTypeAny, {
1679
- email: string;
1680
1679
  password: string;
1680
+ email: string;
1681
1681
  callbackURL?: string | undefined;
1682
1682
  rememberMe?: boolean | undefined;
1683
1683
  }, {
1684
- email: string;
1685
1684
  password: string;
1685
+ email: string;
1686
1686
  callbackURL?: string | undefined;
1687
1687
  rememberMe?: boolean | undefined;
1688
1688
  }>;
@@ -1721,13 +1721,13 @@ declare const signInEmail: {
1721
1721
  */
1722
1722
  rememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1723
1723
  }, "strip", z.ZodTypeAny, {
1724
- email: string;
1725
1724
  password: string;
1725
+ email: string;
1726
1726
  callbackURL?: string | undefined;
1727
1727
  rememberMe?: boolean | undefined;
1728
1728
  }, {
1729
- email: string;
1730
1729
  password: string;
1730
+ email: string;
1731
1731
  callbackURL?: string | undefined;
1732
1732
  rememberMe?: boolean | undefined;
1733
1733
  }>;
@@ -3159,24 +3159,24 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3159
3159
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
3160
3160
  }, "strip", zod.ZodTypeAny, {
3161
3161
  token: string;
3162
- expiresAt?: number | undefined;
3163
3162
  accessToken?: string | undefined;
3164
3163
  refreshToken?: string | undefined;
3164
+ expiresAt?: number | undefined;
3165
3165
  nonce?: string | undefined;
3166
3166
  }, {
3167
3167
  token: string;
3168
- expiresAt?: number | undefined;
3169
3168
  accessToken?: string | undefined;
3170
3169
  refreshToken?: string | undefined;
3170
+ expiresAt?: number | undefined;
3171
3171
  nonce?: string | undefined;
3172
3172
  }>>;
3173
3173
  }, "strip", zod.ZodTypeAny, {
3174
3174
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3175
3175
  idToken?: {
3176
3176
  token: string;
3177
- expiresAt?: number | undefined;
3178
3177
  accessToken?: string | undefined;
3179
3178
  refreshToken?: string | undefined;
3179
+ expiresAt?: number | undefined;
3180
3180
  nonce?: string | undefined;
3181
3181
  } | undefined;
3182
3182
  callbackURL?: string | undefined;
@@ -3184,9 +3184,9 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3184
3184
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3185
3185
  idToken?: {
3186
3186
  token: string;
3187
- expiresAt?: number | undefined;
3188
3187
  accessToken?: string | undefined;
3189
3188
  refreshToken?: string | undefined;
3189
+ expiresAt?: number | undefined;
3190
3190
  nonce?: string | undefined;
3191
3191
  } | undefined;
3192
3192
  callbackURL?: string | undefined;
@@ -3218,24 +3218,24 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3218
3218
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
3219
3219
  }, "strip", zod.ZodTypeAny, {
3220
3220
  token: string;
3221
- expiresAt?: number | undefined;
3222
3221
  accessToken?: string | undefined;
3223
3222
  refreshToken?: string | undefined;
3223
+ expiresAt?: number | undefined;
3224
3224
  nonce?: string | undefined;
3225
3225
  }, {
3226
3226
  token: string;
3227
- expiresAt?: number | undefined;
3228
3227
  accessToken?: string | undefined;
3229
3228
  refreshToken?: string | undefined;
3229
+ expiresAt?: number | undefined;
3230
3230
  nonce?: string | undefined;
3231
3231
  }>>;
3232
3232
  }, "strip", zod.ZodTypeAny, {
3233
3233
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3234
3234
  idToken?: {
3235
3235
  token: string;
3236
- expiresAt?: number | undefined;
3237
3236
  accessToken?: string | undefined;
3238
3237
  refreshToken?: string | undefined;
3238
+ expiresAt?: number | undefined;
3239
3239
  nonce?: string | undefined;
3240
3240
  } | undefined;
3241
3241
  callbackURL?: string | undefined;
@@ -3243,9 +3243,9 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3243
3243
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3244
3244
  idToken?: {
3245
3245
  token: string;
3246
- expiresAt?: number | undefined;
3247
3246
  accessToken?: string | undefined;
3248
3247
  refreshToken?: string | undefined;
3248
+ expiresAt?: number | undefined;
3249
3249
  nonce?: string | undefined;
3250
3250
  } | undefined;
3251
3251
  callbackURL?: string | undefined;
@@ -3377,13 +3377,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3377
3377
  email: zod.ZodString;
3378
3378
  password: zod.ZodString;
3379
3379
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3380
+ password: string;
3380
3381
  email: string;
3381
3382
  name: string;
3382
- password: string;
3383
3383
  }, {
3384
+ password: string;
3384
3385
  email: string;
3385
3386
  name: string;
3386
- password: string;
3387
3387
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3388
3388
  }>> extends true ? [better_call.Context<"/sign-up/email", {
3389
3389
  method: "POST";
@@ -3399,13 +3399,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3399
3399
  email: zod.ZodString;
3400
3400
  password: zod.ZodString;
3401
3401
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3402
+ password: string;
3402
3403
  email: string;
3403
3404
  name: string;
3404
- password: string;
3405
3405
  }, {
3406
+ password: string;
3406
3407
  email: string;
3407
3408
  name: string;
3408
- password: string;
3409
3409
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3410
3410
  }>] : [(better_call.Context<"/sign-up/email", {
3411
3411
  method: "POST";
@@ -3421,13 +3421,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3421
3421
  email: zod.ZodString;
3422
3422
  password: zod.ZodString;
3423
3423
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3424
+ password: string;
3424
3425
  email: string;
3425
3426
  name: string;
3426
- password: string;
3427
3427
  }, {
3428
+ password: string;
3428
3429
  email: string;
3429
3430
  name: string;
3430
- password: string;
3431
3431
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3432
3432
  }> | undefined)?]>(...ctx: C_1): Promise<C_1 extends [{
3433
3433
  asResponse: true;
@@ -3475,13 +3475,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3475
3475
  email: zod.ZodString;
3476
3476
  password: zod.ZodString;
3477
3477
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3478
+ password: string;
3478
3479
  email: string;
3479
3480
  name: string;
3480
- password: string;
3481
3481
  }, {
3482
+ password: string;
3482
3483
  email: string;
3483
3484
  name: string;
3484
- password: string;
3485
3485
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3486
3486
  };
3487
3487
  method: better_call.Method | better_call.Method[];
@@ -3496,13 +3496,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3496
3496
  callbackURL: zod.ZodOptional<zod.ZodString>;
3497
3497
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
3498
3498
  }, "strip", zod.ZodTypeAny, {
3499
- email: string;
3500
3499
  password: string;
3500
+ email: string;
3501
3501
  callbackURL?: string | undefined;
3502
3502
  rememberMe?: boolean | undefined;
3503
3503
  }, {
3504
- email: string;
3505
3504
  password: string;
3505
+ email: string;
3506
3506
  callbackURL?: string | undefined;
3507
3507
  rememberMe?: boolean | undefined;
3508
3508
  }>;
@@ -3537,13 +3537,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3537
3537
  callbackURL: zod.ZodOptional<zod.ZodString>;
3538
3538
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
3539
3539
  }, "strip", zod.ZodTypeAny, {
3540
- email: string;
3541
3540
  password: string;
3541
+ email: string;
3542
3542
  callbackURL?: string | undefined;
3543
3543
  rememberMe?: boolean | undefined;
3544
3544
  }, {
3545
- email: string;
3546
3545
  password: string;
3546
+ email: string;
3547
3547
  callbackURL?: string | undefined;
3548
3548
  rememberMe?: boolean | undefined;
3549
3549
  }>;
@@ -4677,24 +4677,24 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4677
4677
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
4678
4678
  }, "strip", zod.ZodTypeAny, {
4679
4679
  token: string;
4680
- expiresAt?: number | undefined;
4681
4680
  accessToken?: string | undefined;
4682
4681
  refreshToken?: string | undefined;
4682
+ expiresAt?: number | undefined;
4683
4683
  nonce?: string | undefined;
4684
4684
  }, {
4685
4685
  token: string;
4686
- expiresAt?: number | undefined;
4687
4686
  accessToken?: string | undefined;
4688
4687
  refreshToken?: string | undefined;
4688
+ expiresAt?: number | undefined;
4689
4689
  nonce?: string | undefined;
4690
4690
  }>>;
4691
4691
  }, "strip", zod.ZodTypeAny, {
4692
4692
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4693
4693
  idToken?: {
4694
4694
  token: string;
4695
- expiresAt?: number | undefined;
4696
4695
  accessToken?: string | undefined;
4697
4696
  refreshToken?: string | undefined;
4697
+ expiresAt?: number | undefined;
4698
4698
  nonce?: string | undefined;
4699
4699
  } | undefined;
4700
4700
  callbackURL?: string | undefined;
@@ -4702,9 +4702,9 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4702
4702
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4703
4703
  idToken?: {
4704
4704
  token: string;
4705
- expiresAt?: number | undefined;
4706
4705
  accessToken?: string | undefined;
4707
4706
  refreshToken?: string | undefined;
4707
+ expiresAt?: number | undefined;
4708
4708
  nonce?: string | undefined;
4709
4709
  } | undefined;
4710
4710
  callbackURL?: string | undefined;
@@ -4736,24 +4736,24 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4736
4736
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
4737
4737
  }, "strip", zod.ZodTypeAny, {
4738
4738
  token: string;
4739
- expiresAt?: number | undefined;
4740
4739
  accessToken?: string | undefined;
4741
4740
  refreshToken?: string | undefined;
4741
+ expiresAt?: number | undefined;
4742
4742
  nonce?: string | undefined;
4743
4743
  }, {
4744
4744
  token: string;
4745
- expiresAt?: number | undefined;
4746
4745
  accessToken?: string | undefined;
4747
4746
  refreshToken?: string | undefined;
4747
+ expiresAt?: number | undefined;
4748
4748
  nonce?: string | undefined;
4749
4749
  }>>;
4750
4750
  }, "strip", zod.ZodTypeAny, {
4751
4751
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4752
4752
  idToken?: {
4753
4753
  token: string;
4754
- expiresAt?: number | undefined;
4755
4754
  accessToken?: string | undefined;
4756
4755
  refreshToken?: string | undefined;
4756
+ expiresAt?: number | undefined;
4757
4757
  nonce?: string | undefined;
4758
4758
  } | undefined;
4759
4759
  callbackURL?: string | undefined;
@@ -4761,9 +4761,9 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4761
4761
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4762
4762
  idToken?: {
4763
4763
  token: string;
4764
- expiresAt?: number | undefined;
4765
4764
  accessToken?: string | undefined;
4766
4765
  refreshToken?: string | undefined;
4766
+ expiresAt?: number | undefined;
4767
4767
  nonce?: string | undefined;
4768
4768
  } | undefined;
4769
4769
  callbackURL?: string | undefined;
@@ -4895,13 +4895,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4895
4895
  email: zod.ZodString;
4896
4896
  password: zod.ZodString;
4897
4897
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4898
+ password: string;
4898
4899
  email: string;
4899
4900
  name: string;
4900
- password: string;
4901
4901
  }, {
4902
+ password: string;
4902
4903
  email: string;
4903
4904
  name: string;
4904
- password: string;
4905
4905
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4906
4906
  }>> extends true ? [better_call.Context<"/sign-up/email", {
4907
4907
  method: "POST";
@@ -4917,13 +4917,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4917
4917
  email: zod.ZodString;
4918
4918
  password: zod.ZodString;
4919
4919
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4920
+ password: string;
4920
4921
  email: string;
4921
4922
  name: string;
4922
- password: string;
4923
4923
  }, {
4924
+ password: string;
4924
4925
  email: string;
4925
4926
  name: string;
4926
- password: string;
4927
4927
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4928
4928
  }>] : [(better_call.Context<"/sign-up/email", {
4929
4929
  method: "POST";
@@ -4939,13 +4939,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4939
4939
  email: zod.ZodString;
4940
4940
  password: zod.ZodString;
4941
4941
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4942
+ password: string;
4942
4943
  email: string;
4943
4944
  name: string;
4944
- password: string;
4945
4945
  }, {
4946
+ password: string;
4946
4947
  email: string;
4947
4948
  name: string;
4948
- password: string;
4949
4949
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4950
4950
  }> | undefined)?]>(...ctx: C_1): Promise<C_1 extends [{
4951
4951
  asResponse: true;
@@ -4993,13 +4993,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4993
4993
  email: zod.ZodString;
4994
4994
  password: zod.ZodString;
4995
4995
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4996
+ password: string;
4996
4997
  email: string;
4997
4998
  name: string;
4998
- password: string;
4999
4999
  }, {
5000
+ password: string;
5000
5001
  email: string;
5001
5002
  name: string;
5002
- password: string;
5003
5003
  }> & toZod<AdditionalUserFieldsInput<Option>>;
5004
5004
  };
5005
5005
  method: better_call.Method | better_call.Method[];
@@ -5014,13 +5014,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
5014
5014
  callbackURL: zod.ZodOptional<zod.ZodString>;
5015
5015
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
5016
5016
  }, "strip", zod.ZodTypeAny, {
5017
- email: string;
5018
5017
  password: string;
5018
+ email: string;
5019
5019
  callbackURL?: string | undefined;
5020
5020
  rememberMe?: boolean | undefined;
5021
5021
  }, {
5022
- email: string;
5023
5022
  password: string;
5023
+ email: string;
5024
5024
  callbackURL?: string | undefined;
5025
5025
  rememberMe?: boolean | undefined;
5026
5026
  }>;
@@ -5055,13 +5055,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
5055
5055
  callbackURL: zod.ZodOptional<zod.ZodString>;
5056
5056
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
5057
5057
  }, "strip", zod.ZodTypeAny, {
5058
- email: string;
5059
5058
  password: string;
5059
+ email: string;
5060
5060
  callbackURL?: string | undefined;
5061
5061
  rememberMe?: boolean | undefined;
5062
5062
  }, {
5063
- email: string;
5064
5063
  password: string;
5064
+ email: string;
5065
5065
  callbackURL?: string | undefined;
5066
5066
  rememberMe?: boolean | undefined;
5067
5067
  }>;
@@ -6197,24 +6197,24 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6197
6197
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
6198
6198
  }, "strip", zod.ZodTypeAny, {
6199
6199
  token: string;
6200
- expiresAt?: number | undefined;
6201
6200
  accessToken?: string | undefined;
6202
6201
  refreshToken?: string | undefined;
6202
+ expiresAt?: number | undefined;
6203
6203
  nonce?: string | undefined;
6204
6204
  }, {
6205
6205
  token: string;
6206
- expiresAt?: number | undefined;
6207
6206
  accessToken?: string | undefined;
6208
6207
  refreshToken?: string | undefined;
6208
+ expiresAt?: number | undefined;
6209
6209
  nonce?: string | undefined;
6210
6210
  }>>;
6211
6211
  }, "strip", zod.ZodTypeAny, {
6212
6212
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6213
6213
  idToken?: {
6214
6214
  token: string;
6215
- expiresAt?: number | undefined;
6216
6215
  accessToken?: string | undefined;
6217
6216
  refreshToken?: string | undefined;
6217
+ expiresAt?: number | undefined;
6218
6218
  nonce?: string | undefined;
6219
6219
  } | undefined;
6220
6220
  callbackURL?: string | undefined;
@@ -6222,9 +6222,9 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6222
6222
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6223
6223
  idToken?: {
6224
6224
  token: string;
6225
- expiresAt?: number | undefined;
6226
6225
  accessToken?: string | undefined;
6227
6226
  refreshToken?: string | undefined;
6227
+ expiresAt?: number | undefined;
6228
6228
  nonce?: string | undefined;
6229
6229
  } | undefined;
6230
6230
  callbackURL?: string | undefined;
@@ -6256,24 +6256,24 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6256
6256
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
6257
6257
  }, "strip", zod.ZodTypeAny, {
6258
6258
  token: string;
6259
- expiresAt?: number | undefined;
6260
6259
  accessToken?: string | undefined;
6261
6260
  refreshToken?: string | undefined;
6261
+ expiresAt?: number | undefined;
6262
6262
  nonce?: string | undefined;
6263
6263
  }, {
6264
6264
  token: string;
6265
- expiresAt?: number | undefined;
6266
6265
  accessToken?: string | undefined;
6267
6266
  refreshToken?: string | undefined;
6267
+ expiresAt?: number | undefined;
6268
6268
  nonce?: string | undefined;
6269
6269
  }>>;
6270
6270
  }, "strip", zod.ZodTypeAny, {
6271
6271
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6272
6272
  idToken?: {
6273
6273
  token: string;
6274
- expiresAt?: number | undefined;
6275
6274
  accessToken?: string | undefined;
6276
6275
  refreshToken?: string | undefined;
6276
+ expiresAt?: number | undefined;
6277
6277
  nonce?: string | undefined;
6278
6278
  } | undefined;
6279
6279
  callbackURL?: string | undefined;
@@ -6281,9 +6281,9 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6281
6281
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6282
6282
  idToken?: {
6283
6283
  token: string;
6284
- expiresAt?: number | undefined;
6285
6284
  accessToken?: string | undefined;
6286
6285
  refreshToken?: string | undefined;
6286
+ expiresAt?: number | undefined;
6287
6287
  nonce?: string | undefined;
6288
6288
  } | undefined;
6289
6289
  callbackURL?: string | undefined;
@@ -6415,13 +6415,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6415
6415
  email: zod.ZodString;
6416
6416
  password: zod.ZodString;
6417
6417
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
6418
+ password: string;
6418
6419
  email: string;
6419
6420
  name: string;
6420
- password: string;
6421
6421
  }, {
6422
+ password: string;
6422
6423
  email: string;
6423
6424
  name: string;
6424
- password: string;
6425
6425
  }> & toZod<AdditionalUserFieldsInput<O>>;
6426
6426
  }>> extends true ? [better_call.Context<"/sign-up/email", {
6427
6427
  method: "POST";
@@ -6437,13 +6437,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6437
6437
  email: zod.ZodString;
6438
6438
  password: zod.ZodString;
6439
6439
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
6440
+ password: string;
6440
6441
  email: string;
6441
6442
  name: string;
6442
- password: string;
6443
6443
  }, {
6444
+ password: string;
6444
6445
  email: string;
6445
6446
  name: string;
6446
- password: string;
6447
6447
  }> & toZod<AdditionalUserFieldsInput<O>>;
6448
6448
  }>] : [(better_call.Context<"/sign-up/email", {
6449
6449
  method: "POST";
@@ -6459,13 +6459,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6459
6459
  email: zod.ZodString;
6460
6460
  password: zod.ZodString;
6461
6461
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
6462
+ password: string;
6462
6463
  email: string;
6463
6464
  name: string;
6464
- password: string;
6465
6465
  }, {
6466
+ password: string;
6466
6467
  email: string;
6467
6468
  name: string;
6468
- password: string;
6469
6469
  }> & toZod<AdditionalUserFieldsInput<O>>;
6470
6470
  }> | undefined)?]>(...ctx: C): Promise<C extends [{
6471
6471
  asResponse: true;
@@ -6513,13 +6513,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6513
6513
  email: zod.ZodString;
6514
6514
  password: zod.ZodString;
6515
6515
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
6516
+ password: string;
6516
6517
  email: string;
6517
6518
  name: string;
6518
- password: string;
6519
6519
  }, {
6520
+ password: string;
6520
6521
  email: string;
6521
6522
  name: string;
6522
- password: string;
6523
6523
  }> & toZod<AdditionalUserFieldsInput<O>>;
6524
6524
  };
6525
6525
  method: better_call.Method | better_call.Method[];
@@ -6534,13 +6534,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6534
6534
  callbackURL: zod.ZodOptional<zod.ZodString>;
6535
6535
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
6536
6536
  }, "strip", zod.ZodTypeAny, {
6537
- email: string;
6538
6537
  password: string;
6538
+ email: string;
6539
6539
  callbackURL?: string | undefined;
6540
6540
  rememberMe?: boolean | undefined;
6541
6541
  }, {
6542
- email: string;
6543
6542
  password: string;
6543
+ email: string;
6544
6544
  callbackURL?: string | undefined;
6545
6545
  rememberMe?: boolean | undefined;
6546
6546
  }>;
@@ -6575,13 +6575,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6575
6575
  callbackURL: zod.ZodOptional<zod.ZodString>;
6576
6576
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
6577
6577
  }, "strip", zod.ZodTypeAny, {
6578
- email: string;
6579
6578
  password: string;
6579
+ email: string;
6580
6580
  callbackURL?: string | undefined;
6581
6581
  rememberMe?: boolean | undefined;
6582
6582
  }, {
6583
- email: string;
6584
6583
  password: string;
6584
+ email: string;
6585
6585
  callbackURL?: string | undefined;
6586
6586
  rememberMe?: boolean | undefined;
6587
6587
  }>;