better-auth 0.8.4-beta.6 → 0.8.4-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 (55) 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 +3 -3
  14. package/dist/client/plugins.d.ts +3 -3
  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.cjs +1 -1
  20. package/dist/db.d.cts +2 -2
  21. package/dist/db.d.ts +2 -2
  22. package/dist/db.js +1 -1
  23. package/dist/{index-BVsVqobF.d.cts → index-BD6Gi4uB.d.cts} +7 -7
  24. package/dist/{index-DY7Ai3Jp.d.ts → index-KAWRcjOC.d.ts} +7 -7
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +1 -1
  29. package/dist/next-js.d.cts +1 -1
  30. package/dist/next-js.d.ts +1 -1
  31. package/dist/node.d.cts +1 -1
  32. package/dist/node.d.ts +1 -1
  33. package/dist/oauth2.d.cts +2 -2
  34. package/dist/oauth2.d.ts +2 -2
  35. package/dist/plugins.d.cts +9 -9
  36. package/dist/plugins.d.ts +9 -9
  37. package/dist/react.d.cts +1 -1
  38. package/dist/react.d.ts +1 -1
  39. package/dist/solid-start.d.cts +1 -1
  40. package/dist/solid-start.d.ts +1 -1
  41. package/dist/solid.d.cts +1 -1
  42. package/dist/solid.d.ts +1 -1
  43. package/dist/{state-ifN7k51A.d.cts → state-B06Cucct.d.cts} +1 -1
  44. package/dist/{state-CIrmeq4O.d.ts → state-DyQuVVEF.d.ts} +1 -1
  45. package/dist/svelte-kit.d.cts +1 -1
  46. package/dist/svelte-kit.d.ts +1 -1
  47. package/dist/svelte.d.cts +1 -1
  48. package/dist/svelte.d.ts +1 -1
  49. package/dist/types.d.cts +2 -2
  50. package/dist/types.d.ts +2 -2
  51. package/dist/vue.d.cts +1 -1
  52. package/dist/vue.d.ts +1 -1
  53. package/package.json +1 -1
  54. package/dist/{auth-CkfEl1lS.d.cts → auth-RxDdMH7n.d.cts} +84 -84
  55. package/dist/{auth-B3fUmyZo.d.ts → auth-aIfiqYkD.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<{
@@ -1210,13 +1210,13 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
1210
1210
  }>;
1211
1211
  createAccount: <T>(account: Omit<Account, "id" | "createdAt" | "updatedAt"> & Partial<Account> & Record<string, any>) => Promise<T & {
1212
1212
  id: string;
1213
- userId: string;
1214
1213
  providerId: string;
1215
1214
  accountId: string;
1216
- expiresAt?: Date | null | undefined;
1215
+ userId: string;
1217
1216
  accessToken?: string | null | undefined;
1218
1217
  refreshToken?: string | null | undefined;
1219
1218
  idToken?: string | null | undefined;
1219
+ expiresAt?: Date | null | undefined;
1220
1220
  password?: string | null | undefined;
1221
1221
  }>;
1222
1222
  listSessions: (userId: string) => Promise<{
@@ -1271,13 +1271,13 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
1271
1271
  };
1272
1272
  accounts: {
1273
1273
  id: string;
1274
- userId: string;
1275
1274
  providerId: string;
1276
1275
  accountId: string;
1277
- expiresAt?: Date | null | undefined;
1276
+ userId: string;
1278
1277
  accessToken?: string | null | undefined;
1279
1278
  refreshToken?: string | null | undefined;
1280
1279
  idToken?: string | null | undefined;
1280
+ expiresAt?: Date | null | undefined;
1281
1281
  password?: string | null | undefined;
1282
1282
  }[];
1283
1283
  } | null>;
@@ -1296,24 +1296,24 @@ declare const createInternalAdapter: (adapter: Adapter, ctx: {
1296
1296
  updatePassword: (userId: string, password: string) => Promise<any>;
1297
1297
  findAccounts: (userId: string) => Promise<{
1298
1298
  id: string;
1299
- userId: string;
1300
1299
  providerId: string;
1301
1300
  accountId: string;
1302
- expiresAt?: Date | null | undefined;
1301
+ userId: string;
1303
1302
  accessToken?: string | null | undefined;
1304
1303
  refreshToken?: string | null | undefined;
1305
1304
  idToken?: string | null | undefined;
1305
+ expiresAt?: Date | null | undefined;
1306
1306
  password?: string | null | undefined;
1307
1307
  }[]>;
1308
1308
  findAccount: (accountId: string) => Promise<{
1309
1309
  id: string;
1310
- userId: string;
1311
1310
  providerId: string;
1312
1311
  accountId: string;
1313
- expiresAt?: Date | null | undefined;
1312
+ userId: string;
1314
1313
  accessToken?: string | null | undefined;
1315
1314
  refreshToken?: string | null | undefined;
1316
1315
  idToken?: string | null | undefined;
1316
+ expiresAt?: Date | null | undefined;
1317
1317
  password?: string | null | undefined;
1318
1318
  } | null>;
1319
1319
  updateAccount: (accountId: string, data: Partial<Account>) => Promise<any>;
@@ -1541,24 +1541,24 @@ declare const signInSocial: {
1541
1541
  expiresAt: z.ZodOptional<z.ZodNumber>;
1542
1542
  }, "strip", z.ZodTypeAny, {
1543
1543
  token: string;
1544
- expiresAt?: number | undefined;
1545
1544
  accessToken?: string | undefined;
1546
1545
  refreshToken?: string | undefined;
1546
+ expiresAt?: number | undefined;
1547
1547
  nonce?: string | undefined;
1548
1548
  }, {
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
  }>>;
1555
1555
  }, "strip", z.ZodTypeAny, {
1556
1556
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1557
1557
  idToken?: {
1558
1558
  token: string;
1559
- expiresAt?: number | undefined;
1560
1559
  accessToken?: string | undefined;
1561
1560
  refreshToken?: string | undefined;
1561
+ expiresAt?: number | undefined;
1562
1562
  nonce?: string | undefined;
1563
1563
  } | undefined;
1564
1564
  callbackURL?: string | undefined;
@@ -1566,9 +1566,9 @@ declare const signInSocial: {
1566
1566
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1567
1567
  idToken?: {
1568
1568
  token: string;
1569
- expiresAt?: number | undefined;
1570
1569
  accessToken?: string | undefined;
1571
1570
  refreshToken?: string | undefined;
1571
+ expiresAt?: number | undefined;
1572
1572
  nonce?: string | undefined;
1573
1573
  } | undefined;
1574
1574
  callbackURL?: string | undefined;
@@ -1636,24 +1636,24 @@ declare const signInSocial: {
1636
1636
  expiresAt: z.ZodOptional<z.ZodNumber>;
1637
1637
  }, "strip", z.ZodTypeAny, {
1638
1638
  token: string;
1639
- expiresAt?: number | undefined;
1640
1639
  accessToken?: string | undefined;
1641
1640
  refreshToken?: string | undefined;
1641
+ expiresAt?: number | undefined;
1642
1642
  nonce?: string | undefined;
1643
1643
  }, {
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
  }>>;
1650
1650
  }, "strip", z.ZodTypeAny, {
1651
1651
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1652
1652
  idToken?: {
1653
1653
  token: string;
1654
- expiresAt?: number | undefined;
1655
1654
  accessToken?: string | undefined;
1656
1655
  refreshToken?: string | undefined;
1656
+ expiresAt?: number | undefined;
1657
1657
  nonce?: string | undefined;
1658
1658
  } | undefined;
1659
1659
  callbackURL?: string | undefined;
@@ -1661,9 +1661,9 @@ declare const signInSocial: {
1661
1661
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1662
1662
  idToken?: {
1663
1663
  token: string;
1664
- expiresAt?: number | undefined;
1665
1664
  accessToken?: string | undefined;
1666
1665
  refreshToken?: string | undefined;
1666
+ expiresAt?: number | undefined;
1667
1667
  nonce?: string | undefined;
1668
1668
  } | undefined;
1669
1669
  callbackURL?: string | undefined;
@@ -1685,13 +1685,13 @@ declare const signInEmail: {
1685
1685
  */
1686
1686
  rememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1687
1687
  }, "strip", z.ZodTypeAny, {
1688
- email: string;
1689
1688
  password: string;
1689
+ email: string;
1690
1690
  callbackURL?: string | undefined;
1691
1691
  rememberMe?: boolean | undefined;
1692
1692
  }, {
1693
- email: string;
1694
1693
  password: string;
1694
+ email: string;
1695
1695
  callbackURL?: string | undefined;
1696
1696
  rememberMe?: boolean | undefined;
1697
1697
  }>;
@@ -1730,13 +1730,13 @@ declare const signInEmail: {
1730
1730
  */
1731
1731
  rememberMe: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1732
1732
  }, "strip", z.ZodTypeAny, {
1733
- email: string;
1734
1733
  password: string;
1734
+ email: string;
1735
1735
  callbackURL?: string | undefined;
1736
1736
  rememberMe?: boolean | undefined;
1737
1737
  }, {
1738
- email: string;
1739
1738
  password: string;
1739
+ email: string;
1740
1740
  callbackURL?: string | undefined;
1741
1741
  rememberMe?: boolean | undefined;
1742
1742
  }>;
@@ -3174,24 +3174,24 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3174
3174
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
3175
3175
  }, "strip", zod.ZodTypeAny, {
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
  }, {
3182
3182
  token: string;
3183
- expiresAt?: number | undefined;
3184
3183
  accessToken?: string | undefined;
3185
3184
  refreshToken?: string | undefined;
3185
+ expiresAt?: number | undefined;
3186
3186
  nonce?: string | undefined;
3187
3187
  }>>;
3188
3188
  }, "strip", zod.ZodTypeAny, {
3189
3189
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3190
3190
  idToken?: {
3191
3191
  token: string;
3192
- expiresAt?: number | undefined;
3193
3192
  accessToken?: string | undefined;
3194
3193
  refreshToken?: string | undefined;
3194
+ expiresAt?: number | undefined;
3195
3195
  nonce?: string | undefined;
3196
3196
  } | undefined;
3197
3197
  callbackURL?: string | undefined;
@@ -3199,9 +3199,9 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3199
3199
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3200
3200
  idToken?: {
3201
3201
  token: string;
3202
- expiresAt?: number | undefined;
3203
3202
  accessToken?: string | undefined;
3204
3203
  refreshToken?: string | undefined;
3204
+ expiresAt?: number | undefined;
3205
3205
  nonce?: string | undefined;
3206
3206
  } | undefined;
3207
3207
  callbackURL?: string | undefined;
@@ -3233,24 +3233,24 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3233
3233
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
3234
3234
  }, "strip", zod.ZodTypeAny, {
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
  }, {
3241
3241
  token: string;
3242
- expiresAt?: number | undefined;
3243
3242
  accessToken?: string | undefined;
3244
3243
  refreshToken?: string | undefined;
3244
+ expiresAt?: number | undefined;
3245
3245
  nonce?: string | undefined;
3246
3246
  }>>;
3247
3247
  }, "strip", zod.ZodTypeAny, {
3248
3248
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3249
3249
  idToken?: {
3250
3250
  token: string;
3251
- expiresAt?: number | undefined;
3252
3251
  accessToken?: string | undefined;
3253
3252
  refreshToken?: string | undefined;
3253
+ expiresAt?: number | undefined;
3254
3254
  nonce?: string | undefined;
3255
3255
  } | undefined;
3256
3256
  callbackURL?: string | undefined;
@@ -3258,9 +3258,9 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3258
3258
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3259
3259
  idToken?: {
3260
3260
  token: string;
3261
- expiresAt?: number | undefined;
3262
3261
  accessToken?: string | undefined;
3263
3262
  refreshToken?: string | undefined;
3263
+ expiresAt?: number | undefined;
3264
3264
  nonce?: string | undefined;
3265
3265
  } | undefined;
3266
3266
  callbackURL?: string | undefined;
@@ -3392,13 +3392,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3392
3392
  email: zod.ZodString;
3393
3393
  password: zod.ZodString;
3394
3394
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3395
+ password: string;
3395
3396
  email: string;
3396
3397
  name: string;
3397
- password: string;
3398
3398
  }, {
3399
+ password: string;
3399
3400
  email: string;
3400
3401
  name: string;
3401
- password: string;
3402
3402
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3403
3403
  }>> extends true ? [better_call.Context<"/sign-up/email", {
3404
3404
  method: "POST";
@@ -3414,13 +3414,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3414
3414
  email: zod.ZodString;
3415
3415
  password: zod.ZodString;
3416
3416
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3417
+ password: string;
3417
3418
  email: string;
3418
3419
  name: string;
3419
- password: string;
3420
3420
  }, {
3421
+ password: string;
3421
3422
  email: string;
3422
3423
  name: string;
3423
- password: string;
3424
3424
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3425
3425
  }>] : [(better_call.Context<"/sign-up/email", {
3426
3426
  method: "POST";
@@ -3436,13 +3436,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3436
3436
  email: zod.ZodString;
3437
3437
  password: zod.ZodString;
3438
3438
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3439
+ password: string;
3439
3440
  email: string;
3440
3441
  name: string;
3441
- password: string;
3442
3442
  }, {
3443
+ password: string;
3443
3444
  email: string;
3444
3445
  name: string;
3445
- password: string;
3446
3446
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3447
3447
  }> | undefined)?]>(...ctx: C_1): Promise<C_1 extends [{
3448
3448
  asResponse: true;
@@ -3490,13 +3490,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3490
3490
  email: zod.ZodString;
3491
3491
  password: zod.ZodString;
3492
3492
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
3493
+ password: string;
3493
3494
  email: string;
3494
3495
  name: string;
3495
- password: string;
3496
3496
  }, {
3497
+ password: string;
3497
3498
  email: string;
3498
3499
  name: string;
3499
- password: string;
3500
3500
  }> & toZod<AdditionalUserFieldsInput<Option>>;
3501
3501
  };
3502
3502
  method: better_call.Method | better_call.Method[];
@@ -3511,13 +3511,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3511
3511
  callbackURL: zod.ZodOptional<zod.ZodString>;
3512
3512
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
3513
3513
  }, "strip", zod.ZodTypeAny, {
3514
- email: string;
3515
3514
  password: string;
3515
+ email: string;
3516
3516
  callbackURL?: string | undefined;
3517
3517
  rememberMe?: boolean | undefined;
3518
3518
  }, {
3519
- email: string;
3520
3519
  password: string;
3520
+ email: string;
3521
3521
  callbackURL?: string | undefined;
3522
3522
  rememberMe?: boolean | undefined;
3523
3523
  }>;
@@ -3552,13 +3552,13 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3552
3552
  callbackURL: zod.ZodOptional<zod.ZodString>;
3553
3553
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
3554
3554
  }, "strip", zod.ZodTypeAny, {
3555
- email: string;
3556
3555
  password: string;
3556
+ email: string;
3557
3557
  callbackURL?: string | undefined;
3558
3558
  rememberMe?: boolean | undefined;
3559
3559
  }, {
3560
- email: string;
3561
3560
  password: string;
3561
+ email: string;
3562
3562
  callbackURL?: string | undefined;
3563
3563
  rememberMe?: boolean | undefined;
3564
3564
  }>;
@@ -4698,24 +4698,24 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4698
4698
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
4699
4699
  }, "strip", zod.ZodTypeAny, {
4700
4700
  token: string;
4701
- expiresAt?: number | undefined;
4702
4701
  accessToken?: string | undefined;
4703
4702
  refreshToken?: string | undefined;
4703
+ expiresAt?: number | undefined;
4704
4704
  nonce?: string | undefined;
4705
4705
  }, {
4706
4706
  token: string;
4707
- expiresAt?: number | undefined;
4708
4707
  accessToken?: string | undefined;
4709
4708
  refreshToken?: string | undefined;
4709
+ expiresAt?: number | undefined;
4710
4710
  nonce?: string | undefined;
4711
4711
  }>>;
4712
4712
  }, "strip", zod.ZodTypeAny, {
4713
4713
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4714
4714
  idToken?: {
4715
4715
  token: string;
4716
- expiresAt?: number | undefined;
4717
4716
  accessToken?: string | undefined;
4718
4717
  refreshToken?: string | undefined;
4718
+ expiresAt?: number | undefined;
4719
4719
  nonce?: string | undefined;
4720
4720
  } | undefined;
4721
4721
  callbackURL?: string | undefined;
@@ -4723,9 +4723,9 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4723
4723
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4724
4724
  idToken?: {
4725
4725
  token: string;
4726
- expiresAt?: number | undefined;
4727
4726
  accessToken?: string | undefined;
4728
4727
  refreshToken?: string | undefined;
4728
+ expiresAt?: number | undefined;
4729
4729
  nonce?: string | undefined;
4730
4730
  } | undefined;
4731
4731
  callbackURL?: string | undefined;
@@ -4757,24 +4757,24 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4757
4757
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
4758
4758
  }, "strip", zod.ZodTypeAny, {
4759
4759
  token: string;
4760
- expiresAt?: number | undefined;
4761
4760
  accessToken?: string | undefined;
4762
4761
  refreshToken?: string | undefined;
4762
+ expiresAt?: number | undefined;
4763
4763
  nonce?: string | undefined;
4764
4764
  }, {
4765
4765
  token: string;
4766
- expiresAt?: number | undefined;
4767
4766
  accessToken?: string | undefined;
4768
4767
  refreshToken?: string | undefined;
4768
+ expiresAt?: number | undefined;
4769
4769
  nonce?: string | undefined;
4770
4770
  }>>;
4771
4771
  }, "strip", zod.ZodTypeAny, {
4772
4772
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4773
4773
  idToken?: {
4774
4774
  token: string;
4775
- expiresAt?: number | undefined;
4776
4775
  accessToken?: string | undefined;
4777
4776
  refreshToken?: string | undefined;
4777
+ expiresAt?: number | undefined;
4778
4778
  nonce?: string | undefined;
4779
4779
  } | undefined;
4780
4780
  callbackURL?: string | undefined;
@@ -4782,9 +4782,9 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4782
4782
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4783
4783
  idToken?: {
4784
4784
  token: string;
4785
- expiresAt?: number | undefined;
4786
4785
  accessToken?: string | undefined;
4787
4786
  refreshToken?: string | undefined;
4787
+ expiresAt?: number | undefined;
4788
4788
  nonce?: string | undefined;
4789
4789
  } | undefined;
4790
4790
  callbackURL?: string | undefined;
@@ -4916,13 +4916,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4916
4916
  email: zod.ZodString;
4917
4917
  password: zod.ZodString;
4918
4918
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4919
+ password: string;
4919
4920
  email: string;
4920
4921
  name: string;
4921
- password: string;
4922
4922
  }, {
4923
+ password: string;
4923
4924
  email: string;
4924
4925
  name: string;
4925
- password: string;
4926
4926
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4927
4927
  }>> extends true ? [better_call.Context<"/sign-up/email", {
4928
4928
  method: "POST";
@@ -4938,13 +4938,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4938
4938
  email: zod.ZodString;
4939
4939
  password: zod.ZodString;
4940
4940
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4941
+ password: string;
4941
4942
  email: string;
4942
4943
  name: string;
4943
- password: string;
4944
4944
  }, {
4945
+ password: string;
4945
4946
  email: string;
4946
4947
  name: string;
4947
- password: string;
4948
4948
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4949
4949
  }>] : [(better_call.Context<"/sign-up/email", {
4950
4950
  method: "POST";
@@ -4960,13 +4960,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4960
4960
  email: zod.ZodString;
4961
4961
  password: zod.ZodString;
4962
4962
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
4963
+ password: string;
4963
4964
  email: string;
4964
4965
  name: string;
4965
- password: string;
4966
4966
  }, {
4967
+ password: string;
4967
4968
  email: string;
4968
4969
  name: string;
4969
- password: string;
4970
4970
  }> & toZod<AdditionalUserFieldsInput<Option>>;
4971
4971
  }> | undefined)?]>(...ctx: C_1): Promise<C_1 extends [{
4972
4972
  asResponse: true;
@@ -5014,13 +5014,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
5014
5014
  email: zod.ZodString;
5015
5015
  password: zod.ZodString;
5016
5016
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
5017
+ password: string;
5017
5018
  email: string;
5018
5019
  name: string;
5019
- password: string;
5020
5020
  }, {
5021
+ password: string;
5021
5022
  email: string;
5022
5023
  name: string;
5023
- password: string;
5024
5024
  }> & toZod<AdditionalUserFieldsInput<Option>>;
5025
5025
  };
5026
5026
  method: better_call.Method | better_call.Method[];
@@ -5035,13 +5035,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
5035
5035
  callbackURL: zod.ZodOptional<zod.ZodString>;
5036
5036
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
5037
5037
  }, "strip", zod.ZodTypeAny, {
5038
- email: string;
5039
5038
  password: string;
5039
+ email: string;
5040
5040
  callbackURL?: string | undefined;
5041
5041
  rememberMe?: boolean | undefined;
5042
5042
  }, {
5043
- email: string;
5044
5043
  password: string;
5044
+ email: string;
5045
5045
  callbackURL?: string | undefined;
5046
5046
  rememberMe?: boolean | undefined;
5047
5047
  }>;
@@ -5076,13 +5076,13 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
5076
5076
  callbackURL: zod.ZodOptional<zod.ZodString>;
5077
5077
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
5078
5078
  }, "strip", zod.ZodTypeAny, {
5079
- email: string;
5080
5079
  password: string;
5080
+ email: string;
5081
5081
  callbackURL?: string | undefined;
5082
5082
  rememberMe?: boolean | undefined;
5083
5083
  }, {
5084
- email: string;
5085
5084
  password: string;
5085
+ email: string;
5086
5086
  callbackURL?: string | undefined;
5087
5087
  rememberMe?: boolean | undefined;
5088
5088
  }>;
@@ -6224,24 +6224,24 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6224
6224
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
6225
6225
  }, "strip", zod.ZodTypeAny, {
6226
6226
  token: string;
6227
- expiresAt?: number | undefined;
6228
6227
  accessToken?: string | undefined;
6229
6228
  refreshToken?: string | undefined;
6229
+ expiresAt?: number | undefined;
6230
6230
  nonce?: string | undefined;
6231
6231
  }, {
6232
6232
  token: string;
6233
- expiresAt?: number | undefined;
6234
6233
  accessToken?: string | undefined;
6235
6234
  refreshToken?: string | undefined;
6235
+ expiresAt?: number | undefined;
6236
6236
  nonce?: string | undefined;
6237
6237
  }>>;
6238
6238
  }, "strip", zod.ZodTypeAny, {
6239
6239
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6240
6240
  idToken?: {
6241
6241
  token: string;
6242
- expiresAt?: number | undefined;
6243
6242
  accessToken?: string | undefined;
6244
6243
  refreshToken?: string | undefined;
6244
+ expiresAt?: number | undefined;
6245
6245
  nonce?: string | undefined;
6246
6246
  } | undefined;
6247
6247
  callbackURL?: string | undefined;
@@ -6249,9 +6249,9 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6249
6249
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6250
6250
  idToken?: {
6251
6251
  token: string;
6252
- expiresAt?: number | undefined;
6253
6252
  accessToken?: string | undefined;
6254
6253
  refreshToken?: string | undefined;
6254
+ expiresAt?: number | undefined;
6255
6255
  nonce?: string | undefined;
6256
6256
  } | undefined;
6257
6257
  callbackURL?: string | undefined;
@@ -6283,24 +6283,24 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6283
6283
  expiresAt: zod.ZodOptional<zod.ZodNumber>;
6284
6284
  }, "strip", zod.ZodTypeAny, {
6285
6285
  token: string;
6286
- expiresAt?: number | undefined;
6287
6286
  accessToken?: string | undefined;
6288
6287
  refreshToken?: string | undefined;
6288
+ expiresAt?: number | undefined;
6289
6289
  nonce?: string | undefined;
6290
6290
  }, {
6291
6291
  token: string;
6292
- expiresAt?: number | undefined;
6293
6292
  accessToken?: string | undefined;
6294
6293
  refreshToken?: string | undefined;
6294
+ expiresAt?: number | undefined;
6295
6295
  nonce?: string | undefined;
6296
6296
  }>>;
6297
6297
  }, "strip", zod.ZodTypeAny, {
6298
6298
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6299
6299
  idToken?: {
6300
6300
  token: string;
6301
- expiresAt?: number | undefined;
6302
6301
  accessToken?: string | undefined;
6303
6302
  refreshToken?: string | undefined;
6303
+ expiresAt?: number | undefined;
6304
6304
  nonce?: string | undefined;
6305
6305
  } | undefined;
6306
6306
  callbackURL?: string | undefined;
@@ -6308,9 +6308,9 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6308
6308
  provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6309
6309
  idToken?: {
6310
6310
  token: string;
6311
- expiresAt?: number | undefined;
6312
6311
  accessToken?: string | undefined;
6313
6312
  refreshToken?: string | undefined;
6313
+ expiresAt?: number | undefined;
6314
6314
  nonce?: string | undefined;
6315
6315
  } | undefined;
6316
6316
  callbackURL?: string | undefined;
@@ -6442,13 +6442,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6442
6442
  email: zod.ZodString;
6443
6443
  password: zod.ZodString;
6444
6444
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
6445
+ password: string;
6445
6446
  email: string;
6446
6447
  name: string;
6447
- password: string;
6448
6448
  }, {
6449
+ password: string;
6449
6450
  email: string;
6450
6451
  name: string;
6451
- password: string;
6452
6452
  }> & toZod<AdditionalUserFieldsInput<O>>;
6453
6453
  }>> extends true ? [better_call.Context<"/sign-up/email", {
6454
6454
  method: "POST";
@@ -6464,13 +6464,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6464
6464
  email: zod.ZodString;
6465
6465
  password: zod.ZodString;
6466
6466
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
6467
+ password: string;
6467
6468
  email: string;
6468
6469
  name: string;
6469
- password: string;
6470
6470
  }, {
6471
+ password: string;
6471
6472
  email: string;
6472
6473
  name: string;
6473
- password: string;
6474
6474
  }> & toZod<AdditionalUserFieldsInput<O>>;
6475
6475
  }>] : [(better_call.Context<"/sign-up/email", {
6476
6476
  method: "POST";
@@ -6486,13 +6486,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6486
6486
  email: zod.ZodString;
6487
6487
  password: zod.ZodString;
6488
6488
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
6489
+ password: string;
6489
6490
  email: string;
6490
6491
  name: string;
6491
- password: string;
6492
6492
  }, {
6493
+ password: string;
6493
6494
  email: string;
6494
6495
  name: string;
6495
- password: string;
6496
6496
  }> & toZod<AdditionalUserFieldsInput<O>>;
6497
6497
  }> | undefined)?]>(...ctx: C): Promise<C extends [{
6498
6498
  asResponse: true;
@@ -6540,13 +6540,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6540
6540
  email: zod.ZodString;
6541
6541
  password: zod.ZodString;
6542
6542
  }, zod.UnknownKeysParam, zod.ZodTypeAny, {
6543
+ password: string;
6543
6544
  email: string;
6544
6545
  name: string;
6545
- password: string;
6546
6546
  }, {
6547
+ password: string;
6547
6548
  email: string;
6548
6549
  name: string;
6549
- password: string;
6550
6550
  }> & toZod<AdditionalUserFieldsInput<O>>;
6551
6551
  };
6552
6552
  method: better_call.Method | better_call.Method[];
@@ -6561,13 +6561,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6561
6561
  callbackURL: zod.ZodOptional<zod.ZodString>;
6562
6562
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
6563
6563
  }, "strip", zod.ZodTypeAny, {
6564
- email: string;
6565
6564
  password: string;
6565
+ email: string;
6566
6566
  callbackURL?: string | undefined;
6567
6567
  rememberMe?: boolean | undefined;
6568
6568
  }, {
6569
- email: string;
6570
6569
  password: string;
6570
+ email: string;
6571
6571
  callbackURL?: string | undefined;
6572
6572
  rememberMe?: boolean | undefined;
6573
6573
  }>;
@@ -6602,13 +6602,13 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6602
6602
  callbackURL: zod.ZodOptional<zod.ZodString>;
6603
6603
  rememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
6604
6604
  }, "strip", zod.ZodTypeAny, {
6605
- email: string;
6606
6605
  password: string;
6606
+ email: string;
6607
6607
  callbackURL?: string | undefined;
6608
6608
  rememberMe?: boolean | undefined;
6609
6609
  }, {
6610
- email: string;
6611
6610
  password: string;
6611
+ email: string;
6612
6612
  callbackURL?: string | undefined;
6613
6613
  rememberMe?: boolean | undefined;
6614
6614
  }>;