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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/adapters/drizzle.d.cts +1 -1
  2. package/dist/adapters/drizzle.d.ts +1 -1
  3. package/dist/adapters/kysely.d.cts +1 -1
  4. package/dist/adapters/kysely.d.ts +1 -1
  5. package/dist/adapters/memory.d.cts +1 -1
  6. package/dist/adapters/memory.d.ts +1 -1
  7. package/dist/adapters/mongodb.d.cts +1 -1
  8. package/dist/adapters/mongodb.d.ts +1 -1
  9. package/dist/adapters/prisma.d.cts +1 -1
  10. package/dist/adapters/prisma.d.ts +1 -1
  11. package/dist/api.d.cts +1 -1
  12. package/dist/api.d.ts +1 -1
  13. package/dist/client/plugins.d.cts +3 -3
  14. package/dist/client/plugins.d.ts +3 -3
  15. package/dist/client.d.cts +1 -1
  16. package/dist/client.d.ts +1 -1
  17. package/dist/cookies.d.cts +1 -1
  18. package/dist/cookies.d.ts +1 -1
  19. package/dist/db.d.cts +2 -2
  20. package/dist/db.d.ts +2 -2
  21. package/dist/{index-DuhVtl9a.d.ts → index-DbSanUJ5.d.ts} +7 -25
  22. package/dist/{index-DBQ0XVML.d.cts → index-v9In9L_y.d.cts} +7 -25
  23. package/dist/index.d.cts +2 -2
  24. package/dist/index.d.ts +2 -2
  25. package/dist/next-js.d.cts +1 -1
  26. package/dist/next-js.d.ts +1 -1
  27. package/dist/node.d.cts +1 -1
  28. package/dist/node.d.ts +1 -1
  29. package/dist/oauth2.d.cts +2 -2
  30. package/dist/oauth2.d.ts +2 -2
  31. package/dist/plugins.cjs +5 -5
  32. package/dist/plugins.d.cts +9 -9
  33. package/dist/plugins.d.ts +9 -9
  34. package/dist/plugins.js +4 -4
  35. package/dist/react.d.cts +1 -1
  36. package/dist/react.d.ts +1 -1
  37. package/dist/solid-start.d.cts +1 -1
  38. package/dist/solid-start.d.ts +1 -1
  39. package/dist/solid.d.cts +1 -1
  40. package/dist/solid.d.ts +1 -1
  41. package/dist/{state-5tKc556n.d.ts → state-B-02czHC.d.ts} +1 -1
  42. package/dist/{state-BZ0Z8cQD.d.cts → state-D_ITqPUS.d.cts} +1 -1
  43. package/dist/svelte-kit.d.cts +1 -1
  44. package/dist/svelte-kit.d.ts +1 -1
  45. package/dist/svelte.d.cts +1 -1
  46. package/dist/svelte.d.ts +1 -1
  47. package/dist/types.d.cts +2 -2
  48. package/dist/types.d.ts +2 -2
  49. package/dist/vue.d.cts +1 -1
  50. package/dist/vue.d.ts +1 -1
  51. package/package.json +1 -1
  52. package/dist/{auth-B2oRhuJ8.d.ts → auth-miD4FiAv.d.ts} +84 -84
  53. package/dist/{auth-A5nkNoqm.d.cts → auth-rfAcL_Rw.d.cts} +84 -84
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-A5nkNoqm.cjs';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-rfAcL_Rw.cjs';
2
2
  import 'kysely';
3
3
  import 'zod';
4
4
  import 'better-call';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-B2oRhuJ8.js';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-miD4FiAv.js';
2
2
  import 'kysely';
3
3
  import 'zod';
4
4
  import 'better-call';
@@ -1,5 +1,5 @@
1
1
  import { Kysely } from 'kysely';
2
- import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-A5nkNoqm.cjs';
2
+ import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-rfAcL_Rw.cjs';
3
3
  import 'zod';
4
4
  import 'better-call';
5
5
  import '../helper-DPDj8Nix.cjs';
@@ -1,5 +1,5 @@
1
1
  import { Kysely } from 'kysely';
2
- import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-B2oRhuJ8.js';
2
+ import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-miD4FiAv.js';
3
3
  import 'zod';
4
4
  import 'better-call';
5
5
  import '../helper-DPDj8Nix.js';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-A5nkNoqm.cjs';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-rfAcL_Rw.cjs';
2
2
  import 'kysely';
3
3
  import 'zod';
4
4
  import 'better-call';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-B2oRhuJ8.js';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-miD4FiAv.js';
2
2
  import 'kysely';
3
3
  import 'zod';
4
4
  import 'better-call';
@@ -1,5 +1,5 @@
1
1
  import { Db } from 'mongodb';
2
- import { B as BetterAuthOptions, W as Where } from '../auth-A5nkNoqm.cjs';
2
+ import { B as BetterAuthOptions, W as Where } from '../auth-rfAcL_Rw.cjs';
3
3
  import 'kysely';
4
4
  import 'zod';
5
5
  import 'better-call';
@@ -1,5 +1,5 @@
1
1
  import { Db } from 'mongodb';
2
- import { B as BetterAuthOptions, W as Where } from '../auth-B2oRhuJ8.js';
2
+ import { B as BetterAuthOptions, W as Where } from '../auth-miD4FiAv.js';
3
3
  import 'kysely';
4
4
  import 'zod';
5
5
  import 'better-call';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-A5nkNoqm.cjs';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-rfAcL_Rw.cjs';
2
2
  import 'kysely';
3
3
  import 'zod';
4
4
  import 'better-call';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions, W as Where } from '../auth-B2oRhuJ8.js';
1
+ import { B as BetterAuthOptions, W as Where } from '../auth-miD4FiAv.js';
2
2
  import 'kysely';
3
3
  import 'zod';
4
4
  import 'better-call';
package/dist/api.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { z as AuthEndpoint, C as AuthMiddleware, a4 as callbackOAuth, an as changeEmail, ak as changePassword, y as createAuthEndpoint, x as createAuthMiddleware, ag as createEmailVerificationToken, am as deleteUser, ao as error, ad as forgetPassword, ae as forgetPasswordCallback, a0 as getEndpoints, a5 as getSession, a6 as getSessionFromCtx, as as linkSocialAccount, a8 as listSessions, ar as listUserAccounts, ap as ok, w as optionsMiddleware, at as originCheckMiddleware, af as resetPassword, ab as revokeOtherSessions, a9 as revokeSession, aa as revokeSessions, a1 as router, ah as sendVerificationEmail, a7 as sessionMiddleware, al as setPassword, a3 as signInEmail, a2 as signInSocial, ac as signOut, aq as signUpEmail, aj as updateUser, ai as verifyEmail } from './auth-A5nkNoqm.cjs';
1
+ export { z as AuthEndpoint, C as AuthMiddleware, a4 as callbackOAuth, an as changeEmail, ak as changePassword, y as createAuthEndpoint, x as createAuthMiddleware, ag as createEmailVerificationToken, am as deleteUser, ao as error, ad as forgetPassword, ae as forgetPasswordCallback, a0 as getEndpoints, a5 as getSession, a6 as getSessionFromCtx, as as linkSocialAccount, a8 as listSessions, ar as listUserAccounts, ap as ok, w as optionsMiddleware, at as originCheckMiddleware, af as resetPassword, ab as revokeOtherSessions, a9 as revokeSession, aa as revokeSessions, a1 as router, ah as sendVerificationEmail, a7 as sessionMiddleware, al as setPassword, a3 as signInEmail, a2 as signInSocial, ac as signOut, aq as signUpEmail, aj as updateUser, ai as verifyEmail } from './auth-rfAcL_Rw.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 { z as AuthEndpoint, C as AuthMiddleware, a4 as callbackOAuth, an as changeEmail, ak as changePassword, y as createAuthEndpoint, x as createAuthMiddleware, ag as createEmailVerificationToken, am as deleteUser, ao as error, ad as forgetPassword, ae as forgetPasswordCallback, a0 as getEndpoints, a5 as getSession, a6 as getSessionFromCtx, as as linkSocialAccount, a8 as listSessions, ar as listUserAccounts, ap as ok, w as optionsMiddleware, at as originCheckMiddleware, af as resetPassword, ab as revokeOtherSessions, a9 as revokeSession, aa as revokeSessions, a1 as router, ah as sendVerificationEmail, a7 as sessionMiddleware, al as setPassword, a3 as signInEmail, a2 as signInSocial, ac as signOut, aq as signUpEmail, aj as updateUser, ai as verifyEmail } from './auth-B2oRhuJ8.js';
1
+ export { z as AuthEndpoint, C as AuthMiddleware, a4 as callbackOAuth, an as changeEmail, ak as changePassword, y as createAuthEndpoint, x as createAuthMiddleware, ag as createEmailVerificationToken, am as deleteUser, ao as error, ad as forgetPassword, ae as forgetPasswordCallback, a0 as getEndpoints, a5 as getSession, a6 as getSessionFromCtx, as as linkSocialAccount, a8 as listSessions, ar as listUserAccounts, ap as ok, w as optionsMiddleware, at as originCheckMiddleware, af as resetPassword, ab as revokeOtherSessions, a9 as revokeSession, aa as revokeSessions, a1 as router, ah as sendVerificationEmail, a7 as sessionMiddleware, al as setPassword, a3 as signInEmail, a2 as signInSocial, ac as signOut, aq as signUpEmail, aj as updateUser, ai as verifyEmail } from './auth-miD4FiAv.js';
2
2
  import './helper-DPDj8Nix.js';
3
3
  export { APIError } from 'better-call';
4
4
  import 'zod';
@@ -2,10 +2,10 @@ import * as nanostores from 'nanostores';
2
2
  import { A as AccessControl, S as StatementsPrimitive, R as Role } from '../statement-DFWdVU7s.cjs';
3
3
  import * as _better_fetch_fetch from '@better-fetch/fetch';
4
4
  import { BetterFetchOption } from '@better-fetch/fetch';
5
- import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-DBQ0XVML.cjs';
6
- export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-DBQ0XVML.cjs';
5
+ import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-v9In9L_y.cjs';
6
+ export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-v9In9L_y.cjs';
7
7
  import { P as Prettify } from '../helper-DPDj8Nix.cjs';
8
- import { F as FieldAttribute, B as BetterAuthOptions, j as BetterAuthPlugin } from '../auth-A5nkNoqm.cjs';
8
+ import { F as FieldAttribute, B as BetterAuthOptions, j as BetterAuthPlugin } from '../auth-rfAcL_Rw.cjs';
9
9
  import { Store } from '../types.cjs';
10
10
  import 'better-call';
11
11
  import 'zod';
@@ -2,10 +2,10 @@ import * as nanostores from 'nanostores';
2
2
  import { A as AccessControl, S as StatementsPrimitive, R as Role } from '../statement-CTl9eDv7.js';
3
3
  import * as _better_fetch_fetch from '@better-fetch/fetch';
4
4
  import { BetterFetchOption } from '@better-fetch/fetch';
5
- import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-DuhVtl9a.js';
6
- export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-DuhVtl9a.js';
5
+ import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-DbSanUJ5.js';
6
+ export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-DbSanUJ5.js';
7
7
  import { P as Prettify } from '../helper-DPDj8Nix.js';
8
- import { F as FieldAttribute, B as BetterAuthOptions, j as BetterAuthPlugin } from '../auth-B2oRhuJ8.js';
8
+ import { F as FieldAttribute, B as BetterAuthOptions, j as BetterAuthPlugin } from '../auth-miD4FiAv.js';
9
9
  import { Store } from '../types.js';
10
10
  import 'better-call';
11
11
  import 'zod';
package/dist/client.d.cts CHANGED
@@ -6,7 +6,7 @@ import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/
6
6
  import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.cjs';
7
7
  export { AtomListener, InferAdditionalFromClient, InferPluginsFromClient, Store } from './types.cjs';
8
8
  import { U as UnionToIntersection } from './helper-DPDj8Nix.cjs';
9
- import './auth-A5nkNoqm.cjs';
9
+ import './auth-rfAcL_Rw.cjs';
10
10
  import 'kysely';
11
11
  import 'better-call';
12
12
  import './index-cqC7BcV_.cjs';
package/dist/client.d.ts CHANGED
@@ -6,7 +6,7 @@ import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/
6
6
  import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
7
7
  export { AtomListener, InferAdditionalFromClient, InferPluginsFromClient, Store } from './types.js';
8
8
  import { U as UnionToIntersection } from './helper-DPDj8Nix.js';
9
- import './auth-B2oRhuJ8.js';
9
+ import './auth-miD4FiAv.js';
10
10
  import 'kysely';
11
11
  import 'better-call';
12
12
  import './index-DN9ozDRm.js';
@@ -1,5 +1,5 @@
1
1
  import 'better-call';
2
- export { p as BetterAuthCookies, E as EligibleCookies, n as createCookieGetter, q as deleteSessionCookie, o as getCookies, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-A5nkNoqm.cjs';
2
+ export { p as BetterAuthCookies, E as EligibleCookies, n as createCookieGetter, q as deleteSessionCookie, o as getCookies, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-rfAcL_Rw.cjs';
3
3
  import 'kysely';
4
4
  import 'zod';
5
5
  import './helper-DPDj8Nix.cjs';
package/dist/cookies.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import 'better-call';
2
- export { p as BetterAuthCookies, E as EligibleCookies, n as createCookieGetter, q as deleteSessionCookie, o as getCookies, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-B2oRhuJ8.js';
2
+ export { p as BetterAuthCookies, E as EligibleCookies, n as createCookieGetter, q as deleteSessionCookie, o as getCookies, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-miD4FiAv.js';
3
3
  import 'kysely';
4
4
  import 'zod';
5
5
  import './helper-DPDj8Nix.js';
package/dist/db.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { k as Adapter, B as BetterAuthOptions, W as Where, F as FieldAttribute, D as FieldType, K as KyselyDatabaseType } from './auth-A5nkNoqm.cjs';
2
- export { _ as BetterAuthDbSchema, M as FieldAttributeConfig, Z as InferFieldsFromOptions, Y as InferFieldsFromPlugins, T as InferFieldsInput, V as InferFieldsInputClient, Q as InferFieldsOutput, O as InferValueType, L as InternalAdapter, X as PluginFieldAttribute, N as createFieldAttribute, J as createInternalAdapter, $ as getAuthTables } from './auth-A5nkNoqm.cjs';
1
+ import { k as Adapter, B as BetterAuthOptions, W as Where, F as FieldAttribute, D as FieldType, K as KyselyDatabaseType } from './auth-rfAcL_Rw.cjs';
2
+ export { _ as BetterAuthDbSchema, M as FieldAttributeConfig, Z as InferFieldsFromOptions, Y as InferFieldsFromPlugins, T as InferFieldsInput, V as InferFieldsInputClient, Q as InferFieldsOutput, O as InferValueType, L as InternalAdapter, X as PluginFieldAttribute, N as createFieldAttribute, J as createInternalAdapter, $ as getAuthTables } from './auth-rfAcL_Rw.cjs';
3
3
  import { z } from 'zod';
4
4
  import 'kysely';
5
5
  import 'better-call';
package/dist/db.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { k as Adapter, B as BetterAuthOptions, W as Where, F as FieldAttribute, D as FieldType, K as KyselyDatabaseType } from './auth-B2oRhuJ8.js';
2
- export { _ as BetterAuthDbSchema, M as FieldAttributeConfig, Z as InferFieldsFromOptions, Y as InferFieldsFromPlugins, T as InferFieldsInput, V as InferFieldsInputClient, Q as InferFieldsOutput, O as InferValueType, L as InternalAdapter, X as PluginFieldAttribute, N as createFieldAttribute, J as createInternalAdapter, $ as getAuthTables } from './auth-B2oRhuJ8.js';
1
+ import { k as Adapter, B as BetterAuthOptions, W as Where, F as FieldAttribute, D as FieldType, K as KyselyDatabaseType } from './auth-miD4FiAv.js';
2
+ export { _ as BetterAuthDbSchema, M as FieldAttributeConfig, Z as InferFieldsFromOptions, Y as InferFieldsFromPlugins, T as InferFieldsInput, V as InferFieldsInputClient, Q as InferFieldsOutput, O as InferValueType, L as InternalAdapter, X as PluginFieldAttribute, N as createFieldAttribute, J as createInternalAdapter, $ as getAuthTables } from './auth-miD4FiAv.js';
3
3
  import { z } from 'zod';
4
4
  import 'kysely';
5
5
  import 'better-call';
@@ -1,4 +1,4 @@
1
- import { U as User, S as Session, H as HookEndpointContext, h as AuthContext, P as PluginSchema } from './auth-B2oRhuJ8.js';
1
+ import { U as User, S as Session, H as HookEndpointContext, h as AuthContext, P as PluginSchema } from './auth-miD4FiAv.js';
2
2
  import * as better_call from 'better-call';
3
3
  import { z, ZodObject, ZodOptional, ZodArray, ZodLiteral } from 'zod';
4
4
  import { P as Prettify } from './helper-DPDj8Nix.js';
@@ -5299,24 +5299,6 @@ interface AdminOptions {
5299
5299
  * By default, the impersonation session lasts 1 hour
5300
5300
  */
5301
5301
  impersonationSessionDuration?: number;
5302
- /**
5303
- * Custom schema for the admin plugin
5304
- */
5305
- schema?: {
5306
- user?: {
5307
- fields?: {
5308
- role?: string;
5309
- banned?: boolean;
5310
- banReason?: string;
5311
- banExpires?: number;
5312
- };
5313
- };
5314
- session?: {
5315
- fields?: {
5316
- impersonatedBy?: string;
5317
- };
5318
- };
5319
- };
5320
5302
  }
5321
5303
  declare const admin: (options?: AdminOptions) => {
5322
5304
  id: "admin";
@@ -5454,15 +5436,15 @@ declare const admin: (options?: AdminOptions) => {
5454
5436
  */
5455
5437
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5456
5438
  }, "strip", z.ZodTypeAny, {
5457
- password: string;
5458
5439
  email: string;
5459
5440
  name: string;
5441
+ password: string;
5460
5442
  role: string;
5461
5443
  data?: Record<string, any> | undefined;
5462
5444
  }, {
5463
- password: string;
5464
5445
  email: string;
5465
5446
  name: string;
5447
+ password: string;
5466
5448
  role: string;
5467
5449
  data?: Record<string, any> | undefined;
5468
5450
  }>;
@@ -5496,15 +5478,15 @@ declare const admin: (options?: AdminOptions) => {
5496
5478
  */
5497
5479
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5498
5480
  }, "strip", z.ZodTypeAny, {
5499
- password: string;
5500
5481
  email: string;
5501
5482
  name: string;
5483
+ password: string;
5502
5484
  role: string;
5503
5485
  data?: Record<string, any> | undefined;
5504
5486
  }, {
5505
- password: string;
5506
5487
  email: string;
5507
5488
  name: string;
5489
+ password: string;
5508
5490
  role: string;
5509
5491
  data?: Record<string, any> | undefined;
5510
5492
  }>;
@@ -6759,13 +6741,13 @@ declare const emailOTP: (options: EmailOTPOptions) => {
6759
6741
  };
6760
6742
  accounts: {
6761
6743
  id: string;
6744
+ userId: string;
6762
6745
  providerId: string;
6763
6746
  accountId: string;
6764
- userId: string;
6747
+ expiresAt?: Date | null | undefined;
6765
6748
  accessToken?: string | null | undefined;
6766
6749
  refreshToken?: string | null | undefined;
6767
6750
  idToken?: string | null | undefined;
6768
- expiresAt?: Date | null | undefined;
6769
6751
  password?: string | null | undefined;
6770
6752
  }[];
6771
6753
  };
@@ -1,4 +1,4 @@
1
- import { U as User, S as Session, H as HookEndpointContext, h as AuthContext, P as PluginSchema } from './auth-A5nkNoqm.cjs';
1
+ import { U as User, S as Session, H as HookEndpointContext, h as AuthContext, P as PluginSchema } from './auth-rfAcL_Rw.cjs';
2
2
  import * as better_call from 'better-call';
3
3
  import { z, ZodObject, ZodOptional, ZodArray, ZodLiteral } from 'zod';
4
4
  import { P as Prettify } from './helper-DPDj8Nix.cjs';
@@ -5299,24 +5299,6 @@ interface AdminOptions {
5299
5299
  * By default, the impersonation session lasts 1 hour
5300
5300
  */
5301
5301
  impersonationSessionDuration?: number;
5302
- /**
5303
- * Custom schema for the admin plugin
5304
- */
5305
- schema?: {
5306
- user?: {
5307
- fields?: {
5308
- role?: string;
5309
- banned?: boolean;
5310
- banReason?: string;
5311
- banExpires?: number;
5312
- };
5313
- };
5314
- session?: {
5315
- fields?: {
5316
- impersonatedBy?: string;
5317
- };
5318
- };
5319
- };
5320
5302
  }
5321
5303
  declare const admin: (options?: AdminOptions) => {
5322
5304
  id: "admin";
@@ -5454,15 +5436,15 @@ declare const admin: (options?: AdminOptions) => {
5454
5436
  */
5455
5437
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5456
5438
  }, "strip", z.ZodTypeAny, {
5457
- password: string;
5458
5439
  email: string;
5459
5440
  name: string;
5441
+ password: string;
5460
5442
  role: string;
5461
5443
  data?: Record<string, any> | undefined;
5462
5444
  }, {
5463
- password: string;
5464
5445
  email: string;
5465
5446
  name: string;
5447
+ password: string;
5466
5448
  role: string;
5467
5449
  data?: Record<string, any> | undefined;
5468
5450
  }>;
@@ -5496,15 +5478,15 @@ declare const admin: (options?: AdminOptions) => {
5496
5478
  */
5497
5479
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5498
5480
  }, "strip", z.ZodTypeAny, {
5499
- password: string;
5500
5481
  email: string;
5501
5482
  name: string;
5483
+ password: string;
5502
5484
  role: string;
5503
5485
  data?: Record<string, any> | undefined;
5504
5486
  }, {
5505
- password: string;
5506
5487
  email: string;
5507
5488
  name: string;
5489
+ password: string;
5508
5490
  role: string;
5509
5491
  data?: Record<string, any> | undefined;
5510
5492
  }>;
@@ -6759,13 +6741,13 @@ declare const emailOTP: (options: EmailOTPOptions) => {
6759
6741
  };
6760
6742
  accounts: {
6761
6743
  id: string;
6744
+ userId: string;
6762
6745
  providerId: string;
6763
6746
  accountId: string;
6764
- userId: string;
6747
+ expiresAt?: Date | null | undefined;
6765
6748
  accessToken?: string | null | undefined;
6766
6749
  refreshToken?: string | null | undefined;
6767
6750
  idToken?: string | null | undefined;
6768
- expiresAt?: Date | null | undefined;
6769
6751
  password?: string | null | undefined;
6770
6752
  }[];
6771
6753
  };
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- export { k as Adapter, l as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, A as Auth, h as AuthContext, p as BetterAuthCookies, B as BetterAuthOptions, j as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, g as InferPluginTypes, f as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, m as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, n as createCookieGetter, u as createLogger, q as deleteSessionCookie, o as getCookies, i as init, v as logger, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-A5nkNoqm.cjs';
1
+ export { k as Adapter, l as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, A as Auth, h as AuthContext, p as BetterAuthCookies, B as BetterAuthOptions, j as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, g as InferPluginTypes, f as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, m as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, n as createCookieGetter, u as createLogger, q as deleteSessionCookie, o as getCookies, i as init, v as logger, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-rfAcL_Rw.cjs';
2
2
  export { D as DeepPartial, H as HasRequiredKeys, L as LiteralString, a as LiteralUnion, P as Prettify, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './helper-DPDj8Nix.cjs';
3
3
  export { AtomListener, BetterAuthClientPlugin, ClientOptions, InferActions, InferAdditionalFromClient, InferClientAPI, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, Store } from './types.cjs';
4
4
  export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.cjs';
5
- export { g as generateState, p as parseState } from './state-BZ0Z8cQD.cjs';
5
+ export { g as generateState, p as parseState } from './state-D_ITqPUS.cjs';
6
6
  import 'kysely';
7
7
  import 'zod';
8
8
  import 'better-call';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { k as Adapter, l as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, A as Auth, h as AuthContext, p as BetterAuthCookies, B as BetterAuthOptions, j as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, g as InferPluginTypes, f as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, m as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, n as createCookieGetter, u as createLogger, q as deleteSessionCookie, o as getCookies, i as init, v as logger, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-B2oRhuJ8.js';
1
+ export { k as Adapter, l as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, A as Auth, h as AuthContext, p as BetterAuthCookies, B as BetterAuthOptions, j as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, g as InferPluginTypes, f as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, m as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, n as createCookieGetter, u as createLogger, q as deleteSessionCookie, o as getCookies, i as init, v as logger, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-miD4FiAv.js';
2
2
  export { D as DeepPartial, H as HasRequiredKeys, L as LiteralString, a as LiteralUnion, P as Prettify, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './helper-DPDj8Nix.js';
3
3
  export { AtomListener, BetterAuthClientPlugin, ClientOptions, InferActions, InferAdditionalFromClient, InferClientAPI, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, Store } from './types.js';
4
4
  export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.js';
5
- export { g as generateState, p as parseState } from './state-5tKc556n.js';
5
+ export { g as generateState, p as parseState } from './state-B-02czHC.js';
6
6
  import 'kysely';
7
7
  import 'zod';
8
8
  import 'better-call';
@@ -1,5 +1,5 @@
1
1
  import * as better_call from 'better-call';
2
- import { H as HookEndpointContext } from './auth-A5nkNoqm.cjs';
2
+ import { H as HookEndpointContext } from './auth-rfAcL_Rw.cjs';
3
3
  import 'kysely';
4
4
  import 'zod';
5
5
  import './helper-DPDj8Nix.cjs';
package/dist/next-js.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as better_call from 'better-call';
2
- import { H as HookEndpointContext } from './auth-B2oRhuJ8.js';
2
+ import { H as HookEndpointContext } from './auth-miD4FiAv.js';
3
3
  import 'kysely';
4
4
  import 'zod';
5
5
  import './helper-DPDj8Nix.js';
package/dist/node.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as http from 'http';
2
2
  import { IncomingHttpHeaders } from 'http';
3
- import { A as Auth } from './auth-A5nkNoqm.cjs';
3
+ import { A as Auth } from './auth-rfAcL_Rw.cjs';
4
4
  import 'kysely';
5
5
  import 'zod';
6
6
  import 'better-call';
package/dist/node.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as http from 'http';
2
2
  import { IncomingHttpHeaders } from 'http';
3
- import { A as Auth } from './auth-B2oRhuJ8.js';
3
+ import { A as Auth } from './auth-miD4FiAv.js';
4
4
  import 'kysely';
5
5
  import 'zod';
6
6
  import 'better-call';
package/dist/oauth2.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { P as ProviderOptions, O as OAuth2Tokens } from './index-cqC7BcV_.cjs';
2
2
  export { a as OAuthProvider } from './index-cqC7BcV_.cjs';
3
- export { g as generateState, p as parseState } from './state-BZ0Z8cQD.cjs';
3
+ export { g as generateState, p as parseState } from './state-D_ITqPUS.cjs';
4
4
  import './helper-DPDj8Nix.cjs';
5
5
  import 'zod';
6
6
  import 'jose';
7
- import './auth-A5nkNoqm.cjs';
7
+ import './auth-rfAcL_Rw.cjs';
8
8
  import 'kysely';
9
9
  import 'better-call';
10
10
  import 'better-sqlite3';
package/dist/oauth2.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { P as ProviderOptions, O as OAuth2Tokens } from './index-DN9ozDRm.js';
2
2
  export { a as OAuthProvider } from './index-DN9ozDRm.js';
3
- export { g as generateState, p as parseState } from './state-5tKc556n.js';
3
+ export { g as generateState, p as parseState } from './state-B-02czHC.js';
4
4
  import './helper-DPDj8Nix.js';
5
5
  import 'zod';
6
6
  import 'jose';
7
- import './auth-B2oRhuJ8.js';
7
+ import './auth-miD4FiAv.js';
8
8
  import 'kysely';
9
9
  import 'better-call';
10
10
  import 'better-sqlite3';