better-auth 0.7.5-beta.1 → 0.7.5-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/adapters/drizzle.d.cts +1 -1
  2. package/dist/adapters/drizzle.d.ts +1 -1
  3. package/dist/adapters/kysely.cjs +1 -1
  4. package/dist/adapters/kysely.d.cts +2 -5
  5. package/dist/adapters/kysely.d.ts +2 -5
  6. package/dist/adapters/kysely.js +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.cjs +1 -1
  12. package/dist/api.d.cts +1 -1
  13. package/dist/api.d.ts +1 -1
  14. package/dist/api.js +1 -1
  15. package/dist/{auth-CKGSUcT1.d.cts → auth-BbTQJk3S.d.cts} +52 -80
  16. package/dist/{auth-bccktrag.d.ts → auth-D1qwPVVb.d.ts} +52 -80
  17. package/dist/client/plugins.cjs +1 -1
  18. package/dist/client/plugins.d.cts +21 -5
  19. package/dist/client/plugins.d.ts +21 -5
  20. package/dist/client/plugins.js +1 -1
  21. package/dist/client.d.cts +1 -1
  22. package/dist/client.d.ts +1 -1
  23. package/dist/cookies.cjs +1 -1
  24. package/dist/cookies.d.cts +1 -1
  25. package/dist/cookies.d.ts +1 -1
  26. package/dist/cookies.js +1 -1
  27. package/dist/db.cjs +3 -3
  28. package/dist/db.d.cts +2 -2
  29. package/dist/db.d.ts +2 -2
  30. package/dist/db.js +3 -3
  31. package/dist/{index-BAi_RMP7.d.ts → index-BK_H2TDU.d.ts} +159 -3
  32. package/dist/{index-BBMrGoKu.d.cts → index-D9zvOlr9.d.cts} +159 -3
  33. package/dist/index.cjs +5 -5
  34. package/dist/index.d.cts +2 -2
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.js +5 -5
  37. package/dist/node.d.cts +1 -1
  38. package/dist/node.d.ts +1 -1
  39. package/dist/oauth2.d.cts +2 -2
  40. package/dist/oauth2.d.ts +2 -2
  41. package/dist/plugins.cjs +6 -6
  42. package/dist/plugins.d.cts +3 -3
  43. package/dist/plugins.d.ts +3 -3
  44. package/dist/plugins.js +6 -6
  45. package/dist/react.d.cts +1 -1
  46. package/dist/react.d.ts +1 -1
  47. package/dist/solid-start.d.cts +1 -1
  48. package/dist/solid-start.d.ts +1 -1
  49. package/dist/solid.d.cts +1 -1
  50. package/dist/solid.d.ts +1 -1
  51. package/dist/{state-Jv2iwSk-.d.ts → state-C4umnHMn.d.ts} +1 -1
  52. package/dist/{state-BSbKuM1Z.d.cts → state-DIa05rsD.d.cts} +1 -1
  53. package/dist/svelte-kit.d.cts +1 -1
  54. package/dist/svelte-kit.d.ts +1 -1
  55. package/dist/svelte.d.cts +1 -1
  56. package/dist/svelte.d.ts +1 -1
  57. package/dist/types.d.cts +2 -2
  58. package/dist/types.d.ts +2 -2
  59. package/dist/vue.d.cts +1 -1
  60. package/dist/vue.d.ts +1 -1
  61. package/package.json +1 -1
@@ -1296,12 +1296,12 @@ declare const signInSocial: {
1296
1296
  /**
1297
1297
  * OAuth2 provider to use`
1298
1298
  */
1299
- provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
1299
+ provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
1300
1300
  }, "strip", z.ZodTypeAny, {
1301
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1301
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1302
1302
  callbackURL?: string | undefined;
1303
1303
  }, {
1304
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1304
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1305
1305
  callbackURL?: string | undefined;
1306
1306
  }>;
1307
1307
  }>]>(...ctx: C): Promise<C extends [{
@@ -1332,12 +1332,12 @@ declare const signInSocial: {
1332
1332
  /**
1333
1333
  * OAuth2 provider to use`
1334
1334
  */
1335
- provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
1335
+ provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
1336
1336
  }, "strip", z.ZodTypeAny, {
1337
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1337
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1338
1338
  callbackURL?: string | undefined;
1339
1339
  }, {
1340
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1340
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
1341
1341
  callbackURL?: string | undefined;
1342
1342
  }>;
1343
1343
  };
@@ -2585,14 +2585,7 @@ declare const listUserAccounts: {
2585
2585
  asResponse: true;
2586
2586
  }] ? Response : {
2587
2587
  id: string;
2588
- providerId: string;
2589
- accountId: string;
2590
- userId: string;
2591
- accessToken?: string | null | undefined;
2592
- refreshToken?: string | null | undefined;
2593
- idToken?: string | null | undefined;
2594
- expiresAt?: Date | null | undefined;
2595
- password?: string | null | undefined;
2588
+ provider: string;
2596
2589
  }[]>;
2597
2590
  path: "/list-accounts";
2598
2591
  options: {
@@ -2644,12 +2637,12 @@ declare const linkSocialAccount: {
2644
2637
  /**
2645
2638
  * OAuth2 provider to use`
2646
2639
  */
2647
- provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
2640
+ provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
2648
2641
  }, "strip", z.ZodTypeAny, {
2649
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2642
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2650
2643
  callbackURL?: string | undefined;
2651
2644
  }, {
2652
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2645
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2653
2646
  callbackURL?: string | undefined;
2654
2647
  }>;
2655
2648
  use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -2701,12 +2694,12 @@ declare const linkSocialAccount: {
2701
2694
  /**
2702
2695
  * OAuth2 provider to use`
2703
2696
  */
2704
- provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
2697
+ provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
2705
2698
  }, "strip", z.ZodTypeAny, {
2706
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2699
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2707
2700
  callbackURL?: string | undefined;
2708
2701
  }, {
2709
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2702
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2710
2703
  callbackURL?: string | undefined;
2711
2704
  }>;
2712
2705
  use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -2793,12 +2786,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2793
2786
  }>>;
2794
2787
  body: zod.ZodObject<{
2795
2788
  callbackURL: zod.ZodOptional<zod.ZodString>;
2796
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
2789
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
2797
2790
  }, "strip", zod.ZodTypeAny, {
2798
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2791
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2799
2792
  callbackURL?: string | undefined;
2800
2793
  }, {
2801
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2794
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2802
2795
  callbackURL?: string | undefined;
2803
2796
  }>;
2804
2797
  }>]>(...ctx: C_1): Promise<C_1 extends [{
@@ -2819,12 +2812,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2819
2812
  }>>;
2820
2813
  body: zod.ZodObject<{
2821
2814
  callbackURL: zod.ZodOptional<zod.ZodString>;
2822
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
2815
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
2823
2816
  }, "strip", zod.ZodTypeAny, {
2824
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2817
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2825
2818
  callbackURL?: string | undefined;
2826
2819
  }, {
2827
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2820
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
2828
2821
  callbackURL?: string | undefined;
2829
2822
  }>;
2830
2823
  };
@@ -3988,12 +3981,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
3988
3981
  }>>;
3989
3982
  body: zod.ZodObject<{
3990
3983
  callbackURL: zod.ZodOptional<zod.ZodString>;
3991
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
3984
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
3992
3985
  }, "strip", zod.ZodTypeAny, {
3993
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3986
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3994
3987
  callbackURL?: string | undefined;
3995
3988
  }, {
3996
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3989
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
3997
3990
  callbackURL?: string | undefined;
3998
3991
  }>;
3999
3992
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -4035,12 +4028,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
4035
4028
  }>>;
4036
4029
  body: zod.ZodObject<{
4037
4030
  callbackURL: zod.ZodOptional<zod.ZodString>;
4038
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
4031
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
4039
4032
  }, "strip", zod.ZodTypeAny, {
4040
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4033
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4041
4034
  callbackURL?: string | undefined;
4042
4035
  }, {
4043
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4036
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4044
4037
  callbackURL?: string | undefined;
4045
4038
  }>;
4046
4039
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -4094,14 +4087,7 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
4094
4087
  asResponse: true;
4095
4088
  }] ? Response : {
4096
4089
  id: string;
4097
- providerId: string;
4098
- accountId: string;
4099
- userId: string;
4100
- accessToken?: string | null | undefined;
4101
- refreshToken?: string | null | undefined;
4102
- idToken?: string | null | undefined;
4103
- expiresAt?: Date | null | undefined;
4104
- password?: string | null | undefined;
4090
+ provider: string;
4105
4091
  }[]>;
4106
4092
  path: "/list-accounts";
4107
4093
  options: {
@@ -4193,12 +4179,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4193
4179
  }>>;
4194
4180
  body: zod.ZodObject<{
4195
4181
  callbackURL: zod.ZodOptional<zod.ZodString>;
4196
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
4182
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
4197
4183
  }, "strip", zod.ZodTypeAny, {
4198
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4184
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4199
4185
  callbackURL?: string | undefined;
4200
4186
  }, {
4201
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4187
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4202
4188
  callbackURL?: string | undefined;
4203
4189
  }>;
4204
4190
  }>]>(...ctx: C_1): Promise<C_1 extends [{
@@ -4219,12 +4205,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4219
4205
  }>>;
4220
4206
  body: zod.ZodObject<{
4221
4207
  callbackURL: zod.ZodOptional<zod.ZodString>;
4222
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
4208
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
4223
4209
  }, "strip", zod.ZodTypeAny, {
4224
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4210
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4225
4211
  callbackURL?: string | undefined;
4226
4212
  }, {
4227
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4213
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
4228
4214
  callbackURL?: string | undefined;
4229
4215
  }>;
4230
4216
  };
@@ -5388,12 +5374,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
5388
5374
  }>>;
5389
5375
  body: zod.ZodObject<{
5390
5376
  callbackURL: zod.ZodOptional<zod.ZodString>;
5391
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
5377
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
5392
5378
  }, "strip", zod.ZodTypeAny, {
5393
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5379
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5394
5380
  callbackURL?: string | undefined;
5395
5381
  }, {
5396
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5382
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5397
5383
  callbackURL?: string | undefined;
5398
5384
  }>;
5399
5385
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -5435,12 +5421,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
5435
5421
  }>>;
5436
5422
  body: zod.ZodObject<{
5437
5423
  callbackURL: zod.ZodOptional<zod.ZodString>;
5438
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
5424
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
5439
5425
  }, "strip", zod.ZodTypeAny, {
5440
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5426
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5441
5427
  callbackURL?: string | undefined;
5442
5428
  }, {
5443
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5429
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5444
5430
  callbackURL?: string | undefined;
5445
5431
  }>;
5446
5432
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -5494,14 +5480,7 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
5494
5480
  asResponse: true;
5495
5481
  }] ? Response : {
5496
5482
  id: string;
5497
- providerId: string;
5498
- accountId: string;
5499
- userId: string;
5500
- accessToken?: string | null | undefined;
5501
- refreshToken?: string | null | undefined;
5502
- idToken?: string | null | undefined;
5503
- expiresAt?: Date | null | undefined;
5504
- password?: string | null | undefined;
5483
+ provider: string;
5505
5484
  }[]>;
5506
5485
  path: "/list-accounts";
5507
5486
  options: {
@@ -5595,12 +5574,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5595
5574
  }>>;
5596
5575
  body: zod.ZodObject<{
5597
5576
  callbackURL: zod.ZodOptional<zod.ZodString>;
5598
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
5577
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
5599
5578
  }, "strip", zod.ZodTypeAny, {
5600
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5579
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5601
5580
  callbackURL?: string | undefined;
5602
5581
  }, {
5603
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5582
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5604
5583
  callbackURL?: string | undefined;
5605
5584
  }>;
5606
5585
  }>]>(...ctx: C): Promise<C extends [{
@@ -5621,12 +5600,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5621
5600
  }>>;
5622
5601
  body: zod.ZodObject<{
5623
5602
  callbackURL: zod.ZodOptional<zod.ZodString>;
5624
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
5603
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
5625
5604
  }, "strip", zod.ZodTypeAny, {
5626
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5605
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5627
5606
  callbackURL?: string | undefined;
5628
5607
  }, {
5629
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5608
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
5630
5609
  callbackURL?: string | undefined;
5631
5610
  }>;
5632
5611
  };
@@ -6790,12 +6769,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6790
6769
  }>>;
6791
6770
  body: zod.ZodObject<{
6792
6771
  callbackURL: zod.ZodOptional<zod.ZodString>;
6793
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
6772
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
6794
6773
  }, "strip", zod.ZodTypeAny, {
6795
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6774
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6796
6775
  callbackURL?: string | undefined;
6797
6776
  }, {
6798
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6777
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6799
6778
  callbackURL?: string | undefined;
6800
6779
  }>;
6801
6780
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -6837,12 +6816,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6837
6816
  }>>;
6838
6817
  body: zod.ZodObject<{
6839
6818
  callbackURL: zod.ZodOptional<zod.ZodString>;
6840
- provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
6819
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab")[]]>;
6841
6820
  }, "strip", zod.ZodTypeAny, {
6842
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6821
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6843
6822
  callbackURL?: string | undefined;
6844
6823
  }, {
6845
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6824
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab";
6846
6825
  callbackURL?: string | undefined;
6847
6826
  }>;
6848
6827
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -6896,14 +6875,7 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6896
6875
  asResponse: true;
6897
6876
  }] ? Response : {
6898
6877
  id: string;
6899
- providerId: string;
6900
- accountId: string;
6901
- userId: string;
6902
- accessToken?: string | null | undefined;
6903
- refreshToken?: string | null | undefined;
6904
- idToken?: string | null | undefined;
6905
- expiresAt?: Date | null | undefined;
6906
- password?: string | null | undefined;
6878
+ provider: string;
6907
6879
  }[]>;
6908
6880
  path: "/list-accounts";
6909
6881
  options: {