better-auth 0.6.2 → 0.6.3-beta.2

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 (67) 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/mongodb.d.cts +1 -1
  6. package/dist/adapters/mongodb.d.ts +1 -1
  7. package/dist/adapters/prisma.d.cts +1 -1
  8. package/dist/adapters/prisma.d.ts +1 -1
  9. package/dist/api.d.cts +1 -1
  10. package/dist/api.d.ts +1 -1
  11. package/dist/{auth-DQUo7qHe.d.cts → auth-BybyXdpX.d.cts} +49 -49
  12. package/dist/{auth-yqISG7s5.d.ts → auth-CveES-lN.d.ts} +49 -49
  13. package/dist/chunk-22HZLSWH.js +1 -0
  14. package/dist/{chunk-IRB3E7WP.cjs → chunk-2SFSY55O.cjs} +1 -1
  15. package/dist/chunk-CPVMLNIN.cjs +1 -0
  16. package/dist/chunk-JMHM2AZI.js +1 -0
  17. package/dist/chunk-LEJNTESY.cjs +1 -0
  18. package/dist/{chunk-DIOE2YXR.js → chunk-X6EOC5MU.js} +1 -1
  19. package/dist/client/plugins.cjs +1 -1
  20. package/dist/client/plugins.d.cts +15 -10
  21. package/dist/client/plugins.d.ts +15 -10
  22. package/dist/client/plugins.js +1 -1
  23. package/dist/client.cjs +1 -1
  24. package/dist/client.d.cts +20 -30
  25. package/dist/client.d.ts +20 -30
  26. package/dist/client.js +1 -1
  27. package/dist/cookies.d.cts +1 -1
  28. package/dist/cookies.d.ts +1 -1
  29. package/dist/db.d.cts +2 -2
  30. package/dist/db.d.ts +2 -2
  31. package/dist/{index-xv-Hpn95.d.ts → index-BAhEsQWo.d.ts} +150 -3
  32. package/dist/{index-BmkshyDm.d.cts → index-CeEzGKXc.d.cts} +150 -3
  33. package/dist/index.d.cts +1 -1
  34. package/dist/index.d.ts +1 -1
  35. package/dist/node.d.cts +1 -1
  36. package/dist/node.d.ts +1 -1
  37. package/dist/plugins.cjs +2 -2
  38. package/dist/plugins.d.cts +6 -153
  39. package/dist/plugins.d.ts +6 -153
  40. package/dist/plugins.js +2 -2
  41. package/dist/react.cjs +1 -1
  42. package/dist/react.d.cts +19 -59
  43. package/dist/react.d.ts +19 -59
  44. package/dist/react.js +1 -1
  45. package/dist/solid-start.d.cts +1 -1
  46. package/dist/solid-start.d.ts +1 -1
  47. package/dist/solid.cjs +1 -1
  48. package/dist/solid.d.cts +11 -38
  49. package/dist/solid.d.ts +11 -38
  50. package/dist/solid.js +1 -1
  51. package/dist/svelte-kit.d.cts +1 -1
  52. package/dist/svelte-kit.d.ts +1 -1
  53. package/dist/svelte.cjs +1 -1
  54. package/dist/svelte.d.cts +23 -44
  55. package/dist/svelte.d.ts +23 -44
  56. package/dist/svelte.js +1 -1
  57. package/dist/types.d.cts +12 -7
  58. package/dist/types.d.ts +12 -7
  59. package/dist/vue.cjs +1 -1
  60. package/dist/vue.d.cts +26 -84
  61. package/dist/vue.d.ts +26 -84
  62. package/dist/vue.js +1 -1
  63. package/package.json +1 -1
  64. package/dist/chunk-3FCLWVER.js +0 -1
  65. package/dist/chunk-44WAGMKD.cjs +0 -1
  66. package/dist/chunk-L4WRQPA4.js +0 -1
  67. package/dist/chunk-SYFR4CCI.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { A as Adapter } from '../auth-DQUo7qHe.cjs';
1
+ import { A as Adapter } from '../auth-BybyXdpX.cjs';
2
2
  import 'zod';
3
3
  import 'kysely';
4
4
  import '../types-DGbY_2Am.cjs';
@@ -1,4 +1,4 @@
1
- import { A as Adapter } from '../auth-yqISG7s5.js';
1
+ import { A as Adapter } from '../auth-CveES-lN.js';
2
2
  import 'zod';
3
3
  import 'kysely';
4
4
  import '../types-BYWAbFsn.js';
@@ -1,5 +1,5 @@
1
1
  import { Kysely } from 'kysely';
2
- import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-DQUo7qHe.cjs';
2
+ import { e as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-BybyXdpX.cjs';
3
3
  import 'zod';
4
4
  import '../types-DGbY_2Am.cjs';
5
5
  import '../helper-DPDj8Nix.cjs';
@@ -1,5 +1,5 @@
1
1
  import { Kysely } from 'kysely';
2
- import { B as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-yqISG7s5.js';
2
+ import { e as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-CveES-lN.js';
3
3
  import 'zod';
4
4
  import '../types-BYWAbFsn.js';
5
5
  import '../helper-DPDj8Nix.js';
@@ -1,5 +1,5 @@
1
1
  import { Db } from 'mongodb';
2
- import { W as Where } from '../auth-DQUo7qHe.cjs';
2
+ import { W as Where } from '../auth-BybyXdpX.cjs';
3
3
  import 'zod';
4
4
  import 'kysely';
5
5
  import '../types-DGbY_2Am.cjs';
@@ -1,5 +1,5 @@
1
1
  import { Db } from 'mongodb';
2
- import { W as Where } from '../auth-yqISG7s5.js';
2
+ import { W as Where } from '../auth-CveES-lN.js';
3
3
  import 'zod';
4
4
  import 'kysely';
5
5
  import '../types-BYWAbFsn.js';
@@ -1,4 +1,4 @@
1
- import { A as Adapter } from '../auth-DQUo7qHe.cjs';
1
+ import { A as Adapter } from '../auth-BybyXdpX.cjs';
2
2
  import 'zod';
3
3
  import 'kysely';
4
4
  import '../types-DGbY_2Am.cjs';
@@ -1,4 +1,4 @@
1
- import { A as Adapter } from '../auth-yqISG7s5.js';
1
+ import { A as Adapter } from '../auth-CveES-lN.js';
2
2
  import 'zod';
3
3
  import 'kysely';
4
4
  import '../types-BYWAbFsn.js';
package/dist/api.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { e as AuthEndpoint, f as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, d as createAuthEndpoint, c as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, o as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInOAuth, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-DQUo7qHe.cjs';
1
+ export { b as AuthEndpoint, d as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, a as createAuthEndpoint, c as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, o as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInOAuth, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-BybyXdpX.cjs';
2
2
  import './helper-DPDj8Nix.cjs';
3
3
  export { APIError } from 'better-call';
4
4
  import 'zod';
package/dist/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { e as AuthEndpoint, f as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, d as createAuthEndpoint, c as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, o as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInOAuth, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-yqISG7s5.js';
1
+ export { b as AuthEndpoint, d as AuthMiddleware, a1 as callbackOAuth, aj as changeEmail, ag as changePassword, a as createAuthEndpoint, c as createAuthMiddleware, ac as createEmailVerificationToken, ai as deleteUser, ak as error, a9 as forgetPassword, aa as forgetPasswordCallback, Z as getEndpoints, a2 as getSession, a3 as getSessionFromCtx, ao as linkSocialAccount, a5 as listSessions, an as listUserAccounts, al as ok, o as optionsMiddleware, ap as originCheckMiddleware, ab as resetPassword, a6 as revokeSession, a7 as revokeSessions, _ as router, ad as sendVerificationEmail, a4 as sessionMiddleware, ah as setPassword, a0 as signInEmail, $ as signInOAuth, a8 as signOut, am as signUpEmail, af as updateUser, ae as verifyEmail } from './auth-CveES-lN.js';
2
2
  import './helper-DPDj8Nix.js';
3
3
  export { APIError } from 'better-call';
4
4
  import 'zod';
@@ -1294,12 +1294,12 @@ declare const signInOAuth: {
1294
1294
  /**
1295
1295
  * OAuth2 provider to use`
1296
1296
  */
1297
- provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
1297
+ provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
1298
1298
  }, "strip", z.ZodTypeAny, {
1299
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1299
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1300
1300
  callbackURL?: string | undefined;
1301
1301
  }, {
1302
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1302
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1303
1303
  callbackURL?: string | undefined;
1304
1304
  }>;
1305
1305
  }>]>(...ctx: C): Promise<C extends [{
@@ -1336,12 +1336,12 @@ declare const signInOAuth: {
1336
1336
  /**
1337
1337
  * OAuth2 provider to use`
1338
1338
  */
1339
- provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
1339
+ provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
1340
1340
  }, "strip", z.ZodTypeAny, {
1341
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1341
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1342
1342
  callbackURL?: string | undefined;
1343
1343
  }, {
1344
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1344
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1345
1345
  callbackURL?: string | undefined;
1346
1346
  }>;
1347
1347
  };
@@ -2652,12 +2652,12 @@ declare const linkSocialAccount: {
2652
2652
  /**
2653
2653
  * OAuth2 provider to use`
2654
2654
  */
2655
- provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2655
+ provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2656
2656
  }, "strip", z.ZodTypeAny, {
2657
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2657
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2658
2658
  callbackURL?: string | undefined;
2659
2659
  }, {
2660
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2660
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2661
2661
  callbackURL?: string | undefined;
2662
2662
  }>;
2663
2663
  use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -2714,12 +2714,12 @@ declare const linkSocialAccount: {
2714
2714
  /**
2715
2715
  * OAuth2 provider to use`
2716
2716
  */
2717
- provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2717
+ provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2718
2718
  }, "strip", z.ZodTypeAny, {
2719
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2719
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2720
2720
  callbackURL?: string | undefined;
2721
2721
  }, {
2722
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2722
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2723
2723
  callbackURL?: string | undefined;
2724
2724
  }>;
2725
2725
  use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -2807,12 +2807,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2807
2807
  }>>;
2808
2808
  body: zod.ZodObject<{
2809
2809
  callbackURL: zod.ZodOptional<zod.ZodString>;
2810
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2810
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2811
2811
  }, "strip", zod.ZodTypeAny, {
2812
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2812
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2813
2813
  callbackURL?: string | undefined;
2814
2814
  }, {
2815
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2815
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2816
2816
  callbackURL?: string | undefined;
2817
2817
  }>;
2818
2818
  }>]>(...ctx: C_1): Promise<C_1 extends [{
@@ -2839,12 +2839,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
2839
2839
  }>>;
2840
2840
  body: zod.ZodObject<{
2841
2841
  callbackURL: zod.ZodOptional<zod.ZodString>;
2842
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2842
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2843
2843
  }, "strip", zod.ZodTypeAny, {
2844
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2844
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2845
2845
  callbackURL?: string | undefined;
2846
2846
  }, {
2847
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2847
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2848
2848
  callbackURL?: string | undefined;
2849
2849
  }>;
2850
2850
  };
@@ -4020,12 +4020,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
4020
4020
  }>>;
4021
4021
  body: zod.ZodObject<{
4022
4022
  callbackURL: zod.ZodOptional<zod.ZodString>;
4023
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4023
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4024
4024
  }, "strip", zod.ZodTypeAny, {
4025
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4025
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4026
4026
  callbackURL?: string | undefined;
4027
4027
  }, {
4028
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4028
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4029
4029
  callbackURL?: string | undefined;
4030
4030
  }>;
4031
4031
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -4072,12 +4072,12 @@ declare function getEndpoints<C extends AuthContext, Option extends BetterAuthOp
4072
4072
  }>>;
4073
4073
  body: zod.ZodObject<{
4074
4074
  callbackURL: zod.ZodOptional<zod.ZodString>;
4075
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4075
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4076
4076
  }, "strip", zod.ZodTypeAny, {
4077
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4077
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4078
4078
  callbackURL?: string | undefined;
4079
4079
  }, {
4080
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4080
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4081
4081
  callbackURL?: string | undefined;
4082
4082
  }>;
4083
4083
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -4231,12 +4231,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4231
4231
  }>>;
4232
4232
  body: zod.ZodObject<{
4233
4233
  callbackURL: zod.ZodOptional<zod.ZodString>;
4234
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4234
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4235
4235
  }, "strip", zod.ZodTypeAny, {
4236
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4236
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4237
4237
  callbackURL?: string | undefined;
4238
4238
  }, {
4239
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4239
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4240
4240
  callbackURL?: string | undefined;
4241
4241
  }>;
4242
4242
  }>]>(...ctx: C_1): Promise<C_1 extends [{
@@ -4263,12 +4263,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
4263
4263
  }>>;
4264
4264
  body: zod.ZodObject<{
4265
4265
  callbackURL: zod.ZodOptional<zod.ZodString>;
4266
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4266
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4267
4267
  }, "strip", zod.ZodTypeAny, {
4268
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4268
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4269
4269
  callbackURL?: string | undefined;
4270
4270
  }, {
4271
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4271
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4272
4272
  callbackURL?: string | undefined;
4273
4273
  }>;
4274
4274
  };
@@ -5444,12 +5444,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
5444
5444
  }>>;
5445
5445
  body: zod.ZodObject<{
5446
5446
  callbackURL: zod.ZodOptional<zod.ZodString>;
5447
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5447
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5448
5448
  }, "strip", zod.ZodTypeAny, {
5449
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5449
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5450
5450
  callbackURL?: string | undefined;
5451
5451
  }, {
5452
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5452
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5453
5453
  callbackURL?: string | undefined;
5454
5454
  }>;
5455
5455
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -5496,12 +5496,12 @@ declare const router: <C extends AuthContext, Option extends BetterAuthOptions>(
5496
5496
  }>>;
5497
5497
  body: zod.ZodObject<{
5498
5498
  callbackURL: zod.ZodOptional<zod.ZodString>;
5499
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5499
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5500
5500
  }, "strip", zod.ZodTypeAny, {
5501
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5501
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5502
5502
  callbackURL?: string | undefined;
5503
5503
  }, {
5504
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5504
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5505
5505
  callbackURL?: string | undefined;
5506
5506
  }>;
5507
5507
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -5657,12 +5657,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5657
5657
  }>>;
5658
5658
  body: zod.ZodObject<{
5659
5659
  callbackURL: zod.ZodOptional<zod.ZodString>;
5660
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5660
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5661
5661
  }, "strip", zod.ZodTypeAny, {
5662
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5662
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5663
5663
  callbackURL?: string | undefined;
5664
5664
  }, {
5665
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5665
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5666
5666
  callbackURL?: string | undefined;
5667
5667
  }>;
5668
5668
  }>]>(...ctx: C): Promise<C extends [{
@@ -5689,12 +5689,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
5689
5689
  }>>;
5690
5690
  body: zod.ZodObject<{
5691
5691
  callbackURL: zod.ZodOptional<zod.ZodString>;
5692
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5692
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5693
5693
  }, "strip", zod.ZodTypeAny, {
5694
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5694
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5695
5695
  callbackURL?: string | undefined;
5696
5696
  }, {
5697
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5697
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5698
5698
  callbackURL?: string | undefined;
5699
5699
  }>;
5700
5700
  };
@@ -6870,12 +6870,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6870
6870
  }>>;
6871
6871
  body: zod.ZodObject<{
6872
6872
  callbackURL: zod.ZodOptional<zod.ZodString>;
6873
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
6873
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
6874
6874
  }, "strip", zod.ZodTypeAny, {
6875
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6875
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6876
6876
  callbackURL?: string | undefined;
6877
6877
  }, {
6878
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6878
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6879
6879
  callbackURL?: string | undefined;
6880
6880
  }>;
6881
6881
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -6922,12 +6922,12 @@ declare const betterAuth: <O extends BetterAuthOptions>(options: O) => {
6922
6922
  }>>;
6923
6923
  body: zod.ZodObject<{
6924
6924
  callbackURL: zod.ZodOptional<zod.ZodString>;
6925
- provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
6925
+ provider: zod.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
6926
6926
  }, "strip", zod.ZodTypeAny, {
6927
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6927
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6928
6928
  callbackURL?: string | undefined;
6929
6929
  }, {
6930
- provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6930
+ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6931
6931
  callbackURL?: string | undefined;
6932
6932
  }>;
6933
6933
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -7034,4 +7034,4 @@ type Auth = {
7034
7034
  options: BetterAuthOptions;
7035
7035
  };
7036
7036
 
7037
- export { signInOAuth as $, type Adapter as A, type BetterAuthOptions as B, createInternalAdapter as C, type InternalAdapter as D, type EligibleCookies as E, type FieldAttribute as F, type GenericEndpointContext as G, type HookEndpointContext as H, type InferUser as I, type FieldAttributeConfig as J, type KyselyDatabaseType as K, createFieldAttribute as L, type InferValueType as M, type InferFieldsOutput as N, type InferFieldsInput as O, type PluginSchema as P, type InferFieldsInputClient as Q, type RateLimit as R, type SecondaryStorage as S, type PluginFieldAttribute as T, type InferFieldsFromPlugins as U, type InferFieldsFromOptions as V, type Where as W, type BetterAuthDbSchema as X, getAuthTables as Y, getEndpoints as Z, router as _, type Auth as a, signInEmail as a0, callbackOAuth as a1, getSession as a2, getSessionFromCtx as a3, sessionMiddleware as a4, listSessions as a5, revokeSession as a6, revokeSessions as a7, signOut as a8, forgetPassword as a9, forgetPasswordCallback as aa, resetPassword as ab, createEmailVerificationToken as ac, sendVerificationEmail as ad, verifyEmail as ae, updateUser as af, changePassword as ag, setPassword as ah, deleteUser as ai, changeEmail as aj, error as ak, ok as al, signUpEmail as am, listUserAccounts as an, linkSocialAccount as ao, originCheckMiddleware as ap, type BetterAuthPlugin as b, createAuthMiddleware as c, createAuthEndpoint as d, type AuthEndpoint as e, type AuthMiddleware as f, betterAuth as g, type AdditionalUserFieldsInput as h, type AdditionalUserFieldsOutput as i, type AdditionalSessionFieldsInput as j, type AdditionalSessionFieldsOutput as k, type InferSession as l, type InferPluginTypes as m, init as n, optionsMiddleware as o, type AuthContext as p, getCookies as q, createCookieGetter as r, type BetterAuthCookies as s, setSessionCookie as t, deleteSessionCookie as u, parseSetCookieHeader as v, parseCookies as w, createLogger as x, logger as y, type FieldType as z };
7037
+ export { signInOAuth as $, type Adapter as A, type BetterAuthPlugin as B, createInternalAdapter as C, type InternalAdapter as D, type EligibleCookies as E, type FieldAttribute as F, type GenericEndpointContext as G, type HookEndpointContext as H, type InferUser as I, type FieldAttributeConfig as J, type KyselyDatabaseType as K, createFieldAttribute as L, type InferValueType as M, type InferFieldsOutput as N, type InferFieldsInput as O, type PluginSchema as P, type InferFieldsInputClient as Q, type RateLimit as R, type SecondaryStorage as S, type PluginFieldAttribute as T, type InferFieldsFromPlugins as U, type InferFieldsFromOptions as V, type Where as W, type BetterAuthDbSchema as X, getAuthTables as Y, getEndpoints as Z, router as _, createAuthEndpoint as a, signInEmail as a0, callbackOAuth as a1, getSession as a2, getSessionFromCtx as a3, sessionMiddleware as a4, listSessions as a5, revokeSession as a6, revokeSessions as a7, signOut as a8, forgetPassword as a9, forgetPasswordCallback as aa, resetPassword as ab, createEmailVerificationToken as ac, sendVerificationEmail as ad, verifyEmail as ae, updateUser as af, changePassword as ag, setPassword as ah, deleteUser as ai, changeEmail as aj, error as ak, ok as al, signUpEmail as am, listUserAccounts as an, linkSocialAccount as ao, originCheckMiddleware as ap, type AuthEndpoint as b, createAuthMiddleware as c, type AuthMiddleware as d, type BetterAuthOptions as e, type Auth as f, betterAuth as g, type AdditionalUserFieldsInput as h, type AdditionalUserFieldsOutput as i, type AdditionalSessionFieldsInput as j, type AdditionalSessionFieldsOutput as k, type InferSession as l, type InferPluginTypes as m, init as n, optionsMiddleware as o, type AuthContext as p, getCookies as q, createCookieGetter as r, type BetterAuthCookies as s, setSessionCookie as t, deleteSessionCookie as u, parseSetCookieHeader as v, parseCookies as w, createLogger as x, logger as y, type FieldType as z };