better-auth 0.6.3-beta.2 → 0.6.3-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 (73) 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.cjs +1 -1
  10. package/dist/api.d.cts +1 -1
  11. package/dist/api.d.ts +1 -1
  12. package/dist/api.js +1 -1
  13. package/dist/{auth-CveES-lN.d.ts → auth-DEh5Nha6.d.ts} +48 -48
  14. package/dist/{auth-BybyXdpX.d.cts → auth-DbyhPbjk.d.cts} +48 -48
  15. package/dist/{chunk-5KNKZ7OW.js → chunk-2A3347DO.js} +1 -1
  16. package/dist/chunk-3FCLWVER.js +1 -0
  17. package/dist/chunk-44WAGMKD.cjs +1 -0
  18. package/dist/{chunk-ZQCSQTDH.cjs → chunk-4ZAEHU2O.cjs} +1 -1
  19. package/dist/{chunk-X6EOC5MU.js → chunk-DIOE2YXR.js} +1 -1
  20. package/dist/{chunk-2SFSY55O.cjs → chunk-IRB3E7WP.cjs} +1 -1
  21. package/dist/chunk-L4WRQPA4.js +1 -0
  22. package/dist/chunk-SYFR4CCI.cjs +1 -0
  23. package/dist/client/plugins.cjs +1 -1
  24. package/dist/client/plugins.d.cts +9 -9
  25. package/dist/client/plugins.d.ts +9 -9
  26. package/dist/client/plugins.js +1 -1
  27. package/dist/client.cjs +1 -1
  28. package/dist/client.d.cts +30 -20
  29. package/dist/client.d.ts +30 -20
  30. package/dist/client.js +1 -1
  31. package/dist/cookies.d.cts +1 -1
  32. package/dist/cookies.d.ts +1 -1
  33. package/dist/db.d.cts +2 -2
  34. package/dist/db.d.ts +2 -2
  35. package/dist/{index-BAhEsQWo.d.ts → index-2wOHlpZd.d.ts} +2 -2
  36. package/dist/{index-CeEzGKXc.d.cts → index-DWAERrJ3.d.cts} +2 -2
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.d.cts +1 -1
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/node.d.cts +1 -1
  42. package/dist/node.d.ts +1 -1
  43. package/dist/plugins.cjs +2 -2
  44. package/dist/plugins.d.cts +3 -3
  45. package/dist/plugins.d.ts +3 -3
  46. package/dist/plugins.js +1 -1
  47. package/dist/react.cjs +1 -1
  48. package/dist/react.d.cts +59 -19
  49. package/dist/react.d.ts +59 -19
  50. package/dist/react.js +1 -1
  51. package/dist/solid-start.d.cts +1 -1
  52. package/dist/solid-start.d.ts +1 -1
  53. package/dist/solid.cjs +1 -1
  54. package/dist/solid.d.cts +38 -11
  55. package/dist/solid.d.ts +38 -11
  56. package/dist/solid.js +1 -1
  57. package/dist/svelte-kit.d.cts +1 -1
  58. package/dist/svelte-kit.d.ts +1 -1
  59. package/dist/svelte.cjs +1 -1
  60. package/dist/svelte.d.cts +44 -23
  61. package/dist/svelte.d.ts +44 -23
  62. package/dist/svelte.js +1 -1
  63. package/dist/types.d.cts +7 -12
  64. package/dist/types.d.ts +7 -12
  65. package/dist/vue.cjs +1 -1
  66. package/dist/vue.d.cts +84 -26
  67. package/dist/vue.d.ts +84 -26
  68. package/dist/vue.js +1 -1
  69. package/package.json +1 -1
  70. package/dist/chunk-22HZLSWH.js +0 -1
  71. package/dist/chunk-CPVMLNIN.cjs +0 -1
  72. package/dist/chunk-JMHM2AZI.js +0 -1
  73. package/dist/chunk-LEJNTESY.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { A as Adapter } from '../auth-BybyXdpX.cjs';
1
+ import { A as Adapter } from '../auth-DbyhPbjk.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-CveES-lN.js';
1
+ import { A as Adapter } from '../auth-DEh5Nha6.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 { e as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-BybyXdpX.cjs';
2
+ import { e as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-DbyhPbjk.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 { e as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-CveES-lN.js';
2
+ import { e as BetterAuthOptions, K as KyselyDatabaseType, F as FieldAttribute, A as Adapter } from '../auth-DEh5Nha6.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-BybyXdpX.cjs';
2
+ import { W as Where } from '../auth-DbyhPbjk.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-CveES-lN.js';
2
+ import { W as Where } from '../auth-DEh5Nha6.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-BybyXdpX.cjs';
1
+ import { A as Adapter } from '../auth-DbyhPbjk.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-CveES-lN.js';
1
+ import { A as Adapter } from '../auth-DEh5Nha6.js';
2
2
  import 'zod';
3
3
  import 'kysely';
4
4
  import '../types-BYWAbFsn.js';
package/dist/api.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZQCSQTDHcjs = require('./chunk-ZQCSQTDH.cjs');require('./chunk-TLIY4SK7.cjs');require('./chunk-CFS7LUA4.cjs');require('./chunk-OSBFEBFX.cjs');require('./chunk-QMT4JKBV.cjs');require('./chunk-OYEZMIJE.cjs');require('./chunk-2FTT4NBS.cjs');require('./chunk-V7Z635RZ.cjs');require('./chunk-OOE5NIAD.cjs');require('./chunk-J6NPEQIV.cjs');require('./chunk-4VDLQK6F.cjs');exports.APIError = _chunkZQCSQTDHcjs.H; exports.callbackOAuth = _chunkZQCSQTDHcjs.q; exports.changeEmail = _chunkZQCSQTDHcjs.z; exports.changePassword = _chunkZQCSQTDHcjs.w; exports.createAuthEndpoint = _chunkZQCSQTDHcjs.c; exports.createAuthMiddleware = _chunkZQCSQTDHcjs.b; exports.createEmailVerificationToken = _chunkZQCSQTDHcjs.k; exports.deleteUser = _chunkZQCSQTDHcjs.y; exports.error = _chunkZQCSQTDHcjs.A; exports.forgetPassword = _chunkZQCSQTDHcjs.s; exports.forgetPasswordCallback = _chunkZQCSQTDHcjs.t; exports.getEndpoints = _chunkZQCSQTDHcjs.F; exports.getSession = _chunkZQCSQTDHcjs.e; exports.getSessionFromCtx = _chunkZQCSQTDHcjs.f; exports.linkSocialAccount = _chunkZQCSQTDHcjs.E; exports.listSessions = _chunkZQCSQTDHcjs.h; exports.listUserAccounts = _chunkZQCSQTDHcjs.D; exports.ok = _chunkZQCSQTDHcjs.B; exports.optionsMiddleware = _chunkZQCSQTDHcjs.a; exports.originCheckMiddleware = _chunkZQCSQTDHcjs.d; exports.resetPassword = _chunkZQCSQTDHcjs.u; exports.revokeSession = _chunkZQCSQTDHcjs.i; exports.revokeSessions = _chunkZQCSQTDHcjs.j; exports.router = _chunkZQCSQTDHcjs.G; exports.sendVerificationEmail = _chunkZQCSQTDHcjs.l; exports.sessionMiddleware = _chunkZQCSQTDHcjs.g; exports.setPassword = _chunkZQCSQTDHcjs.x; exports.signInEmail = _chunkZQCSQTDHcjs.o; exports.signInOAuth = _chunkZQCSQTDHcjs.n; exports.signOut = _chunkZQCSQTDHcjs.r; exports.signUpEmail = _chunkZQCSQTDHcjs.C; exports.updateUser = _chunkZQCSQTDHcjs.v; exports.verifyEmail = _chunkZQCSQTDHcjs.m;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4ZAEHU2Ocjs = require('./chunk-4ZAEHU2O.cjs');require('./chunk-TLIY4SK7.cjs');require('./chunk-CFS7LUA4.cjs');require('./chunk-OSBFEBFX.cjs');require('./chunk-QMT4JKBV.cjs');require('./chunk-OYEZMIJE.cjs');require('./chunk-2FTT4NBS.cjs');require('./chunk-V7Z635RZ.cjs');require('./chunk-OOE5NIAD.cjs');require('./chunk-J6NPEQIV.cjs');require('./chunk-4VDLQK6F.cjs');exports.APIError = _chunk4ZAEHU2Ocjs.H; exports.callbackOAuth = _chunk4ZAEHU2Ocjs.q; exports.changeEmail = _chunk4ZAEHU2Ocjs.z; exports.changePassword = _chunk4ZAEHU2Ocjs.w; exports.createAuthEndpoint = _chunk4ZAEHU2Ocjs.c; exports.createAuthMiddleware = _chunk4ZAEHU2Ocjs.b; exports.createEmailVerificationToken = _chunk4ZAEHU2Ocjs.k; exports.deleteUser = _chunk4ZAEHU2Ocjs.y; exports.error = _chunk4ZAEHU2Ocjs.A; exports.forgetPassword = _chunk4ZAEHU2Ocjs.s; exports.forgetPasswordCallback = _chunk4ZAEHU2Ocjs.t; exports.getEndpoints = _chunk4ZAEHU2Ocjs.F; exports.getSession = _chunk4ZAEHU2Ocjs.e; exports.getSessionFromCtx = _chunk4ZAEHU2Ocjs.f; exports.linkSocialAccount = _chunk4ZAEHU2Ocjs.E; exports.listSessions = _chunk4ZAEHU2Ocjs.h; exports.listUserAccounts = _chunk4ZAEHU2Ocjs.D; exports.ok = _chunk4ZAEHU2Ocjs.B; exports.optionsMiddleware = _chunk4ZAEHU2Ocjs.a; exports.originCheckMiddleware = _chunk4ZAEHU2Ocjs.d; exports.resetPassword = _chunk4ZAEHU2Ocjs.u; exports.revokeSession = _chunk4ZAEHU2Ocjs.i; exports.revokeSessions = _chunk4ZAEHU2Ocjs.j; exports.router = _chunk4ZAEHU2Ocjs.G; exports.sendVerificationEmail = _chunk4ZAEHU2Ocjs.l; exports.sessionMiddleware = _chunk4ZAEHU2Ocjs.g; exports.setPassword = _chunk4ZAEHU2Ocjs.x; exports.signInEmail = _chunk4ZAEHU2Ocjs.o; exports.signInOAuth = _chunk4ZAEHU2Ocjs.n; exports.signOut = _chunk4ZAEHU2Ocjs.r; exports.signUpEmail = _chunk4ZAEHU2Ocjs.C; exports.updateUser = _chunk4ZAEHU2Ocjs.v; exports.verifyEmail = _chunk4ZAEHU2Ocjs.m;
package/dist/api.d.cts CHANGED
@@ -1,4 +1,4 @@
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';
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-DbyhPbjk.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 { 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';
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-DEh5Nha6.js';
2
2
  import './helper-DPDj8Nix.js';
3
3
  export { APIError } from 'better-call';
4
4
  import 'zod';
package/dist/api.js CHANGED
@@ -1 +1 @@
1
- import{A as z,B as A,C as B,D as C,E as D,F as E,G as F,H as G,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q as p,r as q,s as r,t as s,u as t,v as u,w as v,x as w,y as x,z as y}from"./chunk-5KNKZ7OW.js";import"./chunk-NCRSY4BM.js";import"./chunk-4A4GJOZA.js";import"./chunk-6ZPR3WGK.js";import"./chunk-MIF2W335.js";import"./chunk-333I4LG2.js";import"./chunk-J744ED5S.js";import"./chunk-HZVOBC5R.js";import"./chunk-NIK3HQIQ.js";import"./chunk-72JSMFWS.js";import"./chunk-WOT6VMZA.js";export{G as APIError,p as callbackOAuth,y as changeEmail,v as changePassword,c as createAuthEndpoint,b as createAuthMiddleware,k as createEmailVerificationToken,x as deleteUser,z as error,r as forgetPassword,s as forgetPasswordCallback,E as getEndpoints,e as getSession,f as getSessionFromCtx,D as linkSocialAccount,h as listSessions,C as listUserAccounts,A as ok,a as optionsMiddleware,d as originCheckMiddleware,t as resetPassword,i as revokeSession,j as revokeSessions,F as router,l as sendVerificationEmail,g as sessionMiddleware,w as setPassword,o as signInEmail,n as signInOAuth,q as signOut,B as signUpEmail,u as updateUser,m as verifyEmail};
1
+ import{A as z,B as A,C as B,D as C,E as D,F as E,G as F,H as G,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q as p,r as q,s as r,t as s,u as t,v as u,w as v,x as w,y as x,z as y}from"./chunk-2A3347DO.js";import"./chunk-NCRSY4BM.js";import"./chunk-4A4GJOZA.js";import"./chunk-6ZPR3WGK.js";import"./chunk-MIF2W335.js";import"./chunk-333I4LG2.js";import"./chunk-J744ED5S.js";import"./chunk-HZVOBC5R.js";import"./chunk-NIK3HQIQ.js";import"./chunk-72JSMFWS.js";import"./chunk-WOT6VMZA.js";export{G as APIError,p as callbackOAuth,y as changeEmail,v as changePassword,c as createAuthEndpoint,b as createAuthMiddleware,k as createEmailVerificationToken,x as deleteUser,z as error,r as forgetPassword,s as forgetPasswordCallback,E as getEndpoints,e as getSession,f as getSessionFromCtx,D as linkSocialAccount,h as listSessions,C as listUserAccounts,A as ok,a as optionsMiddleware,d as originCheckMiddleware,t as resetPassword,i as revokeSession,j as revokeSessions,F as router,l as sendVerificationEmail,g as sessionMiddleware,w as setPassword,o as signInEmail,n as signInOAuth,q as signOut,B as signUpEmail,u as updateUser,m as verifyEmail};
@@ -1294,12 +1294,12 @@ declare const signInOAuth: {
1294
1294
  /**
1295
1295
  * OAuth2 provider to use`
1296
1296
  */
1297
- provider: z.ZodEnum<["github", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
1297
+ provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
1298
1298
  }, "strip", z.ZodTypeAny, {
1299
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1299
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1300
1300
  callbackURL?: string | undefined;
1301
1301
  }, {
1302
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1302
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
1339
+ provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
1340
1340
  }, "strip", z.ZodTypeAny, {
1341
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1341
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1342
1342
  callbackURL?: string | undefined;
1343
1343
  }, {
1344
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
1344
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2655
+ provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2656
2656
  }, "strip", z.ZodTypeAny, {
2657
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2657
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2658
2658
  callbackURL?: string | undefined;
2659
2659
  }, {
2660
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2660
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2717
+ provider: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2718
2718
  }, "strip", z.ZodTypeAny, {
2719
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2719
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2720
2720
  callbackURL?: string | undefined;
2721
2721
  }, {
2722
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2722
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2810
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2811
2811
  }, "strip", zod.ZodTypeAny, {
2812
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2812
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2813
2813
  callbackURL?: string | undefined;
2814
2814
  }, {
2815
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2815
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2842
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
2843
2843
  }, "strip", zod.ZodTypeAny, {
2844
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2844
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2845
2845
  callbackURL?: string | undefined;
2846
2846
  }, {
2847
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
2847
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4023
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4024
4024
  }, "strip", zod.ZodTypeAny, {
4025
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4025
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4026
4026
  callbackURL?: string | undefined;
4027
4027
  }, {
4028
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4028
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4075
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4076
4076
  }, "strip", zod.ZodTypeAny, {
4077
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4077
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4078
4078
  callbackURL?: string | undefined;
4079
4079
  }, {
4080
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4080
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4234
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4235
4235
  }, "strip", zod.ZodTypeAny, {
4236
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4236
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4237
4237
  callbackURL?: string | undefined;
4238
4238
  }, {
4239
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4239
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4266
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
4267
4267
  }, "strip", zod.ZodTypeAny, {
4268
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4268
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4269
4269
  callbackURL?: string | undefined;
4270
4270
  }, {
4271
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
4271
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5447
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5448
5448
  }, "strip", zod.ZodTypeAny, {
5449
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5449
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5450
5450
  callbackURL?: string | undefined;
5451
5451
  }, {
5452
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5452
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5499
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5500
5500
  }, "strip", zod.ZodTypeAny, {
5501
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5501
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5502
5502
  callbackURL?: string | undefined;
5503
5503
  }, {
5504
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5504
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5660
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5661
5661
  }, "strip", zod.ZodTypeAny, {
5662
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5662
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5663
5663
  callbackURL?: string | undefined;
5664
5664
  }, {
5665
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5665
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5692
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
5693
5693
  }, "strip", zod.ZodTypeAny, {
5694
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5694
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5695
5695
  callbackURL?: string | undefined;
5696
5696
  }, {
5697
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
5697
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
6873
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
6874
6874
  }, "strip", zod.ZodTypeAny, {
6875
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6875
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6876
6876
  callbackURL?: string | undefined;
6877
6877
  }, {
6878
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6878
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "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", ...("github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
6925
+ provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin")[]]>;
6926
6926
  }, "strip", zod.ZodTypeAny, {
6927
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6927
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6928
6928
  callbackURL?: string | undefined;
6929
6929
  }, {
6930
- provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6930
+ provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin";
6931
6931
  callbackURL?: string | undefined;
6932
6932
  }>;
6933
6933
  use: Endpoint<better_call.Handler<string, better_call.EndpointOptions, {